From a211d740964995c5015bbf424f141dc05c118ee9 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Mon, 18 Jul 2022 04:48:29 +0000 Subject: [PATCH] venus: filter out VK_EXT_physical_device_drm on the driver side Fixes: a1a22862c62 ("venus: implement VK_EXT_physical_device_drm") Signed-off-by: Yiwei Zhang Reviewed-by: Ryan Neph Part-of: --- src/virtio/vulkan/vn_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/virtio/vulkan/vn_device.c b/src/virtio/vulkan/vn_device.c index 56bb443a6ae..9b65b06026e 100644 --- a/src/virtio/vulkan/vn_device.c +++ b/src/virtio/vulkan/vn_device.c @@ -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));