llvmpipe: shortcircuit some calls to set_scene_state
authorKeith Whitwell <keithw@vmware.com>
Tue, 30 Nov 2010 12:00:25 +0000 (12:00 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 30 Nov 2010 12:01:29 +0000 (12:01 +0000)
src/gallium/drivers/llvmpipe/lp_setup.c

index 07acdb282159f75e75101c0fb0982aa5273e6984..a173e71aba7a88237bcded433b8be5a035decc8d 100644 (file)
@@ -927,7 +927,7 @@ lp_setup_update_state( struct lp_setup_context *setup,
                    setup->setup.variant->key.size) == 0);
    }
 
-   if (update_scene) {
+   if (update_scene && setup->state != SETUP_ACTIVE) {
       if (!set_scene_state( setup, SETUP_ACTIVE, __FUNCTION__ ))
          return FALSE;
    }