gallium/tests/trivial: fix viewport depth transform
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Mar 2018 00:40:48 +0000 (19:40 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 Apr 2018 03:31:48 +0000 (23:31 -0400)
commit3f1cad48b812a33403d960093801261900c51708
treea685976c73e22d97e4b3ea403934a7b5f10903ea
parentfe8b6d7e1ff55ad0f2e7d798ce7c03a429f58762
gallium/tests/trivial: fix viewport depth transform

These were getting mapped off into outer space, which would cause nv50
and nvc0 to clip the primitives (as depth_clip was enabled).

These drivers are configured to clip everything outside the [0, 1]
range, even though the hardware supports other view settings.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/tests/trivial/quad-tex.c
src/gallium/tests/trivial/tri.c