From 71f10084df96629b21f7c8a014dc4e793b67374b Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 16 Dec 2020 18:06:23 +0000 Subject: [PATCH] Fix SPIR-V editor unit test for new section types --- renderdoc/driver/shaders/spirv/spirv_editor.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/renderdoc/driver/shaders/spirv/spirv_editor.cpp b/renderdoc/driver/shaders/spirv/spirv_editor.cpp index eb81d6c69..d56dbd9a9 100644 --- a/renderdoc/driver/shaders/spirv/spirv_editor.cpp +++ b/renderdoc/driver/shaders/spirv/spirv_editor.cpp @@ -746,14 +746,18 @@ void main() { {0x64, 0x80}, // ExecutionMode {0x80, 0x8c}, - // Debug - {0x8c, 0x118}, + // DebugStringSource + {0x8c, 0xb8}, + // DebugNames + {0xb8, 0x118}, + // DebugModuleProcessed (contains inserted nop) + {0x118, 0x11c}, // Annotations - {0x118, 0x178}, + {0x11c, 0x17c}, // TypesVariables - {0x178, 0x2a0}, + {0x17c, 0x2a4}, // Functions - {0x2a0, 0x370}, + {0x2a4, 0x374}, }; SECTION("Check that SPIR-V is correct with no changes")