anv: Add an anv_image_get_memory_requirements helper
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 5 Oct 2021 15:44:42 +0000 (10:44 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 Oct 2021 02:18:39 +0000 (02:18 +0000)
commit8c2a1ed3dad4d3fa79a53a0c0e80e6bab4e74e49
treece473508bff06bcdfcdaba5577c42e083ffc54d4
parent76b1d04e72d401e1cab29c02e4e97079d1cbe4f2
anv: Add an anv_image_get_memory_requirements helper

This is similar to a patch from Lionel except works in terms of aspects
rather than bindings.  This makes it easy to use from the Android code.

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