anv: Make anv_image_aspect_to_plane take an anv_image*
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 30 Jul 2021 23:57:35 +0000 (18:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 16:07:23 +0000 (16:07 +0000)
commit56fe30cbfcc0184b342595069a19754ff93595fa
tree8435001b2756cfe4353aaa020311be7a6368522e
parente37c2d923a4f240ed8403e08143172a5c0ab3ef3
anv: Make anv_image_aspect_to_plane take an anv_image*

It's called anv_image_* so it really should take an anv_image.  For the
couple of cases where we really want to pass in a set of aspects, we
leave an anv_aspect_to_plane() helper.  anv_image_aspect_to_plane() is
then just a wrapper around it which grabs the aspects from the image.

While we're in the area, sprinkle some const around.

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