mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
shader: dump original RDNA2 binaries in graphics debug mode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user