i965: Move Gen6 debugging emit_mi_flush into the Gen6 block.
authorEric Anholt <eric@anholt.net>
Mon, 24 May 2010 04:12:56 +0000 (21:12 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 May 2010 19:13:54 +0000 (12:13 -0700)
src/mesa/drivers/dri/i965/brw_misc_state.c

index afe04c548dd97b9ebf9660d7c8ba499738e45597..35908ee7b694f9db7910413912f6fe3bb199220a 100644 (file)
@@ -526,11 +526,11 @@ static void upload_invarient_state( struct brw_context *brw )
       BRW_BATCH_STRUCT(brw, &gdo);
    }
 
-   intel_batchbuffer_emit_mi_flush(intel->batch);
-
    if (intel->gen >= 6) {
       int i;
 
+      intel_batchbuffer_emit_mi_flush(intel->batch);
+
       BEGIN_BATCH(3);
       OUT_BATCH(CMD_3D_MULTISAMPLE << 16 | (3 - 2));
       OUT_BATCH(MS_PIXEL_LOCATION_CENTER |