Mesa (master): radv: dump trace files earlier if a GPU hang is detected

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 21 07:15:54 UTC 2019


Module: Mesa
Branch: master
Commit: cf5e55558efab33792c3312ffdc78b4c19bb4ff2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf5e55558efab33792c3312ffdc78b4c19bb4ff2

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Oct 15 14:52:02 2019 +0200

radv: dump trace files earlier if a GPU hang is detected

To make sure a trace file is generated in case the driver crashes
during the hang report generation (which happens sometimes).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_debug.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c
index 9ab7c8638e9..ce480794560 100644
--- a/src/amd/vulkan/radv_debug.c
+++ b/src/amd/vulkan/radv_debug.c
@@ -604,6 +604,8 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
 	graphics_pipeline = radv_get_saved_graphics_pipeline(device);
 	compute_pipeline = radv_get_saved_compute_pipeline(device);
 
+	radv_dump_trace(queue->device, cs);
+
 	fprintf(stderr, "GPU hang report:\n\n");
 	radv_dump_device_name(device, stderr);
 
@@ -632,7 +634,6 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
 		break;
 	}
 
-	radv_dump_trace(queue->device, cs);
 	abort();
 }
 




More information about the mesa-commit mailing list