Mesa (master): i965: Only flag the new-batch related state as dirty at new batch time.

Eric Anholt anholt at kemper.freedesktop.org
Sat Jun 18 23:50:22 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jun 14 15:48:24 2011 -0700

i965: Only flag the new-batch related state as dirty at new batch time.

This was debug code from the initial import of the driver.  No
statistically significant performance difference on cairo-gl or
nexuiz (n=6).

---

 src/mesa/drivers/dri/i965/brw_vtbl.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c
index 69650e1..236c4d2 100644
--- a/src/mesa/drivers/dri/i965/brw_vtbl.c
+++ b/src/mesa/drivers/dri/i965/brw_vtbl.c
@@ -122,11 +122,7 @@ static void brw_new_batch( struct intel_context *intel )
     * This is probably not as severe as on 915, since almost all of our state
     * is just in referenced buffers.
     */
-   brw->state.dirty.brw |= BRW_NEW_CONTEXT;
-
-   brw->state.dirty.mesa |= ~0;
-   brw->state.dirty.brw |= ~0;
-   brw->state.dirty.cache |= ~0;
+   brw->state.dirty.brw |= BRW_NEW_CONTEXT | BRW_NEW_BATCH;
 
    brw->vb.nr_current_buffers = 0;
 }




More information about the mesa-commit mailing list