radv/sqtt: abort if SQTT is used on GFX6-GFX7

RGP only supports GFX8+.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4022>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4022>
This commit is contained in:
Samuel Pitoiset 2020-03-02 16:25:33 +01:00 committed by Marge Bot
parent 14283ddc79
commit c6c661de31
1 changed files with 9 additions and 5 deletions

View File

@ -3039,12 +3039,16 @@ VkResult radv_CreateDevice(
int radv_thread_trace = radv_get_int_debug_option("RADV_THREAD_TRACE", -1);
if (radv_thread_trace >= 0) {
fprintf(stderr, "******************************************************************************\n");
fprintf(stderr, "* WARNING: Thread trace support is experimental and only supported on GFX8+! *\n");
fprintf(stderr, "******************************************************************************\n");
fprintf(stderr, "*************************************************\n");
fprintf(stderr, "* WARNING: Thread trace support is experimental *\n");
fprintf(stderr, "*************************************************\n");
/* TODO: add support for more ASICs. */
assert(device->physical_device->rad_info.chip_class >= GFX8);
if (device->physical_device->rad_info.chip_class < GFX8) {
fprintf(stderr, "GPU hardware not supported: refer to "
"the RGP documentation for the list of "
"supported GPUs!\n");
abort();
}
/* Default buffer size set to 1MB per SE. */
device->thread_trace_buffer_size =