venus: fix compatibility with older host drivers
authorChia-I Wu <olvaffe@gmail.com>
Mon, 14 Jun 2021 23:39:54 +0000 (16:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 18:20:41 +0000 (18:20 +0000)
commitc496dc1120442fcdca909dc8ff13c8acc4d2fb85
tree7fbe4501da44d12756ef52d292b91b1b1333da0e
parent84ec64c4e444101745b5d41ffa578a54008bd835
venus: fix compatibility with older host drivers

Unlike on Android, KHR_swapchain may be advertised even when the host
driver does not support EXT_image_drm_format_modifier and
EXT_queue_family_foreign.  Do not request those extensions when they are
not supported.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11369>
src/virtio/vulkan/vn_device.c