anv: use shadow surface for stencil input attachment on gfx7
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 1 Sep 2021 10:01:11 +0000 (13:01 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 15 Apr 2022 06:46:40 +0000 (09:46 +0300)
commit7be6632f7d9a18557d2f75cce607ea17d93313f5
tree74d8b9771eeffb6a9b0be95888c11fcf80ed53de
parentf049b1c085cfb3c6ed96e5379913ec5f9d564c6d
anv: use shadow surface for stencil input attachment on gfx7

This fixes a number of tests like :
  dEQP-VK.renderpass*.suballocation.multisample.s8_uint.*
  dEQP-VK.renderpass*.suballocation.multisample.separate_stencil_usage.d24_unorm_s8_uint.*.test_stencil
  dEQP-VK.renderpass*.suballocation.multisample.d24_unorm_s8_uint.*
  dEQP-VK.renderpass*.suballocation.multisample.d32_sfloat_s8_uint.*

Because the driver asserts when generating RENDER_SURFACE_STATE with a
8 Valign value for stencil buffer (only 2 & 4 are supported).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12670>
src/intel/vulkan/anv_image.c