anv/image: Clean up anv_GetImageMemoryRequirements2
authorChad Versace <chad@kiwitree.net>
Tue, 15 Dec 2020 02:08:37 +0000 (18:08 -0800)
committerchadversary <chad@kiwitree.net>
Tue, 9 Mar 2021 18:42:20 +0000 (18:42 +0000)
commit22ac3d74e0c3ef3792cf0463b5276815e5b8e9ea
tree428fb06802dc3f255bcfc4d7edf1dc03478052ed
parentffc08351e1f559b46a57ba2b808c280afc646fe1
anv/image: Clean up anv_GetImageMemoryRequirements2

If the image is disjoint, there is no reason to calculate image-global
memory requirements. Instead, only per-plane memory requirements are
needed.

Also, delete a large duplicate comment.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8097>
src/intel/vulkan/anv_image.c