anv: Make the D16 reg mode single-sampled
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 1 Aug 2022 21:19:55 +0000 (14:19 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 Aug 2022 15:31:10 +0000 (15:31 +0000)
commite7419c11ae44ee90c076ab13142e56a6709aa39a
tree1854cbaa2419dac89c39c64efd17935bdb306892
parenta4a15f500ce43b18b2ee99b740b7f2575abcfa4e
anv: Make the D16 reg mode single-sampled

Wa_14010455700 is dependent on the format and sample count, but our
code to track whether or not it had been applied was only dependent on
the format.

As a result, we failed to enable the workaround when an app used a D16
2xMSAA buffer, then a D16 1xMSAA buffer right afterwards.

Make the workaround tracking code sample-dependent to fix this.

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17859>
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c