Lines Matching refs:SrcReg
93 newInst[i].SrcReg[0].File = PROGRAM_STATE_VAR; in insert_mvp_dp4_code()
94 newInst[i].SrcReg[0].Index = mvpRef[i]; in insert_mvp_dp4_code()
95 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in insert_mvp_dp4_code()
96 newInst[i].SrcReg[1].File = PROGRAM_INPUT; in insert_mvp_dp4_code()
97 newInst[i].SrcReg[1].Index = VERT_ATTRIB_POS; in insert_mvp_dp4_code()
98 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_dp4_code()
164 newInst[0].SrcReg[0].File = PROGRAM_INPUT; in insert_mvp_mad_code()
165 newInst[0].SrcReg[0].Index = VERT_ATTRIB_POS; in insert_mvp_mad_code()
166 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in insert_mvp_mad_code()
167 newInst[0].SrcReg[1].File = PROGRAM_STATE_VAR; in insert_mvp_mad_code()
168 newInst[0].SrcReg[1].Index = mvpRef[0]; in insert_mvp_mad_code()
169 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code()
176 newInst[i].SrcReg[0].File = PROGRAM_INPUT; in insert_mvp_mad_code()
177 newInst[i].SrcReg[0].Index = VERT_ATTRIB_POS; in insert_mvp_mad_code()
178 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in insert_mvp_mad_code()
179 newInst[i].SrcReg[1].File = PROGRAM_STATE_VAR; in insert_mvp_mad_code()
180 newInst[i].SrcReg[1].Index = mvpRef[i]; in insert_mvp_mad_code()
181 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code()
182 newInst[i].SrcReg[2].File = PROGRAM_TEMPORARY; in insert_mvp_mad_code()
183 newInst[i].SrcReg[2].Index = hposTemp; in insert_mvp_mad_code()
184 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code()
191 newInst[3].SrcReg[0].File = PROGRAM_INPUT; in insert_mvp_mad_code()
192 newInst[3].SrcReg[0].Index = VERT_ATTRIB_POS; in insert_mvp_mad_code()
193 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in insert_mvp_mad_code()
194 newInst[3].SrcReg[1].File = PROGRAM_STATE_VAR; in insert_mvp_mad_code()
195 newInst[3].SrcReg[1].Index = mvpRef[3]; in insert_mvp_mad_code()
196 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code()
197 newInst[3].SrcReg[2].File = PROGRAM_TEMPORARY; in insert_mvp_mad_code()
198 newInst[3].SrcReg[2].Index = hposTemp; in insert_mvp_mad_code()
199 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in insert_mvp_mad_code()
322 inst->SrcReg[0].File = PROGRAM_INPUT; in _mesa_append_fog_code()
323 inst->SrcReg[0].Index = VARYING_SLOT_FOGC; in _mesa_append_fog_code()
324 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
325 inst->SrcReg[1].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
326 inst->SrcReg[1].Index = fogPRefOpt; in _mesa_append_fog_code()
327 inst->SrcReg[1].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
328 inst->SrcReg[2].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
329 inst->SrcReg[2].Index = fogPRefOpt; in _mesa_append_fog_code()
330 inst->SrcReg[2].Swizzle = SWIZZLE_YYYY; in _mesa_append_fog_code()
343 inst->SrcReg[0].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
344 inst->SrcReg[0].Index = fogPRefOpt; in _mesa_append_fog_code()
345 inst->SrcReg[0].Swizzle in _mesa_append_fog_code()
347 inst->SrcReg[1].File = PROGRAM_INPUT; in _mesa_append_fog_code()
348 inst->SrcReg[1].Index = VARYING_SLOT_FOGC; in _mesa_append_fog_code()
349 inst->SrcReg[1].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
357 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
358 inst->SrcReg[0].Index = fogFactorTemp; in _mesa_append_fog_code()
359 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
360 inst->SrcReg[1].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
361 inst->SrcReg[1].Index = fogFactorTemp; in _mesa_append_fog_code()
362 inst->SrcReg[1].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
370 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
371 inst->SrcReg[0].Index = fogFactorTemp; in _mesa_append_fog_code()
372 inst->SrcReg[0].Negate = NEGATE_XYZW; in _mesa_append_fog_code()
373 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
382 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
383 inst->SrcReg[0].Index = fogFactorTemp; in _mesa_append_fog_code()
384 inst->SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_append_fog_code()
385 inst->SrcReg[1].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
386 inst->SrcReg[1].Index = colorTemp; in _mesa_append_fog_code()
387 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_append_fog_code()
388 inst->SrcReg[2].File = PROGRAM_STATE_VAR; in _mesa_append_fog_code()
389 inst->SrcReg[2].Index = fogColorRef; in _mesa_append_fog_code()
390 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_append_fog_code()
397 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_append_fog_code()
398 inst->SrcReg[0].Index = colorTemp; in _mesa_append_fog_code()
399 inst->SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_append_fog_code()
452 if (((inst->SrcReg[0].File == PROGRAM_TEMPORARY) && in _mesa_count_texture_indirections()
453 (tempsOutput & (1 << inst->SrcReg[0].Index))) || in _mesa_count_texture_indirections()
466 if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) in _mesa_count_texture_indirections()
467 aluTemps |= (1 << inst->SrcReg[j].Index); in _mesa_count_texture_indirections()
526 if (inst->SrcReg[j].File == type) { in _mesa_remove_output_reads()
528 const GLuint var = inst->SrcReg[j].Index; in _mesa_remove_output_reads()
536 inst->SrcReg[j].File = PROGRAM_TEMPORARY; in _mesa_remove_output_reads()
537 inst->SrcReg[j].Index = outputMap[var]; in _mesa_remove_output_reads()
582 inst->SrcReg[0].File = PROGRAM_TEMPORARY; in _mesa_remove_output_reads()
583 inst->SrcReg[0].Index = outputMap[var]; in _mesa_remove_output_reads()
608 if (inst->SrcReg[j].File == PROGRAM_INPUT && in _mesa_program_fragment_position_to_sysval()
609 inst->SrcReg[j].Index == VARYING_SLOT_POS) { in _mesa_program_fragment_position_to_sysval()
610 inst->SrcReg[j].File = PROGRAM_SYSTEM_VALUE; in _mesa_program_fragment_position_to_sysval()
611 inst->SrcReg[j].Index = SYSTEM_VALUE_FRAG_COORD; in _mesa_program_fragment_position_to_sysval()