• Home
  • Raw
  • Download

Lines Matching refs:newInst

51    struct prog_instruction *newInst;  in _mesa_insert_mvp_dp4_code()  local
73 newInst = rzalloc_array(vprog, struct prog_instruction, newLen); in _mesa_insert_mvp_dp4_code()
74 if (!newInst) { in _mesa_insert_mvp_dp4_code()
87 _mesa_init_instructions(newInst, 4); in _mesa_insert_mvp_dp4_code()
89 newInst[i].Opcode = OPCODE_DP4; in _mesa_insert_mvp_dp4_code()
90 newInst[i].DstReg.File = PROGRAM_OUTPUT; in _mesa_insert_mvp_dp4_code()
91 newInst[i].DstReg.Index = VARYING_SLOT_POS; in _mesa_insert_mvp_dp4_code()
92 newInst[i].DstReg.WriteMask = (WRITEMASK_X << i); in _mesa_insert_mvp_dp4_code()
93 newInst[i].SrcReg[0].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_dp4_code()
94 newInst[i].SrcReg[0].Index = mvpRef[i]; in _mesa_insert_mvp_dp4_code()
95 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code()
96 newInst[i].SrcReg[1].File = PROGRAM_INPUT; in _mesa_insert_mvp_dp4_code()
97 newInst[i].SrcReg[1].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_dp4_code()
98 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code()
102 _mesa_copy_instructions (newInst + 4, vprog->arb.Instructions, origLen); in _mesa_insert_mvp_dp4_code()
108 vprog->arb.Instructions = newInst; in _mesa_insert_mvp_dp4_code()
118 struct prog_instruction *newInst; in _mesa_insert_mvp_mad_code() local
141 newInst = rzalloc_array(vprog, struct prog_instruction, newLen); in _mesa_insert_mvp_mad_code()
142 if (!newInst) { in _mesa_insert_mvp_mad_code()
158 _mesa_init_instructions(newInst, 4); in _mesa_insert_mvp_mad_code()
160 newInst[0].Opcode = OPCODE_MUL; in _mesa_insert_mvp_mad_code()
161 newInst[0].DstReg.File = PROGRAM_TEMPORARY; in _mesa_insert_mvp_mad_code()
162 newInst[0].DstReg.Index = hposTemp; in _mesa_insert_mvp_mad_code()
163 newInst[0].DstReg.WriteMask = WRITEMASK_XYZW; in _mesa_insert_mvp_mad_code()
164 newInst[0].SrcReg[0].File = PROGRAM_INPUT; in _mesa_insert_mvp_mad_code()
165 newInst[0].SrcReg[0].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_mad_code()
166 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_insert_mvp_mad_code()
167 newInst[0].SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_mad_code()
168 newInst[0].SrcReg[1].Index = mvpRef[0]; in _mesa_insert_mvp_mad_code()
169 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
172 newInst[i].Opcode = OPCODE_MAD; in _mesa_insert_mvp_mad_code()
173 newInst[i].DstReg.File = PROGRAM_TEMPORARY; in _mesa_insert_mvp_mad_code()
174 newInst[i].DstReg.Index = hposTemp; in _mesa_insert_mvp_mad_code()
175 newInst[i].DstReg.WriteMask = WRITEMASK_XYZW; in _mesa_insert_mvp_mad_code()
176 newInst[i].SrcReg[0].File = PROGRAM_INPUT; in _mesa_insert_mvp_mad_code()
177 newInst[i].SrcReg[0].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_mad_code()
178 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in _mesa_insert_mvp_mad_code()
179 newInst[i].SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_mad_code()
180 newInst[i].SrcReg[1].Index = mvpRef[i]; in _mesa_insert_mvp_mad_code()
181 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
182 newInst[i].SrcReg[2].File = PROGRAM_TEMPORARY; in _mesa_insert_mvp_mad_code()
183 newInst[i].SrcReg[2].Index = hposTemp; in _mesa_insert_mvp_mad_code()
184 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
187 newInst[3].Opcode = OPCODE_MAD; in _mesa_insert_mvp_mad_code()
188 newInst[3].DstReg.File = PROGRAM_OUTPUT; in _mesa_insert_mvp_mad_code()
189 newInst[3].DstReg.Index = VARYING_SLOT_POS; in _mesa_insert_mvp_mad_code()
190 newInst[3].DstReg.WriteMask = WRITEMASK_XYZW; in _mesa_insert_mvp_mad_code()
191 newInst[3].SrcReg[0].File = PROGRAM_INPUT; in _mesa_insert_mvp_mad_code()
192 newInst[3].SrcReg[0].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_mad_code()
193 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in _mesa_insert_mvp_mad_code()
194 newInst[3].SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_mad_code()
195 newInst[3].SrcReg[1].Index = mvpRef[3]; in _mesa_insert_mvp_mad_code()
196 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
197 newInst[3].SrcReg[2].File = PROGRAM_TEMPORARY; in _mesa_insert_mvp_mad_code()
198 newInst[3].SrcReg[2].Index = hposTemp; in _mesa_insert_mvp_mad_code()
199 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
203 _mesa_copy_instructions (newInst + 4, vprog->arb.Instructions, origLen); in _mesa_insert_mvp_mad_code()
209 vprog->arb.Instructions = newInst; in _mesa_insert_mvp_mad_code()
254 struct prog_instruction *newInst, *inst; in _mesa_append_fog_code() local
273 newInst = rzalloc_array(fprog, struct prog_instruction, newLen); in _mesa_append_fog_code()
274 if (!newInst) { in _mesa_append_fog_code()
281 _mesa_copy_instructions(newInst, fprog->arb.Instructions, origLen); in _mesa_append_fog_code()
296 inst = newInst; in _mesa_append_fog_code()
409 fprog->arb.Instructions = newInst; in _mesa_append_fog_code()
410 fprog->arb.NumInstructions = inst - newInst; in _mesa_append_fog_code()