venus: filter out VK_EXT_physical_device_drm on the driver side
authorYiwei Zhang <zzyiwei@chromium.org>
Mon, 18 Jul 2022 04:48:29 +0000 (04:48 +0000)
committerMarge Bot <emma+marge@anholt.net>
Mon, 18 Jul 2022 19:23:53 +0000 (19:23 +0000)
Fixes: a1a22862c62 ("venus: implement VK_EXT_physical_device_drm")

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17591>

src/virtio/vulkan/vn_device.c

index 56bb443..9b65b06 100644 (file)
@@ -283,6 +283,11 @@ vn_device_fix_create_info(const struct vn_device *dev,
       }
    }
 
+   if (app_exts->EXT_physical_device_drm) {
+      /* see vn_physical_device_get_native_extensions */
+      block_exts[block_count++] = VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME;
+   }
+
    assert(extra_count <= ARRAY_SIZE(extra_exts));
    assert(block_count <= ARRAY_SIZE(block_exts));