venus: device create to filter promoted swapchain_maintenance1
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

WSI extensions are implemented on the Venus driver side, layering on top
of external memory extensions. So we have to filter out WSI extensions
during device creation, otherwise the headless driver on the venus
renderer side can fail the device creation with _EXTENSION_NOT_PRESENT.

Fixes: 11195eb8de ("vulkan: Add KHR_swapchain_maintenance1 promotions.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38763>
This commit is contained in:
Yiwei Zhang 2025-12-01 22:08:27 -08:00 committed by Marge Bot
parent 4ace478545
commit a71b4a4b95

View file

@ -267,6 +267,8 @@ vn_device_fix_create_info(const struct vn_device *dev,
block_exts[block_count++] = VK_KHR_PRESENT_WAIT_EXTENSION_NAME;
block_exts[block_count++] = VK_KHR_PRESENT_WAIT_2_EXTENSION_NAME;
block_exts[block_count++] = VK_KHR_SWAPCHAIN_EXTENSION_NAME;
block_exts[block_count++] =
VK_KHR_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME;
block_exts[block_count++] =
VK_KHR_SWAPCHAIN_MUTABLE_FORMAT_EXTENSION_NAME;
block_exts[block_count++] =