summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2007-06-21 01:15:39 +0100
committerKeith Packard <keithp@neko.keithp.com>2007-06-21 01:18:09 +0100
commit9d104634cf03bea82d1467f01e577cb8d2e4b554 (patch)
tree08ecdb54217099abd8a6712fd657d18b423be2f2
parent3bbf313ba541526a893915f8b6c64b1eccf325e0 (diff)
Add 3DSTATE_CLEAR_PARAMETERS bits
-rw-r--r--src/i915_reg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/i915_reg.h b/src/i915_reg.h
index 6b40d70a..682a157d 100644
--- a/src/i915_reg.h
+++ b/src/i915_reg.h
@@ -109,6 +109,13 @@
/* 3DSTATE_CHROMA_KEY */
/* 3DSTATE_CLEAR_PARAMETERS, p150 */
+#define _3DSTATE_CLEAR_PARAMETERS (CMD_3D | (0x1d<<24) | (0x9c<<16) | 5)
+/* Dword 1 */
+#define CLEARPARAM_CLEAR_RECT (1 << 16)
+#define CLEARPARAM_ZONE_INIT (0 << 16)
+#define CLEARPARAM_WRITE_COLOR (1 << 2)
+#define CLEARPARAM_WRITE_DEPTH (1 << 1)
+#define CLEARPARAM_WRITE_STENCIL (1 << 0)
/* 3DSTATE_CONSTANT_BLEND_COLOR, p153 */
#define _3DSTATE_CONST_BLEND_COLOR_CMD (CMD_3D | (0x1d<<24) | (0x88<<16))