From 0a6368f7778da650f1acea73de469f1acbbf0a9a Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 12 Sep 2022 13:44:57 +0100 Subject: [PATCH] Ignore function-local OpUndef for stepping --- renderdoc/driver/shaders/spirv/spirv_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/shaders/spirv/spirv_debug.cpp b/renderdoc/driver/shaders/spirv/spirv_debug.cpp index 0eb458a0c..6d3f43710 100644 --- a/renderdoc/driver/shaders/spirv/spirv_debug.cpp +++ b/renderdoc/driver/shaders/spirv/spirv_debug.cpp @@ -575,7 +575,7 @@ void ThreadState::SkipIgnoredInstructions() { Iter it = debugger.GetIterForInstruction(nextInstruction); rdcspv::Op op = it.opcode(); - if(op == Op::Line || op == Op::NoLine) + if(op == Op::Line || op == Op::NoLine || op == Op::Undef) { nextInstruction++; continue;