radv/sqtt: abort if SQTT is used on GFX6-GFX7
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Mar 2020 15:25:33 +0000 (16:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 08:00:39 +0000 (08:00 +0000)
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>

src/amd/vulkan/radv_device.c

index c54af43cfd642d171286489debdb24453403b2d5..d59f791cba17be8d2fbdf16f748364652abb91d5 100644 (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");
-
-               /* 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 =