Mesa (master): radv: include LLVM IR in the VK_AMD_shader_info "disassembly"

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 9 13:55:18 UTC 2018


Module: Mesa
Branch: master
Commit: 8c97abc066ef3bcf9c5a99b4be39daa5243a8234
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c97abc066ef3bcf9c5a99b4be39daa5243a8234

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Nov  7 12:10:21 2018 +0100

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 <samuel.pitoiset at gmail.com>

---

 src/amd/vulkan/radv_shader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index f98ca6b4ed..456c462a23 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);
 




More information about the mesa-commit mailing list