Lines Matching refs:inst2
531 struct prog_instruction *inst2 = prog->Instructions + j;
534 if (_mesa_is_flow_control_opcode(inst2->Opcode))
538 for (arg = 0; arg < _mesa_num_inst_src_regs(inst2->Opcode); arg++) {
541 if (inst2->SrcReg[arg].File != mov->DstReg.File ||
542 inst2->SrcReg[arg].Index != mov->DstReg.Index ||
543 inst2->SrcReg[arg].RelAddr ||
544 inst2->SrcReg[arg].Abs)
546 read_mask = get_src_arg_mask(inst2, arg, NO_MASK);
548 /* Adjust the swizzles of inst2 to point at MOV's source if ALL the
551 if (is_swizzle_regular(inst2->SrcReg[arg].Swizzle) &&
555 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp);
557 inst2->SrcReg[arg].Swizzle &= ~(7 << (3 * comp));
558 inst2->SrcReg[arg].Swizzle |= s << (3 * comp);
559 inst2->SrcReg[arg].Negate ^= (((mov->SrcReg[0].Negate >>
562 inst2->SrcReg[arg].File = mov->SrcReg[0].File;
563 inst2->SrcReg[arg].Index = mov->SrcReg[0].Index;
570 if (inst2->DstReg.File == mov->DstReg.File &&
571 (inst2->DstReg.RelAddr ||
572 inst2->DstReg.Index == mov->DstReg.Index)) {
573 dst_mask &= ~inst2->DstReg.WriteMask;
578 if (inst2->DstReg.File == mov->SrcReg[0].File &&
579 (inst2->DstReg.RelAddr ||
580 inst2->DstReg.Index == mov->SrcReg[0].Index)) {
581 src_mask &= ~inst2->DstReg.WriteMask;