mesa/src/amd
Samuel Pitoiset 68dead112e radv: update the ZRANGE_PRECISION value for the TC-compat bug
On GFX8+, there is a bug that affects TC-compatible depth surfaces
when the ZRange is not reset after LateZ kills pixels.

The workaround is to always set DB_Z_INFO.ZRANGE_PRECISION to match
the last fast clear value. Because the value is set to 1 by default,
we only need to update it when clearing Z to 0.0.

We also need to set the depth clear regs and to update
ZRANGE_PRECISION when initializing a TC-compat depth image to 0.

Original patch from James Legg.

This fixes random CTS fails with
dEQP-VK.renderpass.suballocation.formats.d32_sfloat_s8_uint.input.*

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105396
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
2018-06-14 11:38:29 +02:00
..
addrlib amd/addrlib: add support for VegaM 2018-04-18 14:45:32 -04:00
common ac: handle undefined EQAA samples in ac_apply_fmask_to_sample 2018-06-13 22:00:12 -04:00
vulkan radv: update the ZRANGE_PRECISION value for the TC-compat bug 2018-06-14 11:38:29 +02:00
Android.addrlib.mk amd: remove always-true BRAHMA_BUILD define 2017-12-01 13:49:42 +00:00
Android.common.mk Android: fix undeclared identifier 'gfx9d_reg_table' 2017-09-11 09:35:23 -05:00
Android.mk android: amd/common: add support for libmesa_amd_common 2016-11-05 18:42:29 +01:00
Makefile.addrlib.am amd/addrlib: Use defines in autotools build. 2018-05-20 11:57:59 +02:00
Makefile.am autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
Makefile.common.am ac/common: always build NIR translation 2017-07-31 17:59:10 +02:00
Makefile.sources ac/nir: Use lower_vote_eq_to_ballot instead of ac_nir_lower_subgroups 2018-03-13 13:25:27 -07:00
meson.build meson: build "radv" vulkan driver for radeon hardware 2017-09-27 09:12:34 -07:00