File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,11 @@ class IR_Builder
364
364
G4_INST* FDSpillInst = nullptr ;
365
365
G4_Declare* tmpFCRet = nullptr ;
366
366
367
+
368
+ // input declare of R1.
369
+ // Used to initialize header payload of render target read message
370
+ G4_Declare* inputR1 = nullptr ;
371
+
367
372
unsigned short arg_size;
368
373
unsigned short return_var_size;
369
374
@@ -667,6 +672,9 @@ class IR_Builder
667
672
G4_Declare* getBuiltinSamplerHeader () const { return builtinSamplerHeader; }
668
673
G4_Declare* getOldA0Dot2Temp () const { return oldA0Dot2Temp; }
669
674
675
+ G4_Declare* getInputR1 () { return inputR1; }
676
+ void setInputR1 (G4_Declare* r1) { inputR1 = r1; }
677
+
670
678
bool isBindlessSampler (const G4_Operand* sampler) const {
671
679
return sampler->isSrcRegRegion () && sampler->getTopDcl () == getBuiltinBindlessSampler ();
672
680
}
Original file line number Diff line number Diff line change @@ -1759,6 +1759,12 @@ int VISAKernelImpl::CreateVISAInputVar(
1759
1759
}
1760
1760
}
1761
1761
1762
+ // save the G4_declare of "R1" input in builder
1763
+ if (offset == getGRFSize () && size == getGRFSize ())
1764
+ {
1765
+ m_builder->setInputR1 (input->dcl );
1766
+ }
1767
+
1762
1768
return status;
1763
1769
}
1764
1770
You can’t perform that action at this time.
0 commit comments