summaryrefslogtreecommitdiff
path: root/src/i810_reg.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-05-18 15:26:28 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-05-18 15:26:28 -0700
commitad7ec6a24b436d5492d38e4fa56845b229cf5fb8 (patch)
tree847ba3ed543013cdc15ba6819c88c2e111829d63 /src/i810_reg.h
parent291770efc691a02650e3c580ca40c2f9fce3896c (diff)
Checkpoint of BW textured video work, filling out vertex submission stuff and
some more other state.
Diffstat (limited to 'src/i810_reg.h')
-rw-r--r--src/i810_reg.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h
index 5ccd8cc5..f949d3c0 100644
--- a/src/i810_reg.h
+++ b/src/i810_reg.h
@@ -1632,8 +1632,26 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define STATE3D_DRAWING_RECTANGLE_BRW (CMD_3D | (0x01<<24) | (0x00<<16))
-#define PRIMITIVE3D_BRW (CMD_3D | (0x03<<27) | (0x08<<16))
-#define PRIM3D_BRW_POINTLIST 0x0
+#define STATE3D_BASE_ADDRESS (CMD_3D | (0x01<<24) | (0x01<<16))
+#define BASE_ADDRESS_MODIFY (1 << 0)
+
+#define STATE3D_PIPELINED_POINTERS (CMD_3D | (0x00<<24) | (0x00<<16))
+
+#define STATE3D_VERTEX_BUFFERS (CMD_3D | (0x03<<27) | (0x00<<24) | (0x08<<16))
+#define VB0_BUFFER_INDEX_SHIFT 27
+#define VB0_VERTEXDATA (0 << 26)
+#define VB0_INSTANCEDATA (1 << 26)
+#define VB0_BUFFER_PITCH_SHIFT 0
+
+#define STATE3D_VERTEX_ELEMENTS (CMD_3D | (0x00<<24) | (0x09<<16))
+#define VE0_VERTEX_BUFFER_INDEX_SHIFT 27
+#define VE0_VALID (1 << 26)
+#define VE0_FORMAT_SHIFT 16
+#define VE0_OFFSET_SHIFT 0
+
+#define PRIMITIVE3D_BRW (CMD_3D | (0x03<<27) | (0x03<<24) | (0x08<<16))
+/* Primitive types are in brw_defines.h */
+#define P3D0_TOPO_SHIFT 10
/* End regs for broadwater */