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 @@ -69,6 +69,8 @@ namespace TC
69
69
bool EnableLSCForLdRawAndStoreRawOnDG2 () const override { return true ; }
70
70
71
71
bool supportsLogicalSSIDInHWTID () const override { return true ; }
72
+
73
+ bool supportLscSamplerRouting () const override { return false ; }
72
74
};
73
75
74
76
// In case some cpas are specific to NEO
Original file line number Diff line number Diff line change @@ -379,6 +379,7 @@ namespace IGC
379
379
// Informs if it supports to use a logical SSID from msg0.0 instead of a physical ID from sr0
380
380
virtual bool supportsLogicalSSIDInHWTID () const { return false ; }
381
381
382
+ virtual bool supportLscSamplerRouting () const { return true ; }
382
383
protected:
383
384
bool autoGRFSelection = false ;
384
385
};
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