nv50,nvc0: disable depth bounds test on blit
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 23 Aug 2015 03:59:50 +0000 (23:59 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 23 Aug 2015 05:39:29 +0000 (01:39 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_surface.c
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c

index 77df5ff1ac17568c37e96e4e9f33e97cabec7828..f1b0bd68a601c96ca064e06c47d5f69d1daacd80 100644 (file)
@@ -1003,6 +1003,8 @@ nv50_blitctx_prepare_state(struct nv50_blitctx *blit)
    /* zsa state */
    BEGIN_NV04(push, NV50_3D(DEPTH_TEST_ENABLE), 1);
    PUSH_DATA (push, 0);
+   BEGIN_NV04(push, NV50_3D(DEPTH_BOUNDS_EN), 1);
+   PUSH_DATA (push, 0);
    BEGIN_NV04(push, NV50_3D(STENCIL_ENABLE), 1);
    PUSH_DATA (push, 0);
    BEGIN_NV04(push, NV50_3D(ALPHA_TEST_ENABLE), 1);
index 136a68cfcef1932b82d3b6d61fbe15c4b87a27b6..dbdf292c86232a37faa0f088224449f831f14dc4 100644 (file)
@@ -887,6 +887,7 @@ nvc0_blitctx_prepare_state(struct nvc0_blitctx *blit)
 
    /* zsa state */
    IMMED_NVC0(push, NVC0_3D(DEPTH_TEST_ENABLE), 0);
+   IMMED_NVC0(push, NVC0_3D(DEPTH_BOUNDS_EN), 0);
    IMMED_NVC0(push, NVC0_3D(STENCIL_ENABLE), 0);
    IMMED_NVC0(push, NVC0_3D(ALPHA_TEST_ENABLE), 0);