nvk: enable a bunch of external fence/semaphore bits
authorDave Airlie <airlied@redhat.com>
Wed, 19 Jul 2023 01:27:33 +0000 (11:27 +1000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:07 +0000 (21:32 +0000)
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_instance.c
src/nouveau/vulkan/nvk_physical_device.c

index a4d156d..00447ae 100644 (file)
@@ -84,7 +84,9 @@ static const struct vk_instance_extension_table instance_extensions = {
    .EXT_acquire_xlib_display = true,
 #endif
    .KHR_device_group_creation = true,
+   .KHR_external_fence_capabilities = NVK_NEW_UAPI,
    .KHR_external_memory_capabilities = true,
+   .KHR_external_semaphore_capabilities = NVK_NEW_UAPI,
    .KHR_get_physical_device_properties2 = true,
    .EXT_debug_report = true,
    .EXT_debug_utils = true,
index b1f6acf..2c4de19 100644 (file)
@@ -349,8 +349,12 @@ nvk_get_device_extensions(const struct nv_device_info *info,
       .KHR_draw_indirect_count = info->cls_eng3d >= TURING_A,
       .KHR_driver_properties = true,
       .KHR_dynamic_rendering = true,
+      .KHR_external_fence = NVK_NEW_UAPI,
+      .KHR_external_fence_fd = NVK_NEW_UAPI,
       .KHR_external_memory = true,
       .KHR_external_memory_fd = true,
+      .KHR_external_semaphore = NVK_NEW_UAPI,
+      .KHR_external_semaphore_fd = NVK_NEW_UAPI,
       .KHR_format_feature_flags2 = true,
       .KHR_get_memory_requirements2 = true,
       .KHR_image_format_list = true,