radv: Print shader stage before disassembly.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 1 Apr 2020 11:43:50 +0000 (13:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Apr 2020 11:29:35 +0000 (11:29 +0000)
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>

src/amd/vulkan/radv_shader.c

index a46691229f514b50e1838a8694f424bbf1a4f9c0..537ab9f8b7f5e2a2537c4a463e635fba93a5a895 100644 (file)
@@ -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);
        }