From: Samuel Pitoiset Date: Wed, 14 Mar 2018 09:36:20 +0000 (+0100) Subject: radv: dump LLVM IR when a hang is detected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16ecf037f98bab7fa07de664124272096650f65c;p=mesa.git radv: dump LLVM IR when a hang is detected Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index ce582312c5e..a0d01b24897 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);