Lines Matching refs:SrcReg
94 newInst[i].SrcReg[0].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_dp4_code()
95 newInst[i].SrcReg[0].Index = mvpRef[i]; in _mesa_insert_mvp_dp4_code()
96 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code()
97 newInst[i].SrcReg[1].File = PROGRAM_INPUT; in _mesa_insert_mvp_dp4_code()
98 newInst[i].SrcReg[1].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_dp4_code()
99 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code()
166 newInst[0].SrcReg[0].File = PROGRAM_INPUT; in _mesa_insert_mvp_mad_code()
167 newInst[0].SrcReg[0].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_mad_code()
168 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_insert_mvp_mad_code()
169 newInst[0].SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_mad_code()
170 newInst[0].SrcReg[1].Index = mvpRef[0]; in _mesa_insert_mvp_mad_code()
171 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
178 newInst[i].SrcReg[0].File = PROGRAM_INPUT; in _mesa_insert_mvp_mad_code()
179 newInst[i].SrcReg[0].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_mad_code()
180 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in _mesa_insert_mvp_mad_code()
181 newInst[i].SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_mad_code()
182 newInst[i].SrcReg[1].Index = mvpRef[i]; in _mesa_insert_mvp_mad_code()
183 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
184 newInst[i].SrcReg[2].File = PROGRAM_TEMPORARY; in _mesa_insert_mvp_mad_code()
185 newInst[i].SrcReg[2].Index = hposTemp; in _mesa_insert_mvp_mad_code()
186 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
193 newInst[3].SrcReg[0].File = PROGRAM_INPUT; in _mesa_insert_mvp_mad_code()
194 newInst[3].SrcReg[0].Index = VERT_ATTRIB_POS; in _mesa_insert_mvp_mad_code()
195 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in _mesa_insert_mvp_mad_code()
196 newInst[3].SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_insert_mvp_mad_code()
197 newInst[3].SrcReg[1].Index = mvpRef[3]; in _mesa_insert_mvp_mad_code()
198 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
199 newInst[3].SrcReg[2].File = PROGRAM_TEMPORARY; in _mesa_insert_mvp_mad_code()
200 newInst[3].SrcReg[2].Index = hposTemp; in _mesa_insert_mvp_mad_code()
201 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code()
325 inst->SrcReg[0].File = PROGRAM_INPUT; in _mesa_append_fog_code()
326 inst->SrcReg[0].Index = FRAG_ATTRIB_FOGC; in _mesa_append_fog_code()
327 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
328 inst->SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
329 inst->SrcReg[1].Index = fogPRefOpt; in _mesa_append_fog_code()
330 inst->SrcReg[1].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
331 inst->SrcReg[2].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
332 inst->SrcReg[2].Index = fogPRefOpt; in _mesa_append_fog_code()
333 inst->SrcReg[2].Swizzle = SWIZZLE_YYYY; in _mesa_append_fog_code()
346 inst->SrcReg[0].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
347 inst->SrcReg[0].Index = fogPRefOpt; in _mesa_append_fog_code()
348 inst->SrcReg[0].Swizzle in _mesa_append_fog_code()
350 inst->SrcReg[1].File = PROGRAM_INPUT; in _mesa_append_fog_code()
351 inst->SrcReg[1].Index = FRAG_ATTRIB_FOGC; in _mesa_append_fog_code()
352 inst->SrcReg[1].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
360 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
361 inst->SrcReg[0].Index = fogFactorTemp; in _mesa_append_fog_code()
362 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
363 inst->SrcReg[1].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
364 inst->SrcReg[1].Index = fogFactorTemp; in _mesa_append_fog_code()
365 inst->SrcReg[1].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
373 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
374 inst->SrcReg[0].Index = fogFactorTemp; in _mesa_append_fog_code()
375 inst->SrcReg[0].Negate = NEGATE_XYZW; in _mesa_append_fog_code()
376 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
385 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
386 inst->SrcReg[0].Index = fogFactorTemp; in _mesa_append_fog_code()
387 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
388 inst->SrcReg[1].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
389 inst->SrcReg[1].Index = colorTemp; in _mesa_append_fog_code()
390 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_append_fog_code()
391 inst->SrcReg[2].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
392 inst->SrcReg[2].Index = fogColorRef; in _mesa_append_fog_code()
393 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_append_fog_code()
400 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
401 inst->SrcReg[0].Index = colorTemp; in _mesa_append_fog_code()
402 inst->SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_append_fog_code()
456 if (((inst->SrcReg[0].File == PROGRAM_TEMPORARY) && in _mesa_count_texture_indirections()
457 (tempsOutput & (1 << inst->SrcReg[0].Index))) || in _mesa_count_texture_indirections()
470 if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) in _mesa_count_texture_indirections()
471 aluTemps |= (1 << inst->SrcReg[j].Index); in _mesa_count_texture_indirections()
532 if (inst->SrcReg[j].File == type) { in _mesa_remove_output_reads()
534 const GLuint var = inst->SrcReg[j].Index; in _mesa_remove_output_reads()
542 inst->SrcReg[j].File = PROGRAM_TEMPORARY; in _mesa_remove_output_reads()
543 inst->SrcReg[j].Index = outputMap[var]; in _mesa_remove_output_reads()
588 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_remove_output_reads()
589 inst->SrcReg[0].Index = outputMap[var]; in _mesa_remove_output_reads()
620 inst[0].SrcReg[0].File = PROGRAM_INPUT; in _mesa_nop_fragment_program()
625 inst[0].SrcReg[0].Index = inputAttr; in _mesa_nop_fragment_program()
664 inst[0].SrcReg[0].File = PROGRAM_INPUT; in _mesa_nop_vertex_program()
669 inst[0].SrcReg[0].Index = inputAttr; in _mesa_nop_vertex_program()