summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i965simple/brw_state_upload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/i965simple/brw_state_upload.c')
-rw-r--r--src/mesa/pipe/i965simple/brw_state_upload.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/pipe/i965simple/brw_state_upload.c b/src/mesa/pipe/i965simple/brw_state_upload.c
index 10f1d4812a..1fb480172d 100644
--- a/src/mesa/pipe/i965simple/brw_state_upload.c
+++ b/src/mesa/pipe/i965simple/brw_state_upload.c
@@ -97,8 +97,6 @@ const struct brw_tracked_state *atoms[] =
void brw_init_state( struct brw_context *brw )
{
- unsigned i;
-
brw_init_pools(brw);
brw_init_caches(brw);
@@ -156,7 +154,7 @@ void brw_validate_state( struct brw_context *brw )
state->brw == 0)
return;
- if (brw->state.dirty.brw & BRW_NEW_CONTEXT)
+ if (brw->state.dirty.brw & BRW_NEW_SCENE)
brw_clear_batch_cache_flush(brw);
if (BRW_DEBUG) {