tu: Don't expose KHR_present_id,KHR_present_wait without KHR_swapchain
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 15 Feb 2023 18:09:29 +0000 (19:09 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Feb 2023 20:21:17 +0000 (20:21 +0000)
commitc7f18e4183e7200cd541798f7d22c2bce03e284e
treead3d965208f0382451a28ce913698a86a6337e4e
parent09501fe5a7d049d6850c5e4e88d76d77f00c33f5
tu: Don't expose KHR_present_id,KHR_present_wait without KHR_swapchain

VK_KHR_present_id and VK_KHR_present_wait depend on VK_KHR_swapchain
being present, which is not present at least on Android/KGSL.

Fixes:
src/vulkan/util/vk_extensions.h:450: void assert_device_extensions_requirements(
 const struct vk_device_extension_table *, const struct vk_instance_extension_table *):
 assertion "!device_ext->KHR_present_id || device_ext->KHR_swapchain" failed

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21345>
src/freedreno/vulkan/tu_device.c