summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_reg.h
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-03-10 01:43:39 +0000
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-03-10 01:43:39 +0000
commit9ebde216cc3e7a9dbe8090abe976db38f63d4717 (patch)
tree1041668c2ebec70c5712f481229c8abbafb8bddb /src/mesa/drivers/dri/nouveau/nouveau_reg.h
parent2560e65a9aa0479ebb564a2ac5161a1c47507ce0 (diff)
A little work here and there
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_reg.h')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_reg.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_reg.h b/src/mesa/drivers/dri/nouveau/nouveau_reg.h
index 4f35283040..5f4b0624ad 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_reg.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_reg.h
@@ -58,14 +58,20 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#define NV03_FIFO_CMD_JUMP_OFFSET_MASK 0x1ffffffc
#define NV03_FIFO_CMD_REWIND (NV03_FIFO_CMD_JUMP | (0 & NV03_FIFO_CMD_JUMP_OFFSET_MASK))
+/* Vertex attributes */
+#define NV30_UNKNOWN_0 0x00001718
+#define NV30_VERTEX_ATTRIBUTES 0x00001740
+#define NV20_VERTEX_ATTRIBUTE(i) (0x00001760+i*4)
+#define NV20_VERTEX_ATTRIBUTE_TYPE_MASK 0x0000000f
+#define NV20_VERTEX_ATTRIBUTE_TYPE_FLOAT 0x00000002
+#define NV20_VERTEX_ATTRIBUTE_SIZE_MASK 0x000000f0
+
/* Rendering commands */
+#define NV10_PRIMITIVE 0x00000dfc
#define NV20_PRIMITIVE 0x000017fc
#define NV30_PRIMITIVE 0x00001808
+#define NV10_BEGIN_VERTICES 0x00001800
#define NV20_BEGIN_VERTICES 0x00001818
-/* Vertex attributes */
-#define NV20_VERTEX_ATTRIBUTE(i) (0x00001760+i*4)
-#define NV30_VERTEX_ATTRIBUTES 0x00001740
-#define NV30_UNKNOWN_0 0x00001718