mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
bc2319deb2
commit
cf5e55558e
1 changed files with 2 additions and 1 deletions
|
|
@ -604,6 +604,8 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
|
||||||
graphics_pipeline = radv_get_saved_graphics_pipeline(device);
|
graphics_pipeline = radv_get_saved_graphics_pipeline(device);
|
||||||
compute_pipeline = radv_get_saved_compute_pipeline(device);
|
compute_pipeline = radv_get_saved_compute_pipeline(device);
|
||||||
|
|
||||||
|
radv_dump_trace(queue->device, cs);
|
||||||
|
|
||||||
fprintf(stderr, "GPU hang report:\n\n");
|
fprintf(stderr, "GPU hang report:\n\n");
|
||||||
radv_dump_device_name(device, stderr);
|
radv_dump_device_name(device, stderr);
|
||||||
|
|
||||||
|
|
@ -632,7 +634,6 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
radv_dump_trace(queue->device, cs);
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue