Home
last modified time | relevance | path

Searched refs:inst_add (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_optimize.c469 struct rc_instruction * inst_add, in presub_helper() argument
479 rc_get_readers(c, inst_add, &reader_data, presub_scan_read, NULL, in presub_helper()
493 presub_replace(inst_add, reader.Inst, src_index); in presub_helper()
502 struct rc_instruction * inst_add, in presub_replace_add() argument
507 if (inst_add->U.I.SrcReg[1].Negate || inst_add->U.I.SrcReg[0].Negate) in presub_replace_add()
512 if (inst_add->U.I.SrcReg[1].Negate) { in presub_replace_add()
513 inst_reader->U.I.PreSub.SrcReg[0] = inst_add->U.I.SrcReg[1]; in presub_replace_add()
514 inst_reader->U.I.PreSub.SrcReg[1] = inst_add->U.I.SrcReg[0]; in presub_replace_add()
516 inst_reader->U.I.PreSub.SrcReg[0] = inst_add->U.I.SrcReg[0]; in presub_replace_add()
517 inst_reader->U.I.PreSub.SrcReg[1] = inst_add->U.I.SrcReg[1]; in presub_replace_add()
[all …]
Dradeon_program_tex.c159 struct rc_instruction *inst_mul, *inst_add, *inst_cmp; in radeonTransformTEX() local
206 inst_add = rc_insert_new_instruction(c, inst_mul); in radeonTransformTEX()
207 inst_add->U.I.Opcode = RC_OPCODE_ADD; in radeonTransformTEX()
208 inst_add->U.I.DstReg.File = RC_FILE_TEMPORARY; in radeonTransformTEX()
209 inst_add->U.I.DstReg.Index = tmp_sum; in radeonTransformTEX()
210 inst_add->U.I.DstReg.WriteMask = RC_MASK_W; in radeonTransformTEX()
211 inst_add->U.I.SrcReg[0].File = RC_FILE_TEMPORARY; in radeonTransformTEX()
212 inst_add->U.I.SrcReg[0].Index = tmp_sum; in radeonTransformTEX()
213 inst_add->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_WWWW; in radeonTransformTEX()
214 inst_add->U.I.SrcReg[1].File = RC_FILE_TEMPORARY; in radeonTransformTEX()
[all …]
Dradeon_compiler.c326 struct rc_instruction *inst_add; in rc_transform_fragment_face() local
330 inst_add = rc_insert_new_instruction(c, &c->Program.Instructions); in rc_transform_fragment_face()
331 inst_add->U.I.Opcode = RC_OPCODE_ADD; in rc_transform_fragment_face()
333 inst_add->U.I.DstReg.File = RC_FILE_TEMPORARY; in rc_transform_fragment_face()
334 inst_add->U.I.DstReg.Index = tempregi; in rc_transform_fragment_face()
335 inst_add->U.I.DstReg.WriteMask = RC_MASK_X; in rc_transform_fragment_face()
337 inst_add->U.I.SrcReg[0].File = RC_FILE_NONE; in rc_transform_fragment_face()
338 inst_add->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_1111; in rc_transform_fragment_face()
340 inst_add->U.I.SrcReg[1].File = RC_FILE_INPUT; in rc_transform_fragment_face()
341 inst_add->U.I.SrcReg[1].Index = face; in rc_transform_fragment_face()
[all …]