Module: Mesa Branch: master Commit: 15e1b530f6e010e639a193422eed3736fc060bf3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15e1b530f6e010e639a193422eed3736fc060bf3
Author: Samuel Pitoiset <[email protected]> Date: Fri Nov 20 08:58:49 2020 +0100 radv: print more debug messages when generating a hang report If for some reasons the driver can't generate the hang report properly. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7706> --- src/amd/vulkan/radv_debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 74bfe993537..cfd1cb76dcc 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -627,6 +627,8 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs) abort(); } + fprintf(stderr, "radv: GPU hang report will be saved to '%s'!\n", dump_dir); + /* Dump trace file. */ snprintf(dump_path, sizeof(dump_path), "%s/%s", dump_dir, "trace.log"); f = fopen(dump_path, "w+"); @@ -707,7 +709,7 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs) fclose(f); } - fprintf(stderr, "radv: GPU hang report saved to '%s'!\n", dump_dir); + fprintf(stderr, "radv: GPU hang report saved successfully!\n"); abort(); } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
