Mesa (master): i965: Fix clashing enums for BRW_NEW_INDICES/ VERTICES versus BATCH/DEPTH_BUFFER.

Eric Anholt anholt at kemper.freedesktop.org
Sat Nov 29 01:26:42 UTC 2008


Module: Mesa
Branch: master
Commit: 8e5639577c03ccd75bb421e494638fbb5a3e7dcd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e5639577c03ccd75bb421e494638fbb5a3e7dcd

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Nov 28 12:16:51 2008 -0800

i965: Fix clashing enums for BRW_NEW_INDICES/VERTICES versus BATCH/DEPTH_BUFFER.

Fixes upload of large amounts of state for every new primitive emit.

---

 src/mesa/drivers/dri/i965/brw_context.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 67bb2a9..3199927 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -133,15 +133,15 @@ struct brw_context;
 #define BRW_NEW_PSP                     0x800
 #define BRW_NEW_METAOPS                 0x1000
 #define BRW_NEW_FENCE                   0x2000
-#define BRW_NEW_INDICES			0x8000
-#define BRW_NEW_VERTICES		0x10000
+#define BRW_NEW_INDICES			0x4000
+#define BRW_NEW_VERTICES		0x8000
 /**
  * Used for any batch entry with a relocated pointer that will be used
  * by any 3D rendering.
  */
-#define BRW_NEW_BATCH			0x8000
+#define BRW_NEW_BATCH			0x10000
 /** brw->depth_region updated */
-#define BRW_NEW_DEPTH_BUFFER		0x10000
+#define BRW_NEW_DEPTH_BUFFER		0x20000
 
 struct brw_state_flags {
    /** State update flags signalled by mesa internals */




More information about the mesa-commit mailing list