i965: Add masks for more SURFACE_STATE fields
authorChris Forbes <chrisf@ijw.co.nz>
Wed, 8 Jan 2014 20:56:16 +0000 (09:56 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 18 Jan 2014 22:22:00 +0000 (11:22 +1300)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h

index fe5a1475bd69b9ea992fd40624c2927f9d0d6371..bcc7d6ad97baa7f388dad7bbf63f77f439843d29 100644 (file)
 #define GEN7_SURFACE_MSFMT_MSS                  (0 << 6)
 #define GEN7_SURFACE_MSFMT_DEPTH_STENCIL        (1 << 6)
 #define GEN7_SURFACE_MIN_ARRAY_ELEMENT_SHIFT   18
+#define GEN7_SURFACE_MIN_ARRAY_ELEMENT_MASK     INTEL_MASK(28, 18)
 #define GEN7_SURFACE_RENDER_TARGET_VIEW_EXTENT_SHIFT   7
+#define GEN7_SURFACE_RENDER_TARGET_VIEW_EXTENT_MASK   INTEL_MASK(17, 7)
 
 /* Surface state DW5 */
 #define BRW_SURFACE_X_OFFSET_SHIFT             25