From 41bfba515c4c113120e57df77950339c7ef9f11a Mon Sep 17 00:00:00 2001 From: nmzik Date: Wed, 19 Aug 2026 16:25:05 +0200 Subject: [PATCH] shader: dump original RDNA2 binaries in graphics debug mode --- src/graphics/shader/shader.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/graphics/shader/shader.cpp b/src/graphics/shader/shader.cpp index e6e438531..39e74d581 100644 --- a/src/graphics/shader/shader.cpp +++ b/src/graphics/shader/shader.cpp @@ -1394,10 +1394,9 @@ static void DumpShaderRecompilerSpirv(const char* type, uint64_t shader_hash, static void DumpShaderRecompilerOriginal(const char* type, uint64_t shader_hash, std::span code, const std::string& decoded_dump) { - // if (!Config::GraphicsDebugDumpEnabled()) { - // return; - // } - return; + if (!Config::GraphicsDebugDumpEnabled()) { + return; + } EXIT_IF(code.empty()); static std::atomic_int id = 0; @@ -1417,6 +1416,9 @@ static void DumpShaderRecompilerOriginal(const char* type, uint64_t shader_hash, bin_file.Write(code.data(), code.size_bytes()); bin_file.Close(); } + if (decoded_dump.empty()) { + return; + } Common::File text_file; auto text_name = base_name;