[965] Flush icache on new batch, not just new context.
authorEric Anholt <eric@anholt.net>
Thu, 7 Feb 2008 20:09:16 +0000 (12:09 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 7 Feb 2008 21:14:59 +0000 (13:14 -0800)
This is required since our buffer manager may now move our
instruction-containing buffers at any batchbuffer emit.

src/mesa/drivers/dri/i965/brw_misc_state.c

index 8277da7dd30b9674e8fa1a2ec536f5620405d9c5..450d62c71f867d5a191f5a115839b7cd096add08 100644 (file)
@@ -394,7 +394,7 @@ static void upload_pipe_control(struct brw_context *brw)
 const struct brw_tracked_state brw_pipe_control = {
    .dirty = {
       .mesa = 0,
-      .brw = BRW_NEW_CONTEXT,
+      .brw = BRW_NEW_BATCH,
       .cache = 0
    },
    .update = upload_pipe_control