i965: Use BRW_NEW_CONTEXT for gen7_disable rather than BRW_NEW_BATCH.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 6 Jan 2013 01:20:01 +0000 (17:20 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Feb 2013 23:54:01 +0000 (15:54 -0800)
These don't need to be re-disabled on every batch if we're using
hardware contexts.  (If we're not, this is equivalent.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen7_disable.c

index b37aa6cd4600c59b5a7bf2c3a6e0266f86f671fc..aaf88a8bba88eed4b47c803cc8f148036827fd03 100644 (file)
@@ -127,7 +127,7 @@ disable_stages(struct brw_context *brw)
 const struct brw_tracked_state gen7_disable_stages = {
    .dirty = {
       .mesa  = 0,
-      .brw   = BRW_NEW_BATCH,
+      .brw   = BRW_NEW_CONTEXT,
       .cache = 0,
    },
    .emit = disable_stages,