Mesa (master): llvmpipe: Don't reset the bin when there's a zsbuf bound.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Jun 30 09:19:59 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Jun 24 20:57:21 2010 +0100

llvmpipe: Don't reset the bin when there's a zsbuf bound.

The previous rendering may have secondary effects on the zsbuf.

Fixes the missing tiles on gearbox.

---

 src/gallium/drivers/llvmpipe/lp_setup_tri.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 0557d35..4e2e17f 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -611,7 +611,8 @@ do_triangle_ccw(struct lp_setup_context *setup,
                /* triangle covers the whole tile- shade whole tile */
                LP_COUNT(nr_fully_covered_64);
 	       in = TRUE;
-	       if (setup->fs.current.variant->opaque) {
+	       if (setup->fs.current.variant->opaque &&
+	           !setup->fb.zsbuf) {
 	          lp_scene_bin_reset( scene, x, y );
 	          lp_scene_bin_command( scene, x, y,
 	                                lp_rast_set_state,




More information about the mesa-commit mailing list