mesa/src/amd
Nicolai Hähnle 4c56e07029 radeonsi: clamp depth comparison value only for fixed point formats
The hardware usually does this automatically. However, we upgrade
depth to Z32_FLOAT to enable TC-compatible HTILE, which means the
hardware no longer clamps the comparison value for us.

The only way to tell in the shader whether a clamp is required
seems to be to communicate an additional bit in the descriptor
table. While VI has some unused bits in the resource descriptor,
those bits have unfortunately all been used in gfx9. So we use
an unused bit in the sampler state instead.

Fixes dEQP-GLES3.functional.texture.shadow.2d.linear.equal_depth_component32f
and many other tests in dEQP-GLES3.functional.texture.shadow.*

Fixes: d4d9ec55c5 ("radeonsi: implement TC-compatible HTILE")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2017-09-29 11:44:50 +02:00
..
addrlib meson: build "radv" vulkan driver for radeon hardware 2017-09-27 09:12:34 -07:00
common radeonsi: clamp depth comparison value only for fixed point formats 2017-09-29 11:44:50 +02:00
vulkan radv: add an assertion in radv_BeginCommandBuffer() 2017-09-28 13:20:14 +01:00
Android.addrlib.mk Android: amd: use exported include dirs instead of explicit includes 2017-05-11 13:52:21 +01: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: import gfx9 support 2017-03-30 14:44:33 +02:00
Makefile.am ac: automake: rework sid_tables.h generation 2017-01-12 19:29:28 +00:00
Makefile.common.am ac/common: always build NIR translation 2017-07-31 17:59:10 +02:00
Makefile.sources ac: add ac_shader_abi.h in distcheck 2017-08-03 09:53:09 +02:00
meson.build meson: build "radv" vulkan driver for radeon hardware 2017-09-27 09:12:34 -07:00