summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_debug.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-03-14 10:36:20 +0100
committerSamuel Pitoiset <[email protected]>2018-03-15 17:20:07 +0100
commit16ecf037f98bab7fa07de664124272096650f65c (patch)
tree7c0359ef5e579cbb57dda35e797c9d5151c3958d /src/amd/vulkan/radv_debug.c
parent81818662a5e5f252f95f4b4611b0840854d25beb (diff)
radv: dump LLVM IR when a hang is detected
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_debug.c')
-rw-r--r--src/amd/vulkan/radv_debug.c1
1 files changed, 1 insertions, 0 deletions
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);