nvk: Rework multi-plane format features a bit
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 2 Aug 2023 09:34:10 +0000 (04:34 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:07 +0000 (21:32 +0000)
commit0afc57afadaec2a6c7c268eafc98ea46dc79c78f
treee175007f2cf9daee4791b44c93d141864bb827c6
parentb883031b9163346700cf67be80c69a1412637167
nvk: Rework multi-plane format features a bit

We need to avoid returning certain feature flags such as rendering or
storage from vkGetPhysicalDeviceFormatFeatures*() but still allow those
for single-plane views of the image which means allowing them in
vkGetPhysicalDeviceImageFormatProperties*().

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_image.c