Lines Matching refs:SrcReg
107 const GLuint coord = GET_SWZ(inst->SrcReg[arg].Swizzle, comp); in get_src_arg_mask()
133 src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, comp); in get_dst_mask_for_mov()
218 if (inst->SrcReg[j].File == file) { in replace_regs()
219 GLuint index = inst->SrcReg[j].Index; in replace_regs()
221 inst->SrcReg[j].Index = map[index]; in replace_regs()
264 if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) { in _mesa_remove_dead_code_global()
265 const GLuint index = inst->SrcReg[j].Index; in _mesa_remove_dead_code_global()
270 if (inst->SrcReg[j].RelAddr) { in _mesa_remove_dead_code_global()
277 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp); in _mesa_remove_dead_code_global()
389 if (inst->SrcReg[j].RelAddr || in find_next_use()
390 (inst->SrcReg[j].File == PROGRAM_TEMPORARY && in find_next_use()
391 inst->SrcReg[j].Index == (GLint)index && in find_next_use()
444 mov->SrcReg[0].RelAddr == 0 && in can_downward_mov_be_modifed()
445 mov->SrcReg[0].Negate == 0 && in can_downward_mov_be_modifed()
512 if (inst2->SrcReg[arg].File != mov->DstReg.File || in _mesa_remove_extra_move_use()
513 inst2->SrcReg[arg].Index != mov->DstReg.Index || in _mesa_remove_extra_move_use()
514 inst2->SrcReg[arg].RelAddr) in _mesa_remove_extra_move_use()
521 if (is_swizzle_regular(inst2->SrcReg[arg].Swizzle) && in _mesa_remove_extra_move_use()
525 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp); in _mesa_remove_extra_move_use()
526 const GLuint s = GET_SWZ(mov->SrcReg[0].Swizzle, inst2_swz); in _mesa_remove_extra_move_use()
527 inst2->SrcReg[arg].Swizzle &= ~(7 << (3 * comp)); in _mesa_remove_extra_move_use()
528 inst2->SrcReg[arg].Swizzle |= s << (3 * comp); in _mesa_remove_extra_move_use()
529 inst2->SrcReg[arg].Negate ^= (((mov->SrcReg[0].Negate >> in _mesa_remove_extra_move_use()
532 inst2->SrcReg[arg].File = mov->SrcReg[0].File; in _mesa_remove_extra_move_use()
533 inst2->SrcReg[arg].Index = mov->SrcReg[0].Index; in _mesa_remove_extra_move_use()
548 if (inst2->DstReg.File == mov->SrcReg[0].File && in _mesa_remove_extra_move_use()
550 inst2->DstReg.Index == mov->SrcReg[0].Index)) { in _mesa_remove_extra_move_use()
590 if (inst->SrcReg[arg].RelAddr) in _mesa_remove_dead_code_local()
652 const GLuint src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, dst_comp); in _mesa_merge_mov_into_inst()
660 const GLuint arg_swz = inst->SrcReg[arg].Swizzle; in _mesa_merge_mov_into_inst()
661 inst->SrcReg[arg].Swizzle = 0; in _mesa_merge_mov_into_inst()
672 inst->SrcReg[arg].Swizzle |= arg_comp << (3*dst_comp); in _mesa_merge_mov_into_inst()
695 if (mov->SrcReg[0].Swizzle != SWIZZLE_XYZW || in _mesa_merge_mov_into_inst()
746 mov->SrcReg[0].File == PROGRAM_TEMPORARY && in _mesa_remove_extra_moves()
751 const GLuint id = mov->SrcReg[0].Index; in _mesa_remove_extra_moves()
989 if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) { in _mesa_find_temp_intervals()
990 const GLuint index = inst->SrcReg[j].Index; in _mesa_find_temp_intervals()
991 if (inst->SrcReg[j].RelAddr) in _mesa_find_temp_intervals()
1287 && inst->SrcReg[2].File == inst->DstReg.File in _mesa_simplify_cmp()
1288 && inst->SrcReg[2].Index == inst->DstReg.Index in _mesa_simplify_cmp()
1292 inst->SrcReg[0] = inst->SrcReg[1]; in _mesa_simplify_cmp()
1298 inst->SrcReg[1].File = PROGRAM_UNDEFINED; in _mesa_simplify_cmp()
1299 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_simplify_cmp()
1300 inst->SrcReg[2].File = PROGRAM_UNDEFINED; in _mesa_simplify_cmp()
1301 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_simplify_cmp()