Module: Mesa
Branch: master
Commit: a1e7aeecc25cedbd54e43afa72a1a2926ae51a32
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1e7aeecc25cedbd54e43afa72a1a2926ae51a32

Author: Brian Paul <[email protected]>
Date:   Thu Mar 18 09:30:13 2010 -0600

llvmpipe: set opaque = FALSE if stencil enabled

Fixes occasional bad tiles seen in some demos like progs/demos/reflect.c

---

 src/gallium/drivers/llvmpipe/lp_state_fs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c 
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 2cecf7e..921c51f 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -1169,6 +1169,7 @@ llvmpipe_update_fs(struct llvmpipe_context *lp)
    opaque = !key.blend.logicop_enable &&
             !key.blend.rt[0].blend_enable &&
             key.blend.rt[0].colormask == 0xf &&
+            !key.stencil[0].enabled &&
             !key.alpha.enabled &&
             !key.depth.enabled &&
             !key.scissor &&

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to