diff options
author | Nicolai Hähnle <[email protected]> | 2017-09-23 13:20:25 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-09-29 11:44:50 +0200 |
commit | 4c56e070296be6f53bfc1a3a4c864f12c035d3a4 (patch) | |
tree | cc064e1191baf150b6ad974734d5b7e53b4c10c0 /src/gallium/drivers/radeon/radeon_uvd.h | |
parent | 7dfa891f32316b17ae6f21dceb1b00845d34524a (diff) |
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: d4d9ec55c589 ("radeonsi: implement TC-compatible HTILE")
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.h')
0 files changed, 0 insertions, 0 deletions