shader: dump original RDNA2 binaries in graphics debug mode

This commit is contained in:
nmzik
2026-08-19 16:25:05 +02:00
parent 4710522e87
commit 41bfba515c
+6 -4
View File
@@ -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<const uint32_t> 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;