Move hasQuadScope assert to the correct place (after workgroup check)

This commit is contained in:
Jake Turner
2025-12-11 14:56:14 +13:00
parent c14d404f2c
commit 823ab380c1
+3 -3
View File
@@ -6658,12 +6658,12 @@ ShaderDebugTrace *VulkanReplay::DebugComputeCommon(ShaderStage stage, uint32_t e
RDCASSERTNOTEQUAL(subgroupSize, 0);
numThreads = RDCMAX(numThreads, subgroupSize);
if(hasQuadScope)
RDCASSERT(numThreads >= 4);
if(hasWorkgroupScope)
numThreads = RDCMAX(numThreads, threadDim[0] * threadDim[1] * threadDim[2]);
if(hasQuadScope)
RDCASSERT(numThreads >= 4);
apiWrapper->global_builtins[ShaderBuiltin::NumSubgroups] =
ShaderVariable(rdcstr(), winner->numSubgroups, 0U, 0U, 0U);