radv: always enable VK_EXT_debug_utils
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Jul 2022 11:34:30 +0000 (13:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 5 Jul 2022 10:20:13 +0000 (12:20 +0200)
Instead of enabling it conditionally for SQTT. Other Vulkan drivers
always expose it as well.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6772
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17355>

src/amd/vulkan/radv_device.c

index eb41051..118600a 100644 (file)
@@ -366,7 +366,7 @@ static const struct vk_instance_extension_table radv_instance_extensions_support
    .KHR_external_semaphore_capabilities = true,
    .KHR_get_physical_device_properties2 = true,
    .EXT_debug_report = true,
-   /* EXT_debug_utils is exposed only if thread trace is enabled. See radv_CreateInstance */
+   .EXT_debug_utils = true,
 
 #ifdef RADV_USE_WSI_PLATFORM
    .KHR_get_surface_capabilities2 = true,
@@ -1046,8 +1046,7 @@ radv_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
    vk_instance_dispatch_table_from_entrypoints(&dispatch_table, &radv_instance_entrypoints, true);
    vk_instance_dispatch_table_from_entrypoints(&dispatch_table, &wsi_instance_entrypoints, false);
    struct vk_instance_extension_table extensions_supported = radv_instance_extensions_supported;
-   if (radv_thread_trace_enabled())
-      extensions_supported.EXT_debug_utils = true;
+
    result = vk_instance_init(&instance->vk, &extensions_supported, &dispatch_table,
                              pCreateInfo, pAllocator);
    if (result != VK_SUCCESS) {