a3xx: make sure to actually clamp depth as requested
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 15 Aug 2016 03:58:18 +0000 (23:58 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 3 Sep 2016 23:58:42 +0000 (19:58 -0400)
commitdac72234c74b8cf4da516b915ed03efd8e2f9922
tree205f3d6036262e79e39d509a90d9230893f0a517
parentae7eb93e6caaf2a75fdaab071c0e5e9883376a82
a3xx: make sure to actually clamp depth as requested

We were previously ... not clamping. I guess this meant that everything
got clamped to 1/0, which was enough to pass the existing tests. Or
perhaps the clamping would only happen to the rasterized depth value and
not the frag shader's output depth value.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97231
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/freedreno/a3xx/a3xx.xml.h
src/gallium/drivers/freedreno/a3xx/fd3_emit.c