radv: dump LLVM IR when a hang is detected
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Mar 2018 09:36:20 +0000 (10:36 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Mar 2018 16:20:07 +0000 (17:20 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_debug.c

index ce582312c5e4b0b1ca54d2051d7a7305786ed035..a0d01b2489749ddfee5ba7044901931e55123e8d 100644 (file)
@@ -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);