radeonsi: clamp border colors for upgraded depth textures
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 23 Sep 2017 08:29:51 +0000 (10:29 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 29 Sep 2017 09:45:05 +0000 (11:45 +0200)
commit6eb9483912539f0962fd62bc50039c6f768f1621
treeb0a60385eabb59f36f02cd0559b7b18d42f25b03
parent4c56e070296be6f53bfc1a3a4c864f12c035d3a4
radeonsi: clamp border colors for upgraded depth textures

The hardware does this automatically for unorm formats, but we need to
do it manually for unorm depth formats that have been upgraded to
Z32_FLOAT.

Fixes dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_unorm_depth
and others.

Fixes: d4d9ec55c589 ("radeonsi: implement TC-compatible HTILE")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeonsi/si_state.c