mtypes.h: Modify gl_geom_attrib to refer to new gl_varying_slot enum.
authorPaul Berry <stereotype441@gmail.com>
Sat, 23 Feb 2013 15:31:33 +0000 (07:31 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 15 Mar 2013 16:25:05 +0000 (09:25 -0700)
This paves the way for eliminating the gl_geom_attrib enum entirely.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Brian Paul <brianp@vmware.com>
src/mesa/main/mtypes.h

index 1e62e19d69d9cc6229c17830a224c863fbefecb6..b39c9c514375f9e545775f9f952b1b9568ffeda1 100644 (file)
@@ -290,19 +290,19 @@ typedef enum
  */
 typedef enum
 {
-   GEOM_ATTRIB_POSITION = 0,
-   GEOM_ATTRIB_COLOR0 = 1,
-   GEOM_ATTRIB_COLOR1 = 2,
-   GEOM_ATTRIB_SECONDARY_COLOR0 = 3,
-   GEOM_ATTRIB_SECONDARY_COLOR1 = 4,
-   GEOM_ATTRIB_FOG_FRAG_COORD = 5,
-   GEOM_ATTRIB_POINT_SIZE = 6,
-   GEOM_ATTRIB_CLIP_VERTEX = 7,
-   GEOM_ATTRIB_PRIMITIVE_ID = 8,
-   GEOM_ATTRIB_TEX_COORD = 9,
-
-   GEOM_ATTRIB_VAR0 = 16,
-   GEOM_ATTRIB_MAX = (GEOM_ATTRIB_VAR0 + MAX_VARYING)
+   GEOM_ATTRIB_POSITION = VARYING_SLOT_POS,
+   GEOM_ATTRIB_COLOR0 = VARYING_SLOT_COL0,
+   GEOM_ATTRIB_COLOR1 = VARYING_SLOT_COL1,
+   GEOM_ATTRIB_SECONDARY_COLOR0 = VARYING_SLOT_BFC0,
+   GEOM_ATTRIB_SECONDARY_COLOR1 = VARYING_SLOT_BFC1,
+   GEOM_ATTRIB_FOG_FRAG_COORD = VARYING_SLOT_FOGC,
+   GEOM_ATTRIB_POINT_SIZE = VARYING_SLOT_PNTC,
+   GEOM_ATTRIB_CLIP_VERTEX = VARYING_SLOT_CLIP_VERTEX,
+   GEOM_ATTRIB_PRIMITIVE_ID = VARYING_SLOT_PRIMITIVE_ID,
+   GEOM_ATTRIB_TEX_COORD = VARYING_SLOT_TEX0,
+
+   GEOM_ATTRIB_VAR0 = VARYING_SLOT_VAR0,
+   GEOM_ATTRIB_MAX = VARYING_SLOT_MAX
 } gl_geom_attrib;
 
 /**