llvmpipe: fix regression in gears speed.
authorDave Airlie <airlied@gmail.com>
Thu, 6 Dec 2012 22:31:57 +0000 (08:31 +1000)
committerDave Airlie <airlied@gmail.com>
Thu, 6 Dec 2012 22:35:08 +0000 (08:35 +1000)
This fixes the gears regression since transform feedback.

Reported-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/llvmpipe/lp_setup.c

index 26fa46de80316ab149f8a2138c046d210185dde6..0f497afac53c2422d93178961deb8b60ebe5eb34 100644 (file)
@@ -627,8 +627,10 @@ void
 lp_setup_set_rasterizer_discard( struct lp_setup_context *setup,
                                  boolean rasterizer_discard )
 {
-   setup->rasterizer_discard = rasterizer_discard;
-   set_scene_state( setup, SETUP_FLUSHED, __FUNCTION__ );
+   if (setup->rasterizer_discard != rasterizer_discard) {
+      setup->rasterizer_discard = rasterizer_discard;
+      set_scene_state( setup, SETUP_FLUSHED, __FUNCTION__ );
+   }
 }
 
 void