Skip to content

Commit b784fe1

Browse files
iwwuigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: b9fb5b9
Update DispatchGPGPUWalkerAlongYFirst lookup
1 parent 9efef8f commit b784fe1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

IGC/Compiler/CISACodeGen/ComputeShaderCodeGen.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,8 @@ namespace IGC
408408
const ComputeShaderContext* pCtx =
409409
static_cast<const ComputeShaderContext*>(GetContext());
410410

411-
// Assume DispatchGPGPUWalkerAlongYFirst is on here unless off explicitly
412-
if (IGC_GET_FLAG_VALUE(DispatchGPGPUWalkerAlongYFirst) == 0)
413-
m_dispatchAlongY = false;
414-
else if ((m_num2DAccesses > m_num1DAccesses) &&
411+
if (IGC_IS_FLAG_ENABLED(DispatchGPGPUWalkerAlongYFirst) &&
412+
(m_num2DAccesses > m_num1DAccesses) &&
415413
!pCtx->getModuleMetaData()->csInfo.disableLocalIdOrderOptimizations &&
416414
GetContext()->m_DriverInfo.SupportsDispatchGPGPUWalkerAlongYFirst())
417415
{

IGC/common/igc_flags.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ DECLARE_IGC_REGKEY(bool, disableVarSplit, false, "disable variable
384384
DECLARE_IGC_REGKEY(bool, disableRemat, false, "disable re-materialization", false)
385385
DECLARE_IGC_REGKEY(bool, EnableDisableMidThreadPreemptionOpt, true, "Disable mid thread preemption", false)
386386
DECLARE_IGC_REGKEY(DWORD, MidThreadPreemptionDisableThreshold, 600, "Threshold to disable mid thread preemption", false)
387-
DECLARE_IGC_REGKEY(DWORD, DispatchGPGPUWalkerAlongYFirst, 2, "1 = Dispatch GPGPU walker along Y first, 0 = No SW Y-walk Optimization, 2 = use platform default setting", false)
387+
DECLARE_IGC_REGKEY(bool, DispatchGPGPUWalkerAlongYFirst, true, "dispatch GPGPU walker along Y first", false)
388388
DECLARE_IGC_REGKEY(bool, SetMaxPreRASchedulerRegPressureThreshold, false, "set Max PreRA Scheduler Threshold", false)
389389
DECLARE_IGC_REGKEY(bool, LimitConstantBuffersPushed, true, "Limit max number of CBs pushed when SupportIndirectConstantBuffer is true", false)
390390
DECLARE_IGC_REGKEY(DWORD, MaxPreRASchedulerRegPressureThreshold, 60, "Max PreRA Scheduler Threshold", false)

0 commit comments

Comments
 (0)