[Mesa-dev] [PATCH 05/12] mtypes.h: Modify gl_geom_attrib to refer to new gl_varying_slot enum.

Paul Berry stereotype441 at gmail.com
Mon Mar 11 15:51:09 PDT 2013


This paves the way for eliminating the gl_geom_attrib enum entirely.
---
 src/mesa/main/mtypes.h | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 1e62e19..b39c9c5 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -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;
 
 /**
-- 
1.8.1.5



More information about the mesa-dev mailing list