diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-23 09:55:24 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-23 10:22:29 +0200 |
commit | 9343c93e34b559d29f62209ed832f9f11773515a (patch) | |
tree | 0cc97a9b8460e7475b3fa6e61b8195df39f020f7 | |
parent | b1c35fa6d6e1c2177bb602e8cad3d6a25534ad04 (diff) |
radv: fix dumping disassembly with RADV_DEBUG=shaders
Fixes: a20a9d0c5e7 ("radv: dont store disasm string unless keep_shader_info flag set")
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 3adaf52e152..736388c555c 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -1013,7 +1013,8 @@ radv_shader_variant_create(struct radv_device *device, return NULL; } - if (device->keep_shader_info) { + if (device->keep_shader_info || + (device->instance->debug_flags & RADV_DEBUG_DUMP_SHADERS)) { const char *disasm_data; size_t disasm_size; if (!ac_rtld_get_section_by_name(&rtld_binary, ".AMDGPU.disasm", &disasm_data, &disasm_size)) { |