Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_program_tex.c84 struct rc_instruction *inst_mul, *inst_rcp; in projective_divide() local
99 inst_mul = rc_insert_new_instruction(&compiler->Base, inst->Prev); in projective_divide()
100 inst_mul->U.I.Opcode = RC_OPCODE_MUL; in projective_divide()
101 inst_mul->U.I.DstReg.File = RC_FILE_TEMPORARY; in projective_divide()
102 inst_mul->U.I.DstReg.Index = temp; in projective_divide()
103 inst_mul->U.I.SrcReg[0] = inst->U.I.SrcReg[0]; in projective_divide()
104 inst_mul->U.I.SrcReg[1].File = RC_FILE_TEMPORARY; in projective_divide()
105 inst_mul->U.I.SrcReg[1].Index = temp; in projective_divide()
106 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in projective_divide()
159 struct rc_instruction *inst_mul, *inst_add, *inst_cmp; in radeonTransformTEX() local
[all …]
Dradeon_optimize.c717 struct rc_instruction * inst_mul, in peephole_mul_omod() argument
732 if (inst_mul->U.I.SrcReg[i].File != RC_FILE_CONSTANT in peephole_mul_omod()
733 && inst_mul->U.I.SrcReg[i].File != RC_FILE_TEMPORARY) { in peephole_mul_omod()
736 if (inst_mul->U.I.SrcReg[i].File == RC_FILE_TEMPORARY) { in peephole_mul_omod()
746 if (inst_mul->U.I.SrcReg[i].Negate) { in peephole_mul_omod()
754 GET_SWZ(inst_mul->U.I.SrcReg[i].Swizzle, j); in peephole_mul_omod()
774 if (!rc_src_reg_is_immediate(c, inst_mul->U.I.SrcReg[const_index].File, in peephole_mul_omod()
775 inst_mul->U.I.SrcReg[const_index].Index)) { in peephole_mul_omod()
779 inst_mul->U.I.SrcReg[const_index].Index, in peephole_mul_omod()
780 inst_mul->U.I.SrcReg[const_index].Swizzle, in peephole_mul_omod()
[all …]
Dradeon_compiler.c242 struct rc_instruction * inst_mul; in rc_transform_fragment_wpos() local
261 inst_mul = rc_insert_new_instruction(c, inst_rcp); in rc_transform_fragment_wpos()
262 inst_mul->U.I.Opcode = RC_OPCODE_MUL; in rc_transform_fragment_wpos()
264 inst_mul->U.I.DstReg.File = RC_FILE_TEMPORARY; in rc_transform_fragment_wpos()
265 inst_mul->U.I.DstReg.Index = tempregi; in rc_transform_fragment_wpos()
266 inst_mul->U.I.DstReg.WriteMask = RC_MASK_XYZ; in rc_transform_fragment_wpos()
268 inst_mul->U.I.SrcReg[0].File = RC_FILE_INPUT; in rc_transform_fragment_wpos()
269 inst_mul->U.I.SrcReg[0].Index = new_input; in rc_transform_fragment_wpos()
271 inst_mul->U.I.SrcReg[1].File = RC_FILE_TEMPORARY; in rc_transform_fragment_wpos()
272 inst_mul->U.I.SrcReg[1].Index = tempregi; in rc_transform_fragment_wpos()
[all …]