From: Timur Kristóf Date: Wed, 1 Apr 2020 11:43:50 +0000 (+0200) Subject: radv: Print shader stage before disassembly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db2ee3686d396eabd9233e80e368da0e9ae521be;p=mesa.git radv: Print shader stage before disassembly. Signed-off-by: Timur Kristóf Reviewed-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Tested-by: Marge Bot Part-of: --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index a46691229f5..537ab9f8b7f 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -1127,7 +1127,11 @@ shader_variant_compile(struct radv_device *device, } if (options->dump_shader) { - fprintf(stderr, "disasm:\n%s\n", variant->disasm_string); + fprintf(stderr, "%s", radv_get_shader_name(info, shaders[0]->info.stage)); + for (int i = 1; i < shader_count; ++i) + fprintf(stderr, " + %s", radv_get_shader_name(info, shaders[i]->info.stage)); + + fprintf(stderr, "\ndisasm:\n%s\n", variant->disasm_string); }