anv: Return number of layers/levels attached to anv_image
authorSagar Ghuge <sagar.ghuge@intel.com>
Tue, 13 Oct 2020 02:12:39 +0000 (19:12 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Oct 2020 21:42:36 +0000 (21:42 +0000)
commitc2a41028485d5ca0a67a4396ac7d8e491c688109
tree523a841535fe971b1ed43ae6759fe7679fb49700
parent67956689bb8d9bb78f62286f94ca0f1783cecc6a
anv: Return number of layers/levels attached to anv_image

Don't check the auxiliary surface's ISL surf in order to return the
surface levels/layers instead we can return the anv_image parameter.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2942>
src/intel/vulkan/anv_private.h