llvmpipe: set opaque = FALSE if stencil enabled
authorBrian Paul <brianp@vmware.com>
Thu, 18 Mar 2010 15:30:13 +0000 (09:30 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 18 Mar 2010 15:30:15 +0000 (09:30 -0600)
Fixes occasional bad tiles seen in some demos like progs/demos/reflect.c

src/gallium/drivers/llvmpipe/lp_state_fs.c

index 2cecf7e097415658815360b27c1aeff09e93be34..921c51fbe84db0cde1c73f361d5de0adafc08587 100644 (file)
@@ -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 &&