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>
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);
break;
}
- radv_dump_trace(queue->device, cs);
abort();
}