@@ -7145,7 +7145,7 @@ static void expandPlaneMacro(IR_Builder& builder, INST_LIST_ITER it, G4_BB* bb,
71457145 builder.createDst (builder.phyregpool .getAcc0Reg (), 0 , 0 , 1 , Type_NF) :
71467146 builder.Create_Dst_Opnd_From_Dcl (tmpVal, 1 );
71477147 G4_INST* madInst = builder.createInternalInst (nullptr , G4_mad, nullptr , false , 8 , accDst,
7148- srcR, u, srcP, options | InstOpt_WriteEnable);
7148+ srcR, u, srcP, options | InstOpt_WriteEnable)-> InheritLLVMInst (inst) ;
71497149 bb->insert (it, madInst);
71507150
71517151 G4_Predicate* pred = inst->getPredicate () ? builder.duplicateOperand (inst->getPredicate ()) : nullptr ;
@@ -7156,7 +7156,7 @@ static void expandPlaneMacro(IR_Builder& builder, INST_LIST_ITER it, G4_BB* bb,
71567156 G4_DstRegRegion* newDst = builder.createDst (dst->getBase (),
71577157 dst->getRegOff () + (secondHalf ? 1 : 0 ), dst->getSubRegOff (), dst->getHorzStride (), dst->getType ());
71587158 G4_INST* secondMadInst = builder.createInternalInst (pred, G4_mad, condMod, inst->getSaturate (), 8 , newDst,
7159- accSrc, v, srcQ, options);
7159+ accSrc, v, srcQ, options)-> InheritLLVMInst (inst) ;
71607160 bb->insert (it, secondMadInst);
71617161}
71627162
0 commit comments