anv: Handle explicit surface layout of DG2_RC_CCS
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 4 May 2023 21:10:18 +0000 (14:10 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 20:53:26 +0000 (20:53 +0000)
commitf2dab434d8b8b8d3fc8532c729e489dd16848706
tree0cd78039c62abd052bdbbdd6628d6bc35632616b
parent47565d31e1446ba872f4d6473feea2caa406db84
anv: Handle explicit surface layout of DG2_RC_CCS

We're going to enable the DG2 modifier. Account for the reduced plane
count that exists with it.

Also add an assert to make it clearer that the aux in use is CCS.
Otherwise, it may not be obvious because of the generic compression
names being used here.

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