Skip to content

Commit b9fb5b9

Browse files
iwwuigcbot
authored andcommitted
Update DispatchGPGPUWalkerAlongYFirst lookup
1 parent defc45c commit b9fb5b9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

IGC/Compiler/CISACodeGen/ComputeShaderCodeGen.cpp

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

405-
if (IGC_IS_FLAG_ENABLED(DispatchGPGPUWalkerAlongYFirst) &&
406-
(m_num2DAccesses > m_num1DAccesses) &&
405+
// Assume DispatchGPGPUWalkerAlongYFirst is on here unless off explicitly
406+
if (IGC_GET_FLAG_VALUE(DispatchGPGPUWalkerAlongYFirst) == 0)
407+
m_dispatchAlongY = false;
408+
else if ((m_num2DAccesses > m_num1DAccesses) &&
407409
!pCtx->getModuleMetaData()->csInfo.disableLocalIdOrderOptimizations &&
408410
GetContext()->m_DriverInfo.SupportsDispatchGPGPUWalkerAlongYFirst())
409411
{

IGC/common/igc_flags.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ DECLARE_IGC_REGKEY(bool, disableVarSplit, false, "disable variable
385385
DECLARE_IGC_REGKEY(bool, disableRemat, false, "disable re-materialization", false)
386386
DECLARE_IGC_REGKEY(bool, EnableDisableMidThreadPreemptionOpt, true, "Disable mid thread preemption", false)
387387
DECLARE_IGC_REGKEY(DWORD, MidThreadPreemptionDisableThreshold, 600, "Threshold to disable mid thread preemption", false)
388-
DECLARE_IGC_REGKEY(bool, DispatchGPGPUWalkerAlongYFirst, true, "dispatch GPGPU walker along Y first", false)
388+
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)
389389
DECLARE_IGC_REGKEY(bool, SetMaxPreRASchedulerRegPressureThreshold, false, "set Max PreRA Scheduler Threshold", false)
390390
DECLARE_IGC_REGKEY(bool, LimitConstantBuffersPushed, true, "Limit max number of CBs pushed when SupportIndirectConstantBuffer is true", false)
391391
DECLARE_IGC_REGKEY(DWORD, MaxPreRASchedulerRegPressureThreshold, 60, "Max PreRA Scheduler Threshold", false)

0 commit comments

Comments
 (0)