File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -5365,7 +5365,6 @@ void EmitPass::emitLdInstruction(llvm::Instruction* inst)
53655365 IGC_ASSERT_MESSAGE(numOperands < 11, "Wrong number of operands");
53665366
53675367 EOPCODE opCode = GetOpCode(inst);
5368- m_currShader->m_State.SetHasLoadInst();
53695368 //Subtract the offsets, resource sources to get
53705369 //the number of texture coordinates and index to texture source
53715370 uint numSources = numOperands - 6;
@@ -8821,7 +8820,6 @@ void EmitPass::emitLdmsInstruction(llvm::Instruction* inst)
88218820{
88228821 uint numOperands = inst->getNumOperands();
88238822 EOPCODE opCode = GetOpCode(inst);
8824- m_currShader->m_State.SetHasLoadInst();
88258823 //Subtract the offsets, and texture resource, lod to get
88268824 //the number of texture coordinates and index to texture source
88278825 uint numSources = numOperands - 5;
Original file line number Diff line number Diff line change @@ -50,13 +50,9 @@ namespace IGC
5050 void SetBarrierNumber (int BarrierNumber) { m_BarrierNumber = BarrierNumber; }
5151 int GetBarrierNumber () const { return m_BarrierNumber; }
5252
53- bool GetHasSampleLoadGather4 () const
54- {
55- return (m_HasSampleInst || m_HasGather4Inst || m_HasLoadInst);
56- }
57- void SetHasSampleInst () { m_HasSampleInst = true ; }
58- void SetHasGather4Inst () { m_HasGather4Inst = true ; }
59- void SetHasLoadInst () { m_HasLoadInst = true ; }
53+ bool GetHasSample () const { return m_HasSample; }
54+ void SetHasSampleInst () { m_HasSampleInst = true ; m_HasSample = true ; }
55+ void SetHasGather4Inst () { m_HasGather4Inst = true ; m_HasSample = true ; }
6056
6157 bool GetHasDPAS () const { return m_HasDPAS; }
6258 void SetHasDPAS () { m_HasDPAS = true ; }
@@ -119,9 +115,9 @@ namespace IGC
119115 (NumInst < IGC_GET_FLAG_VALUE (MidThreadPreemptionDisableThreshold)));
120116 }
121117 private:
118+ bool m_HasSample = false ;
122119 bool m_HasSampleInst = false ;
123120 bool m_HasGather4Inst = false ;
124- bool m_HasLoadInst = false ;
125121 int m_BarrierNumber = 0 ;
126122 bool m_HasDPAS = false ;
127123 // Shader has LSC store messages with non-default L1 cache control
Original file line number Diff line number Diff line change @@ -2873,7 +2873,7 @@ namespace IGC
28732873
28742874 // TODO: need to change misleading HasBarriers to NumberofBarriers
28752875 m_kernelInfo.m_executionEnvironment .HasBarriers = m_State.GetBarrierNumber ();
2876- m_kernelInfo.m_executionEnvironment .HasSample = m_State.GetHasSampleLoadGather4 ();
2876+ m_kernelInfo.m_executionEnvironment .HasSample = m_State.GetHasSample ();
28772877 m_kernelInfo.m_executionEnvironment .DisableMidThreadPreemption = GetDisableMidThreadPreemption ();
28782878 m_kernelInfo.m_executionEnvironment .SubgroupIndependentForwardProgressRequired =
28792879 m_Context->getModuleMetaData ()->compOpt .SubgroupIndependentForwardProgressRequired ;
You can’t perform that action at this time.
0 commit comments