From: Kenneth Graunke Date: Wed, 1 May 2013 00:54:23 +0000 (-0700) Subject: i965: Add MOCS shift and mask for SURFACE_STATE entries. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b5b436615f66adf0f49391c5b0dfd1c0c6e0ad4;p=mesa.git i965: Add MOCS shift and mask for SURFACE_STATE entries. Signed-off-by: Kenneth Graunke Reviewed-by: Chad Versace --- diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h index fa257ac8daa..c6b8dabfcd1 100644 --- a/src/mesa/drivers/dri/i965/brw_defines.h +++ b/src/mesa/drivers/dri/i965/brw_defines.h @@ -551,6 +551,9 @@ #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