Lines Matching refs:inst2
502 struct prog_instruction *inst2 = prog->arb.Instructions + j; in _mesa_remove_extra_move_use() local
505 if (_mesa_is_flow_control_opcode(inst2->Opcode)) in _mesa_remove_extra_move_use()
509 for (arg = 0; arg < _mesa_num_inst_src_regs(inst2->Opcode); arg++) { in _mesa_remove_extra_move_use()
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()
516 read_mask = get_src_arg_mask(inst2, arg, NO_MASK); 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()
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()
540 if (inst2->DstReg.File == mov->DstReg.File && in _mesa_remove_extra_move_use()
541 (inst2->DstReg.RelAddr || in _mesa_remove_extra_move_use()
542 inst2->DstReg.Index == mov->DstReg.Index)) { in _mesa_remove_extra_move_use()
543 dst_mask &= ~inst2->DstReg.WriteMask; in _mesa_remove_extra_move_use()
548 if (inst2->DstReg.File == mov->SrcReg[0].File && in _mesa_remove_extra_move_use()
549 (inst2->DstReg.RelAddr || in _mesa_remove_extra_move_use()
550 inst2->DstReg.Index == mov->SrcReg[0].Index)) { in _mesa_remove_extra_move_use()
551 src_mask &= ~inst2->DstReg.WriteMask; in _mesa_remove_extra_move_use()