anv: Enable stencil buffer compression on Gen12+
authorSagar Ghuge <sagar.ghuge@intel.com>
Fri, 24 Apr 2020 17:41:42 +0000 (10:41 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Oct 2020 21:42:36 +0000 (21:42 +0000)
commitddca93ddf70dc76eddb0aebb80de4b19a9b134b2
treeba94a385fe4448b820203c790de699249bad33d4
parentdc22d6b3ab121569a95300ac7ce66679c2cfd927
anv: Enable stencil buffer compression on Gen12+

v2: (Nanley Chery)
- Fix condition check.
- Move aux_usage assignment after add_aux_state_tracking_buffer method.

v3: (Nanley Chery)
- Move stencil condition close to depth block.

v4: (Nanley Chery)
- Add DEBUG_NO_RBC condition.

v5: (Nanley Chery)
- Don't add CCS plane explicitly.
- Use isl_surf_supports_ccs.

v6:
- Simplify condition (Nanley Chery)

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_image.c