diff options
author | Marek Olšák <[email protected]> | 2017-11-15 22:58:58 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:17:52 +0100 |
commit | 2116b974189b4d58d02bc1c9810aef820eed71b6 (patch) | |
tree | a450b3bcab8209013d13ae8ee3d5ce47b6c470fc /src/compiler | |
parent | bd57f45168188caabce3aebed287a9d32bc00537 (diff) |
mesa: don't assign numbers to vertex attrib enums manually
I plan to remove one of them.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/shader_enums.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index 9d229d4199e..17b236e3895 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -74,40 +74,40 @@ const char *_mesa_shader_stage_to_abbrev(unsigned stage); */ typedef enum { - VERT_ATTRIB_POS = 0, - VERT_ATTRIB_WEIGHT = 1, - VERT_ATTRIB_NORMAL = 2, - VERT_ATTRIB_COLOR0 = 3, - VERT_ATTRIB_COLOR1 = 4, - VERT_ATTRIB_FOG = 5, - VERT_ATTRIB_COLOR_INDEX = 6, - VERT_ATTRIB_EDGEFLAG = 7, - VERT_ATTRIB_TEX0 = 8, - VERT_ATTRIB_TEX1 = 9, - VERT_ATTRIB_TEX2 = 10, - VERT_ATTRIB_TEX3 = 11, - VERT_ATTRIB_TEX4 = 12, - VERT_ATTRIB_TEX5 = 13, - VERT_ATTRIB_TEX6 = 14, - VERT_ATTRIB_TEX7 = 15, - VERT_ATTRIB_POINT_SIZE = 16, - VERT_ATTRIB_GENERIC0 = 17, - VERT_ATTRIB_GENERIC1 = 18, - VERT_ATTRIB_GENERIC2 = 19, - VERT_ATTRIB_GENERIC3 = 20, - VERT_ATTRIB_GENERIC4 = 21, - VERT_ATTRIB_GENERIC5 = 22, - VERT_ATTRIB_GENERIC6 = 23, - VERT_ATTRIB_GENERIC7 = 24, - VERT_ATTRIB_GENERIC8 = 25, - VERT_ATTRIB_GENERIC9 = 26, - VERT_ATTRIB_GENERIC10 = 27, - VERT_ATTRIB_GENERIC11 = 28, - VERT_ATTRIB_GENERIC12 = 29, - VERT_ATTRIB_GENERIC13 = 30, - VERT_ATTRIB_GENERIC14 = 31, - VERT_ATTRIB_GENERIC15 = 32, - VERT_ATTRIB_MAX = 33 + VERT_ATTRIB_POS, + VERT_ATTRIB_WEIGHT, + VERT_ATTRIB_NORMAL, + VERT_ATTRIB_COLOR0, + VERT_ATTRIB_COLOR1, + VERT_ATTRIB_FOG, + VERT_ATTRIB_COLOR_INDEX, + VERT_ATTRIB_EDGEFLAG, + VERT_ATTRIB_TEX0, + VERT_ATTRIB_TEX1, + VERT_ATTRIB_TEX2, + VERT_ATTRIB_TEX3, + VERT_ATTRIB_TEX4, + VERT_ATTRIB_TEX5, + VERT_ATTRIB_TEX6, + VERT_ATTRIB_TEX7, + VERT_ATTRIB_POINT_SIZE, + VERT_ATTRIB_GENERIC0, + VERT_ATTRIB_GENERIC1, + VERT_ATTRIB_GENERIC2, + VERT_ATTRIB_GENERIC3, + VERT_ATTRIB_GENERIC4, + VERT_ATTRIB_GENERIC5, + VERT_ATTRIB_GENERIC6, + VERT_ATTRIB_GENERIC7, + VERT_ATTRIB_GENERIC8, + VERT_ATTRIB_GENERIC9, + VERT_ATTRIB_GENERIC10, + VERT_ATTRIB_GENERIC11, + VERT_ATTRIB_GENERIC12, + VERT_ATTRIB_GENERIC13, + VERT_ATTRIB_GENERIC14, + VERT_ATTRIB_GENERIC15, + VERT_ATTRIB_MAX } gl_vert_attrib; const char *gl_vert_attrib_name(gl_vert_attrib attrib); |