vulkan/wsi: Move select_memory_type to common and rework it a bit
authorJason Ekstrand <jason.ekstrand@collabora.com>
Wed, 6 Jul 2022 21:29:03 +0000 (16:29 -0500)
committerJason Ekstrand <jason.ekstrand@collabora.com>
Thu, 7 Jul 2022 15:21:29 +0000 (10:21 -0500)
commit1cc20fbefdbf32d69150054b7598ad8dc105e676
tree002360303b7a758fbde44cc1ff7f27fd53488f8b
parentfbb7b6e0523658f5c73837a6f35733e7ba2d683a
vulkan/wsi: Move select_memory_type to common and rework it a bit

Instead of taking a single boolean for device-local, take a set of
required properties and denied properties.  This will let us require
additional things like being CPU mappable in the future.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17388>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common_drm.c
src/vulkan/wsi/wsi_common_private.h