From 53ad61b6a5c740c3880c42825d954e4bbc344ce5 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Mon, 14 Apr 2025 18:30:02 +0100 Subject: [PATCH] D3D12 Workgroup debugger, use SV_GroupThreadID for threadid Use SV_GroupThreadID to fill in threadid in the compute fetcher instead of SV_DispatchThreadID Keep SV_DispatchThreadID to identify the candidate thread --- renderdoc/driver/shaders/dxbc/dx_debug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/shaders/dxbc/dx_debug.cpp b/renderdoc/driver/shaders/dxbc/dx_debug.cpp index f23e5cdda..6deffb89e 100644 --- a/renderdoc/driver/shaders/dxbc/dx_debug.cpp +++ b/renderdoc/driver/shaders/dxbc/dx_debug.cpp @@ -883,7 +883,8 @@ void ExtractInputs(Inputs IN #elif STAGE == STAGE_CS - , uint3 threadid : SV_DispatchThreadID + , uint3 threadid : SV_GroupThreadID + , uint3 dtid : SV_DispatchThreadID #endif ) @@ -992,7 +993,7 @@ void ExtractInputs(Inputs IN ps.primitive = primitive; ps.isFrontFace = isFrontFace; #elif STAGE == STAGE_CS - bool candidateThread = (threadid.x == DESTX && threadid.y == DESTY && threadid.z == DESTZ); + bool candidateThread = (dtid.x == DESTX && dtid.y == DESTY && dtid.z == DESTZ); cs.threadid = threadid; #endif