From 7c438edd2abf334605c1b902536fda1eb9f8b552 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 21 Nov 2025 15:44:54 +0000 Subject: [PATCH] Fix column lookup via access chain in SPIR-V debugging --- renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp b/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp index 0a436d7fb..217ad3c5d 100644 --- a/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp +++ b/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp @@ -3584,7 +3584,9 @@ DeviceOpResult Debugger::ReadFromPointer(const ShaderVariable &ptr, ShaderVariab for(uint32_t row = 0; row < ret.rows; row++) copyComp(ret, row, tmp, row * ret.columns + scalar0); - // it's a vector now, even if it was a matrix before + // it's a vector now, even if it was a matrix before. + // since we have the convention of row vectors in RenderDoc, adjust the size too + ret.columns = ret.rows; ret.rows = 1; } }