summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-02-23 07:45:07 -0800
committerPaul Berry <[email protected]>2013-03-15 09:25:26 -0700
commitd453225efcfe9d8854e5dd58e4feb7cd753248b9 (patch)
treedcd2c16c339a360715dea0061f924a65c63f9dcf
parentd7c60a4a4fa4a0680f243376367c297a66a73343 (diff)
mtypes.h: Modify gl_geom_result to refer to new gl_varying_slot enum.
This paves the way for eliminating the gl_geom_result enum entirely. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/main/mtypes.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index c01d584e2ab..d760d213047 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -290,27 +290,26 @@ typedef enum
*/
typedef enum
{
- GEOM_RESULT_POS = 0,
- GEOM_RESULT_COL0 = 1,
- GEOM_RESULT_COL1 = 2,
- GEOM_RESULT_SCOL0 = 3,
- GEOM_RESULT_SCOL1 = 4,
- GEOM_RESULT_FOGC = 5,
- GEOM_RESULT_TEX0 = 6,
- GEOM_RESULT_TEX1 = 7,
- GEOM_RESULT_TEX2 = 8,
- GEOM_RESULT_TEX3 = 9,
- GEOM_RESULT_TEX4 = 10,
- GEOM_RESULT_TEX5 = 11,
- GEOM_RESULT_TEX6 = 12,
- GEOM_RESULT_TEX7 = 13,
- GEOM_RESULT_PSIZ = 14,
- GEOM_RESULT_CLPV = 15,
- GEOM_RESULT_PRID = 16,
- GEOM_RESULT_LAYR = 17,
- GEOM_RESULT_VAR0 = 18, /**< shader varying, should really be 16 */
- /* ### we need to -2 because var0 is 18 instead 16 like in the others */
- GEOM_RESULT_MAX = (GEOM_RESULT_VAR0 + MAX_VARYING - 2)
+ GEOM_RESULT_POS = VARYING_SLOT_POS,
+ GEOM_RESULT_COL0 = VARYING_SLOT_COL0,
+ GEOM_RESULT_COL1 = VARYING_SLOT_COL1,
+ GEOM_RESULT_SCOL0 = VARYING_SLOT_BFC0,
+ GEOM_RESULT_SCOL1 = VARYING_SLOT_BFC1,
+ GEOM_RESULT_FOGC = VARYING_SLOT_FOGC,
+ GEOM_RESULT_TEX0 = VARYING_SLOT_TEX0,
+ GEOM_RESULT_TEX1 = VARYING_SLOT_TEX1,
+ GEOM_RESULT_TEX2 = VARYING_SLOT_TEX2,
+ GEOM_RESULT_TEX3 = VARYING_SLOT_TEX3,
+ GEOM_RESULT_TEX4 = VARYING_SLOT_TEX4,
+ GEOM_RESULT_TEX5 = VARYING_SLOT_TEX5,
+ GEOM_RESULT_TEX6 = VARYING_SLOT_TEX6,
+ GEOM_RESULT_TEX7 = VARYING_SLOT_TEX7,
+ GEOM_RESULT_PSIZ = VARYING_SLOT_PSIZ,
+ GEOM_RESULT_CLPV = VARYING_SLOT_CLIP_VERTEX,
+ GEOM_RESULT_PRID = VARYING_SLOT_PRIMITIVE_ID,
+ GEOM_RESULT_LAYR = VARYING_SLOT_LAYER,
+ GEOM_RESULT_VAR0 = VARYING_SLOT_VAR0,
+ GEOM_RESULT_MAX = VARYING_SLOT_MAX
} gl_geom_result;