anv: Rework our aspect/plane helpers
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 29 Jul 2021 21:35:26 +0000 (16:35 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 16:07:23 +0000 (16:07 +0000)
commite37c2d923a4f240ed8403e08143172a5c0ab3ef3
tree80e2efced669bd11d0823daacdefdb91fb34cd09
parent0a93c0364c3bfcfee9ddea2d0ffdd989a32b274e
anv: Rework our aspect/plane helpers

The new versions should have identical output, just a simpler (and
probably faster) implementation and more/better asserts.

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