a4xx: 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>
Fri, 19 Aug 2016 23:40:04 +0000 (19:40 -0400)
commit89f00f749fda4c1beca38f362c7f86bdc6e32785
tree5a0a2fed91fb0c39daf2350fa09c1adb4b9560de
parentcd8e30452f6d308a0c5e5668d6bba63f01895f1f
a4xx: 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/a4xx/a4xx.xml.h
src/gallium/drivers/freedreno/a4xx/fd4_emit.c