From c6c661de3118873b9a1f933917a08213e2435601 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 2 Mar 2020 16:25:33 +0100 Subject: [PATCH] radv/sqtt: abort if SQTT is used on GFX6-GFX7 RGP only supports GFX8+. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Tested-by: Marge Bot Part-of: --- src/amd/vulkan/radv_device.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index c54af43cfd6..d59f791cba1 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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"); - - /* TODO: add support for more ASICs. */ - assert(device->physical_device->rad_info.chip_class >= GFX8); + fprintf(stderr, "*************************************************\n"); + fprintf(stderr, "* WARNING: Thread trace support is experimental *\n"); + fprintf(stderr, "*************************************************\n"); + + 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 = -- 2.30.2