summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/pipe/tgsi/core/tgsi_attribs.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/core/tgsi_attribs.h b/src/mesa/pipe/tgsi/core/tgsi_attribs.h
new file mode 100644
index 0000000000..b8f6ba7da8
--- /dev/null
+++ b/src/mesa/pipe/tgsi/core/tgsi_attribs.h
@@ -0,0 +1,47 @@
+#ifndef TGSI_ATTRIBS_H
+#define TGSI_ATTRIBS_H
+
+
+/**
+ * The specific values here are not important (could remove them).
+ */
+enum {
+ TGSI_ATTRIB_POS = 0,
+ TGSI_ATTRIB_WEIGHT = 1,
+ TGSI_ATTRIB_NORMAL = 2,
+ TGSI_ATTRIB_COLOR0 = 3,
+ TGSI_ATTRIB_COLOR1 = 4,
+ TGSI_ATTRIB_FOG = 5,
+ TGSI_ATTRIB_COLOR_INDEX = 6, /* XXX omit? */
+ TGSI_ATTRIB_EDGEFLAG = 7,
+ TGSI_ATTRIB_TEX0 = 8,
+ TGSI_ATTRIB_TEX1 = 9,
+ TGSI_ATTRIB_TEX2 = 10,
+ TGSI_ATTRIB_TEX3 = 11,
+ TGSI_ATTRIB_TEX4 = 12,
+ TGSI_ATTRIB_TEX5 = 13,
+ TGSI_ATTRIB_TEX6 = 14,
+ TGSI_ATTRIB_TEX7 = 15,
+ TGSI_ATTRIB_VAR0 = 16,
+ TGSI_ATTRIB_VAR1 = 17,
+ TGSI_ATTRIB_VAR2 = 18,
+ TGSI_ATTRIB_VAR3 = 19,
+ TGSI_ATTRIB_VAR4 = 20,
+ TGSI_ATTRIB_VAR5 = 21,
+ TGSI_ATTRIB_VAR6 = 22,
+ TGSI_ATTRIB_VAR7 = 23,
+ TGSI_ATTRIB_POINTSIZE = 24,
+ TGSI_ATTRIB_BFC0 = 25,
+ TGSI_ATTRIB_BFC1 = 26,
+ TGSI_ATTRIB_CLIP_POS = 27,
+ TGSI_ATTRIB_VERTEX_HEADER = 28,
+ TGSI_ATTRIB_MAX = 29
+};
+
+
+#define TGSI_MAX_TEXTURE 8
+#define TGSI_MAX_VARYING 8
+
+
+
+#endif /* TGSI_ATTRIBS_H */