diff options
author | Samuel Pitoiset <[email protected]> | 2020-03-02 16:25:33 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-06 08:00:39 +0000 |
commit | c6c661de3118873b9a1f933917a08213e2435601 (patch) | |
tree | d7b50d85d395b8168807ecd09972a60368ea7c9f /src/amd | |
parent | 14283ddc798686c669017f15c3eb0c0272cc6888 (diff) |
radv/sqtt: abort if SQTT is used on GFX6-GFX7
RGP only supports GFX8+.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4022>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4022>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 16 |
1 files 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 = |