ac: add an option to dump GPU info to a file

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7233>
This commit is contained in:
Samuel Pitoiset
2020-10-19 16:11:25 +02:00
committed by Marge Bot
parent 5f16c5b6f9
commit bf66bbda80
5 changed files with 177 additions and 176 deletions

View File

@@ -582,7 +582,7 @@ radv_check_gpu_hangs(struct radv_queue *queue, struct radeon_cmdbuf *cs)
fprintf(stderr, "GPU hang report:\n\n");
radv_dump_device_name(device, stderr);
ac_print_gpu_info(&device->physical_device->rad_info);
ac_print_gpu_info(&device->physical_device->rad_info, stdout);
radv_dump_enabled_options(device, stderr);
radv_dump_dmesg(stderr);