Mesa (master): nv50,nvc0: disable depth bounds test on blit
Ilia Mirkin
imirkin at kemper.freedesktop.org
Sun Aug 23 05:40:15 UTC 2015
Module: Mesa
Branch: master
Commit: abbf05cfc2bea0787bcf710ef984d73ee8ba8f9e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=abbf05cfc2bea0787bcf710ef984d73ee8ba8f9e
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sat Aug 22 23:59:50 2015 -0400
nv50,nvc0: disable depth bounds test on blit
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: "11.0" <mesa-stable at lists.freedesktop.org>
---
src/gallium/drivers/nouveau/nv50/nv50_surface.c | 2 ++
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_surface.c b/src/gallium/drivers/nouveau/nv50/nv50_surface.c
index 77df5ff..f1b0bd6 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c
@@ -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);
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
index 136a68c..dbdf292 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
@@ -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);
More information about the mesa-commit
mailing list