radv: fix compatibility with VK_IMAGE_CREATE_EXTENDED_USAGE_BIT
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 17 Feb 2022 15:21:47 +0000 (16:21 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Mar 2022 11:16:33 +0000 (11:16 +0000)
commit0eaf9dbce302fe76b0ea2f0d22520526512eae5c
treeff1c752de04ab9c3728618b316962c15db733473
parent42f84a588633a11e991bb2856468145df30771ac
radv: fix compatibility with VK_IMAGE_CREATE_EXTENDED_USAGE_BIT

Some formats can be accepted if a compatible format is also supported
and VK_IMAGE_CREATE_EXTENDED_USAGE_BIT used.

Fixes new CTS dEQP-VK.image.extended_usage_bit_compatibility.*.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6046
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15063>
src/amd/vulkan/radv_formats.c