anv: Use anv_get_format_plane in anv_get_image_format_features
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 30 Jul 2021 11:57:35 +0000 (06:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 16:07:23 +0000 (16:07 +0000)
commit61807505e85c39b3fbf090137cd60f2cef7bba62
tree20f4361b951a41fc0d3253fe37bc095688568db1
parent4df2078e7299edc9c6a8cd281d5310d93b70fd70
anv: Use anv_get_format_plane in anv_get_image_format_features

Once we get past depth/stencil, what we really want is plane 0 not the
color aspect.  A bunch of those formats don't have a single color
aspect.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12141>
src/intel/vulkan/anv_formats.c