freedreno/a6xx: Add ARB_depth_clamp and separate clamp support.
authorEric Anholt <eric@anholt.net>
Tue, 1 Sep 2020 19:09:40 +0000 (12:09 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 23:03:46 +0000 (23:03 +0000)
commit0369dd907778d8636e2b074717846bb658d76d90
treee74a9ce85de3ff81a18e845012567777f985680d
parent5c0d34cee45f77ebfbe374fc565e53497a290177
freedreno/a6xx: Add ARB_depth_clamp and separate clamp support.

Passes piglit depth_clamp, depth-clamp-range,
amd_depth_clamp_separate_range.  This is part of enabling GL 3.2 (the
other is bumping PIPE_CAP_GLSL_FEATURE_LEVEL, which I'm hoping to do once
we have the KHR-GL* testing in place).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6544>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c
src/gallium/drivers/freedreno/a6xx/fd6_zsa.c
src/gallium/drivers/freedreno/a6xx/fd6_zsa.h
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/freedreno/freedreno_state.h