radeonsi/gfx9: use the VI codepath for clamping Z
authorMarek Olšák <marek.olsak@amd.com>
Thu, 10 Aug 2017 20:29:54 +0000 (22:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 11 Aug 2017 18:38:29 +0000 (20:38 +0200)
commit27fef5d52d44c8684fa4e7a21bd7a4284f3688ee
tree7c80f288151a86abb6ac6990e69438596a236f40
parent2eee03b7a11339159f9a1f6ef90259caea899048
radeonsi/gfx9: use the VI codepath for clamping Z

This fixes corrupted shadows in Unigine Valley.
The corruption disappeared when I stopped setting IMG_DATA_FORMAT_24_8
for depth.

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
src/gallium/drivers/radeonsi/si_state.c