[Mesa-dev] [PATCH 3/5] i965: Use BRW_NEW_CONTEXT for gen7_disable rather than BRW_NEW_BATCH.

Kenneth Graunke kenneth at whitecape.org
Thu Feb 7 23:31:18 PST 2013


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 at whitecape.org>
---
 src/mesa/drivers/dri/i965/gen7_disable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/gen7_disable.c b/src/mesa/drivers/dri/i965/gen7_disable.c
index b37aa6c..aaf88a8 100644
--- a/src/mesa/drivers/dri/i965/gen7_disable.c
+++ b/src/mesa/drivers/dri/i965/gen7_disable.c
@@ -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,
-- 
1.8.1.2



More information about the mesa-dev mailing list