diff options
author | Timur Kristóf <[email protected]> | 2020-04-01 13:43:50 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-07 11:29:35 +0000 |
commit | db2ee3686d396eabd9233e80e368da0e9ae521be (patch) | |
tree | 723702e8125bda03f6942299d0aeb01173b6a186 /src/amd/vulkan/radv_shader.c | |
parent | aa42b504d6e8a1f7129148a1ca42ef80009b72f3 (diff) |
radv: Print shader stage before disassembly.
Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |