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>
(cherry picked from commit b589df9862)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8014>
This commit is contained in:
Samuel Pitoiset 2020-11-26 10:39:23 +01:00 committed by Marge Bot
parent 2ae373152a
commit 7b1ee98157

View file

@ -2856,6 +2856,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);