i965: Remove dead brw->wrap flag.
authorEric Anholt <eric@anholt.net>
Fri, 24 Oct 2008 19:30:47 +0000 (12:30 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 27 Oct 2008 18:53:06 +0000 (11:53 -0700)
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_batch.c
src/mesa/drivers/dri/i965/brw_state_upload.c

index 1c6a0dede0bcbbda8b3884dd02c432b4cbfb3b9e..1b823ab8ca49dc6458ab1582572cec7b8ef54841 100644 (file)
@@ -433,7 +433,6 @@ struct brw_context
    GLuint primitive;
 
    GLboolean emit_state_always;
-   GLboolean wrap;
    GLboolean tmp_fallback;
    GLboolean no_batch_wrap;
 
index 94ef924868697e40725952a0325adec8d754ccdf..dc87859f3f50150284dea31e869c57e08c25b2e4 100644 (file)
@@ -97,8 +97,6 @@ void brw_clear_batch_cache_flush( struct brw_context *brw )
 {
    clear_batch_cache(brw);
 
-   brw->wrap = 0;
-   
 /*    brw_do_flush(brw, BRW_FLUSH_STATE_CACHE|BRW_FLUSH_READ_CACHE); */
    
    brw->state.dirty.mesa |= ~0;
index b6a52843a8196f9b0fa5f7272abbcc5d993a6fe8..eef06e81a7875165c56b96498376c9a7ec5e1246 100644 (file)
@@ -182,9 +182,6 @@ void brw_validate_state( struct brw_context *brw )
    state->mesa |= brw->intel.NewGLState;
    brw->intel.NewGLState = 0;
 
-   if (brw->wrap)
-      state->brw |= BRW_NEW_CONTEXT;
-
    if (brw->emit_state_always) {
       state->mesa |= ~0;
       state->brw |= ~0;