i965: Remove the brw_context::emit_state_always flag.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Sep 2013 19:03:41 +0000 (12:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 13 Oct 2013 07:10:44 +0000 (00:10 -0700)
This was always set to false, and is only used for debugging.
To enable it, simply change the if (0) block and recompile.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c

index 04045a584a572b591815e63dddd18d968b9f533c..3ddc1814e3bcf7917eabbae810dc89f547c7ed60 100644 (file)
@@ -475,8 +475,6 @@ brwCreateContext(gl_api api,
     */
    STATIC_ASSERT(BRW_NUM_STATE_BITS <= 8 * sizeof(brw->state.dirty.brw));
 
-   brw->emit_state_always = 0;
-
    brw->batch.need_workaround_flush = true;
 
    ctx->VertexProgram._MaintainTnlProgram = true;
index 28ae261a68ae955551903bc90d720616369536d3..0c6482d2a2764e7e8ac761e4997a6fdb28f31b1b 100644 (file)
@@ -1040,8 +1040,6 @@ struct brw_context
 
    uint32_t max_gtt_map_object_size;
 
-   bool emit_state_always;
-
    int gen;
    int gt;
 
index d7fe3193bb130e43c74fcd9b2b37c9e9f0badcb3..60c8b5e2b87fe2f98fe1e19179d452d67ecf6069 100644 (file)
@@ -471,7 +471,8 @@ void brw_upload_state(struct brw_context *brw)
    state->brw |= ctx->NewDriverState;
    ctx->NewDriverState = 0;
 
-   if (brw->emit_state_always) {
+   if (0) {
+      /* Always re-emit all state. */
       state->mesa |= ~0;
       state->brw |= ~0;
       state->cache |= ~0;