Fix incorrect scope end instruction value when extending SSA ID lifetime

This commit is contained in:
Jake Turner
2025-10-29 17:12:26 +00:00
parent 76ca83b27a
commit afb82cd6d5
+1 -1
View File
@@ -9622,7 +9622,7 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *apiWrapper, uint32_t eve
const ExecPointReference &current = 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);