mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 13:56:59 +01: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,
|
static void DumpShaderRecompilerOriginal(const char* type, uint64_t shader_hash,
|
||||||
std::span<const uint32_t> code,
|
std::span<const uint32_t> code,
|
||||||
const std::string& decoded_dump) {
|
const std::string& decoded_dump) {
|
||||||
// if (!Config::GraphicsDebugDumpEnabled()) {
|
if (!Config::GraphicsDebugDumpEnabled()) {
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
EXIT_IF(code.empty());
|
EXIT_IF(code.empty());
|
||||||
|
|
||||||
static std::atomic_int id = 0;
|
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.Write(code.data(), code.size_bytes());
|
||||||
bin_file.Close();
|
bin_file.Close();
|
||||||
}
|
}
|
||||||
|
if (decoded_dump.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Common::File text_file;
|
Common::File text_file;
|
||||||
auto text_name = base_name;
|
auto text_name = base_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user