anv: advertise VK_KHR_global_priority_queue
authorIván Briano <ivan.briano@intel.com>
Mon, 16 Oct 2023 19:16:58 +0000 (12:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 Oct 2023 23:39:58 +0000 (23:39 +0000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25758>

src/intel/vulkan/anv_device.c

index f68ee8290e841eecc0b00179cee98e02e14d8a1e..edb1a3dc77f4b7af5205b75a461756cff7e02e34 100644 (file)
@@ -240,6 +240,8 @@ get_device_extensions(const struct anv_physical_device *device,
       .KHR_format_feature_flags2             = true,
       .KHR_fragment_shading_rate             = device->info.ver >= 11,
       .KHR_get_memory_requirements2          = true,
+      .KHR_global_priority                   = device->max_context_priority >=
+                                               VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR,
       .KHR_image_format_list                 = true,
       .KHR_imageless_framebuffer             = true,
 #ifdef ANV_USE_WSI_PLATFORM