diff options
author | Nicolai Hähnle <[email protected]> | 2018-11-07 12:10:21 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2018-11-09 14:54:37 +0100 |
commit | 8c97abc066ef3bcf9c5a99b4be39daa5243a8234 (patch) | |
tree | 07cf986127ae6d17c4e0ff775f9eb4ed9d5af144 | |
parent | 5213be9fab72548c799b30e320dd1b257534f096 (diff) |
radv: include LLVM IR in the VK_AMD_shader_info "disassembly"
Helpful for debugging compiler backend problems: this allows us to
easily retrieve the LLVM IR from RenderDoc.
Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index f98ca6b4edd..456c462a230 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -860,6 +860,7 @@ radv_GetShaderInfoAMD(VkDevice _device, buf = _mesa_string_buffer_create(NULL, 1024); _mesa_string_buffer_printf(buf, "%s:\n", radv_get_shader_name(variant, stage)); + _mesa_string_buffer_printf(buf, "%s\n\n", variant->llvm_ir_string); _mesa_string_buffer_printf(buf, "%s\n\n", variant->disasm_string); generate_shader_stats(device, variant, stage, buf); |