File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ namespace TC
67
67
bool RespectPerInstructionContractFlag () const override { return true ; }
68
68
69
69
bool EnableLSCForLdRawAndStoreRawOnDG2 () const override { return true ; }
70
+
71
+ bool supportLscSamplerRouting () const override { return false ; }
70
72
};
71
73
72
74
// In case some cpas are specific to NEO
Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ namespace IGC
386
386
virtual unsigned getCSSIMD16_SpillThreshold () const { return IGC_GET_FLAG_VALUE (CSSIMD16_SpillThreshold); }
387
387
virtual unsigned getCSSIMD32_SpillThreshold () const { return IGC_GET_FLAG_VALUE (CSSIMD32_SpillThreshold); }
388
388
389
+ virtual bool supportLscSamplerRouting () const { return true ; }
389
390
virtual bool supportBarrierControlFlowOptimization () const { return false ; }
390
391
virtual bool getLscStoresWithNonDefaultL1CacheControls () const { return true ; }
391
392
Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ bool SamplerPerfOptPass::runOnFunction(Function& F)
404
404
// DisableLscSamplerRouting is from UMD AIL to turn off per shader
405
405
if (ctx->platform .hasLSCSamplerRouting () &&
406
406
IGC_IS_FLAG_ENABLED (EnableLscSamplerRouting) &&
407
+ ctx->m_DriverInfo .supportLscSamplerRouting () &&
407
408
!ctx->getModuleMetaData ()->compOpt .DisableLscSamplerRouting &&
408
409
loadInst->getIntrinsicID () == GenISAIntrinsic::GenISA_ldptr)
409
410
{
You can’t perform that action at this time.
0 commit comments