summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-10-15 14:52:02 +0200
committerSamuel Pitoiset <[email protected]>2019-10-21 08:50:39 +0200
commitcf5e55558efab33792c3312ffdc78b4c19bb4ff2 (patch)
tree2637ed9efc3c5e704589bf34830497c87bf0bf85 /src/amd
parentbc2319deb2845c414247e6bdcd9d6c27745c2a4e (diff)
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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_debug.c3
1 files changed, 2 insertions, 1 deletions
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();
}