summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_defines.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-05-24 12:32:19 -0700
committerEric Anholt <[email protected]>2011-05-31 12:07:29 -0700
commitee643b23ff546492c67d4e2b525ced7329a3c020 (patch)
tree9ade6cd394e1fd152e2f36dbab52f06c7944a340 /src/mesa/drivers/dri/i965/brw_defines.h
parente764f10ea557c9d819ad25bf1e700b1b3bd83277 (diff)
i965: Switch brw_state_dump to using bitshifting for surface state.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_defines.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index d8f4beff1dd..6d41b1e69d3 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -446,6 +446,10 @@
#define BRW_SURFACE_TILED (1 << 1)
#define BRW_SURFACE_TILED_Y (1 << 0)
+/* Surface state DW4 */
+#define BRW_SURFACE_MIN_LOD_SHIFT 28
+#define BRW_SURFACE_MIN_LOD_MASK INTEL_MASK(31, 28)
+
/* Surface state DW5 */
#define BRW_SURFACE_X_OFFSET_SHIFT 25
#define BRW_SURFACE_X_OFFSET_MASK INTEL_MASK(31, 25)