Skip to content

Commit d0c0795

Browse files
skarczewigcbot
authored andcommitted
Add flag to control promoting fences to evictions
Add flag to control promoting fences to evictions
1 parent ea0af73 commit d0c0795

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ bool hasBarrierControlFlowOpt() const
15061506

15071507
bool needsLocalScopeEvictTGM() const
15081508
{
1509-
return true;
1509+
return IGC_IS_FLAG_ENABLED(ForceLocalScopeEvictTGM);
15101510
}
15111511

15121512
bool needWaSamplerNoMask() const

IGC/common/igc_flags.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ DECLARE_IGC_REGKEY(bool, forceFullUrbWriteMask, true, "Set Full URB wri
279279
DECLARE_IGC_REGKEY(DWORD, RovOpt, 3, "Bitmask for ROV optimizations. 0 for all off, 1 for force fence flush none, 2 for setting LSC_L1UC_L3C_WB, 3 for both opt on", false)
280280
//DECLARE_IGC_REGKEY(bool, EnablePlatformFenceOpt, true, "Force fence optimization", false)
281281
DECLARE_IGC_REGKEY(bool, EnableLSCFence, true, "Enable LSC Fence in ConvertDXIL for the device has LSC", false)
282+
DECLARE_IGC_REGKEY(bool, ForceLocalScopeEvictTGM, true, "Forces upgrading fence.tgm.local.none to evictions", false)
282283
DECLARE_IGC_REGKEY(bool, EnableSLMConstProp, true, "Enable SLM constant propagation (compute shader only).", false)
283284
DECLARE_IGC_REGKEY(bool, EnableStatelessToStateful, true, "Enable Stateless To Stateful transformation for global and constant address space in OpenCL kernels", false)
284285
DECLARE_IGC_REGKEY(bool, EnableStatefulToken, true, "Enable generating patch token to indicate a ptr argument is fully converted to stateful (temporary)", false)

0 commit comments

Comments
 (0)