From: Samuel Pitoiset Date: Wed, 6 May 2020 07:38:17 +0000 (+0200) Subject: radv: report correct backend IR in hang reports when ACO is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f105b69464d908ee8b54c0bddb51909ebde4d686;p=mesa.git radv: report correct backend IR in hang reports when ACO is used Trivial. Signed-off-by: Samuel Pitoiset Acked-by: Daniel Schürmann Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 5508243bad8..77a136f94a1 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -432,7 +432,9 @@ radv_dump_shader(struct radv_pipeline *pipeline, fprintf(f, "NIR:\n%s\n", shader->nir_string); } - fprintf(f, "LLVM IR:\n%s\n", shader->ir_string); + fprintf(f, "%s IR:\n%s\n", + pipeline->device->physical_device->use_aco ? "ACO" : "LLVM", + shader->ir_string); fprintf(f, "DISASM:\n%s\n", shader->disasm_string); radv_shader_dump_stats(pipeline->device, shader, stage, f);