From afb82cd6d5b24c258e489fae08c21682c2dc556f Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Wed, 29 Oct 2025 17:12:26 +0000 Subject: [PATCH] Fix incorrect scope end instruction value when extending SSA ID lifetime --- renderdoc/driver/shaders/dxil/dxil_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/shaders/dxil/dxil_debug.cpp b/renderdoc/driver/shaders/dxil/dxil_debug.cpp index 37e70a89e..857538197 100644 --- a/renderdoc/driver/shaders/dxil/dxil_debug.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_debug.cpp @@ -9622,7 +9622,7 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *apiWrapper, uint32_t eve const ExecPointReference ¤t = info.maxExecPointPerId[localMapping.debugVarSSAId]; if(!current.IsValid()) continue; - uint32_t scopeEndInst = scope->maxInstruction + 1; + uint32_t scopeEndInst = scope->maxInstruction; scopeEndInst = RDCMIN(scopeEndInst, (uint32_t)info.instructionToBlock.size() - 1); const uint32_t scopeEndBlock = info.instructionToBlock[scopeEndInst]; ExecPointReference scopeEnd(scopeEndBlock, scopeEndInst);