From f6829299ba7bce68b7b0935cecc0726ed5f2b408 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Wed, 18 Dec 2024 11:12:40 +0000 Subject: [PATCH] Ignore source variables making later than the current instruction --- renderdoc/driver/shaders/dxil/dxil_debug.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renderdoc/driver/shaders/dxil/dxil_debug.cpp b/renderdoc/driver/shaders/dxil/dxil_debug.cpp index 353105668..075cbf6de 100644 --- a/renderdoc/driver/shaders/dxil/dxil_debug.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_debug.cpp @@ -6621,6 +6621,9 @@ void Debugger::ParseDebugData() { const LocalMapping &mapping = s->localMappings[m]; + if(mapping.instIndex > instructionIndex) + continue; + // see if this mapping is superceded by a later mapping in this scope for this // instruction. This is a bit inefficient but simple. The alternative would be to do // record start and end points for each mapping and update the end points, but this is @@ -6633,6 +6636,9 @@ void Debugger::ParseDebugData() { const LocalMapping &laterMapping = s->localMappings[n]; + if(laterMapping.instIndex > instructionIndex) + continue; + // if this mapping will supercede and starts later if(laterMapping.isSourceSupersetOf(mapping) && laterMapping.instIndex > mapping.instIndex)