llvmpipe: Don't reset the bin when there's a zsbuf bound.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 24 Jun 2010 19:57:21 +0000 (20:57 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 30 Jun 2010 09:19:50 +0000 (10:19 +0100)
The previous rendering may have secondary effects on the zsbuf.

Fixes the missing tiles on gearbox.

src/gallium/drivers/llvmpipe/lp_setup_tri.c

index 0557d35f8b152879f65f68365889a615d7f4d275..4e2e17f77b1eb03b4a4a43c444f07fc8badb46bb 100644 (file)
@@ -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,