Skip to content

Commit 6ac7b02

Browse files
ichenkaiigcbot
authored andcommitted
Disable lsc sampler routing for OCL
Disable lsc sampler routing for ocl due to new regression found.
1 parent 61d2aa0 commit 6ac7b02

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

IGC/AdaptorOCL/DriverInfoOCL.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ namespace TC
6767
bool RespectPerInstructionContractFlag() const override { return true; }
6868

6969
bool EnableLSCForLdRawAndStoreRawOnDG2() const override { return true; }
70+
71+
bool supportLscSamplerRouting() const override { return false; }
7072
};
7173

7274
// In case some cpas are specific to NEO

IGC/Compiler/CISACodeGen/DriverInfo.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ namespace IGC
386386
virtual unsigned getCSSIMD16_SpillThreshold() const { return IGC_GET_FLAG_VALUE(CSSIMD16_SpillThreshold); }
387387
virtual unsigned getCSSIMD32_SpillThreshold() const { return IGC_GET_FLAG_VALUE(CSSIMD32_SpillThreshold); }
388388

389+
virtual bool supportLscSamplerRouting() const { return true; }
389390
virtual bool supportBarrierControlFlowOptimization() const { return false; }
390391
virtual bool getLscStoresWithNonDefaultL1CacheControls() const { return true; }
391392

IGC/Compiler/SamplerPerfOptPass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ bool SamplerPerfOptPass::runOnFunction(Function& F)
404404
// DisableLscSamplerRouting is from UMD AIL to turn off per shader
405405
if (ctx->platform.hasLSCSamplerRouting() &&
406406
IGC_IS_FLAG_ENABLED(EnableLscSamplerRouting) &&
407+
ctx->m_DriverInfo.supportLscSamplerRouting() &&
407408
!ctx->getModuleMetaData()->compOpt.DisableLscSamplerRouting &&
408409
loadInst->getIntrinsicID() == GenISAIntrinsic::GenISA_ldptr)
409410
{

0 commit comments

Comments
 (0)