vulkan/wsi: keep allocate queue families in image, just don't fill them
authorDave Airlie <airlied@redhat.com>
Sun, 13 Mar 2022 19:54:20 +0000 (05:54 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 29 Apr 2022 00:58:00 +0000 (10:58 +1000)
commit85a94be0fec1dad9b22ee346383a4abb46a6e990
tree93ab56534378ec0ee145dfff52f4e830498796a3
parente6706d230e0d38fb5a5991d1e7f6ec44c2f531b7
vulkan/wsi: keep allocate queue families in image, just don't fill them

This changes the code so that it only looks at the passed in families
when concurrent, otherwise it always allocates one.

Fixes: 48b3ef625e19 ("vulkan/wsi: handle queue families properly for non-concurrent sharing mode.")
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15331>
src/vulkan/wsi/wsi_common.c