Mesa (master): radv: dump LLVM IR when a hang is detected

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Mar 15 16:22:37 UTC 2018


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Mar 14 10:36:20 2018 +0100

radv: dump LLVM IR when a hang is detected

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

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

diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c
index ce582312c5..a0d01b2489 100644
--- a/src/amd/vulkan/radv_debug.c
+++ b/src/amd/vulkan/radv_debug.c
@@ -508,6 +508,7 @@ radv_dump_shader(struct radv_pipeline *pipeline,
 		nir_print_shader(shader->nir, f);
 	}
 
+	fprintf(f, "LLVM IR:\n%s\n", shader->llvm_ir_string);
 	fprintf(f, "DISASM:\n%s\n", shader->disasm_string);
 
 	radv_shader_dump_stats(pipeline->device, shader, stage, f);




More information about the mesa-commit mailing list