summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-02-23 07:34:06 -0800
committerPaul Berry <[email protected]>2013-03-15 09:25:15 -0700
commitd7c60a4a4fa4a0680f243376367c297a66a73343 (patch)
tree64f0a8df157e8be6fd671507dd0aa508140149fa /src/mesa/main
parent094bcf399c9630707c92ccd8f78e2ade29323a4d (diff)
Replace gl_geom_attrib enum with gl_varying_slot.
This patch makes the following search-and-replace changes: gl_geom_attrib -> gl_varying_slot GEOM_ATTRIB_* -> VARYING_SLOT_* GEOM_BIT_* -> VARYING_BIT_* Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c2
-rw-r--r--src/mesa/main/mtypes.h41
2 files changed, 0 insertions, 43 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index aa4bfa47963..a0d34dc9c69 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -349,7 +349,6 @@ dummy_enum_func(void)
gl_texture_index ti = TEXTURE_2D_ARRAY_INDEX;
gl_vert_attrib va = VERT_ATTRIB_POS;
gl_varying_slot vs = VARYING_SLOT_POS;
- gl_geom_attrib ga = GEOM_ATTRIB_POSITION;
gl_geom_result gr = GEOM_RESULT_POS;
(void) bi;
@@ -359,7 +358,6 @@ dummy_enum_func(void)
(void) ti;
(void) va;
(void) vs;
- (void) ga;
(void) gr;
}
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index b39c9c51437..c01d584e2ab 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -286,47 +286,6 @@ typedef enum
/*********************************************/
/**
- * Indexes for geometry program attributes.
- */
-typedef enum
-{
- 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;
-
-/**
- * Bitflags for geometry attributes.
- * These are used in bitfields in many places.
- */
-/*@{*/
-#define GEOM_BIT_COLOR0 (1 << GEOM_ATTRIB_COLOR0)
-#define GEOM_BIT_COLOR1 (1 << GEOM_ATTRIB_COLOR1)
-#define GEOM_BIT_SCOLOR0 (1 << GEOM_ATTRIB_SECONDARY_COLOR0)
-#define GEOM_BIT_SCOLOR1 (1 << GEOM_ATTRIB_SECONDARY_COLOR1)
-#define GEOM_BIT_TEX_COORD (1 << GEOM_ATTRIB_TEX_COORD)
-#define GEOM_BIT_FOG_COORD (1 << GEOM_ATTRIB_FOG_FRAG_COORD)
-#define GEOM_BIT_POSITION (1 << GEOM_ATTRIB_POSITION)
-#define GEOM_BIT_POINT_SIDE (1 << GEOM_ATTRIB_POINT_SIZE)
-#define GEOM_BIT_CLIP_VERTEX (1 << GEOM_ATTRIB_CLIP_VERTEX)
-#define GEOM_BIT_PRIM_ID (1 << GEOM_ATTRIB_PRIMITIVE_ID)
-#define GEOM_BIT_VAR0 (1 << GEOM_ATTRIB_VAR0)
-
-#define GEOM_BIT_VAR(g) (1 << (GEOM_BIT_VAR0 + (g)))
-/*@}*/
-
-
-/**
* Indexes for geometry program result attributes
*/
typedef enum