radv: disable SQTT support for unsupported GPUs

Like GFX10.3 which is currently broken.

Cc: 20.2 20.3
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/7786>
(cherry picked from commit b589df9862)
This commit is contained in:
Samuel Pitoiset 2020-11-26 10:39:23 +01:00 committed by Dylan Baker
parent 436f9bd6f5
commit c2bc10a600

View file

@ -2779,6 +2779,12 @@ VkResult radv_CreateDevice(
abort();
}
if (device->physical_device->rad_info.chip_class > GFX10) {
fprintf(stderr, "radv: Thread trace is not supported "
"for that GPU!\n");
exit(1);
}
/* Default buffer size set to 1MB per SE. */
device->thread_trace_buffer_size =
radv_get_int_debug_option("RADV_THREAD_TRACE_BUFFER_SIZE", 1024 * 1024);