vulkan/wsi: Filter modifiers with ImageFormatProperties
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 1 Oct 2018 21:00:32 +0000 (16:00 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jan 2020 18:27:29 +0000 (18:27 +0000)
commita218f132786118c6e0be64d5b85fe9a5c18c634d
treefe3ed8ae4a2af521b8170cf3bf1d043eabe88a0f
parent210e68874bbf5321adc6e6464a80526c177f8741
vulkan/wsi: Filter modifiers with ImageFormatProperties

Just because a modifier is returned for the given format, that doesn't
mean it works with all usages and flags.  We need to filter the list by
calling vkGetPhysicalDeviceImageFormatProperties2.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3434>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common.h