i965: Add MOCS shift and mask for SURFACE_STATE entries.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 1 May 2013 00:54:23 +0000 (17:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 17:45:49 +0000 (10:45 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_defines.h

index fa257ac8daa9ec17175f9c1fd3ca1ed87e8438f6..c6b8dabfcd143e0b2d577ddfe234b2e16ed85584 100644 (file)
 #define GEN7_SURFACE_MIN_LOD_SHIFT              4
 #define GEN7_SURFACE_MIN_LOD_MASK               INTEL_MASK(7, 4)
 
+#define GEN7_SURFACE_MOCS_SHIFT                 16
+#define GEN7_SURFACE_MOCS_MASK                  INTEL_MASK(19, 16)
+
 /* Surface state DW6 */
 #define GEN7_SURFACE_MCS_ENABLE                 (1 << 0)
 #define GEN7_SURFACE_MCS_PITCH_SHIFT            3