mesa: Renumber the tnl attributes to match VERT_ATTRIB*.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Thu, 1 Dec 2011 17:31:06 +0000 (18:31 +0100)
committerMathias Fröhlich <Mathias.Froehlich@web.de>
Fri, 2 Dec 2011 06:04:49 +0000 (07:04 +0100)
Also renumber the tnl modules vertex attributes to match
the renumbered VERT_ATTRIB_* values.

This should fix

https://bugs.freedesktop.org/show_bug.cgi?id=43353

Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Tested-by: Vinson Lee <vlee@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/tnl/t_context.h

index a7e8c7c047d131cdbd9faee84d2b5b62f64ed4af..36b104354416468d1abf272ccd8323bcb0167a22 100644 (file)
@@ -93,22 +93,22 @@ enum {
        _TNL_ATTRIB_TEX6 = 14,
        _TNL_ATTRIB_TEX7 = 15,
 
-       _TNL_ATTRIB_GENERIC0 = 16, /* doesn't really exist! */
-       _TNL_ATTRIB_GENERIC1 = 17,
-       _TNL_ATTRIB_GENERIC2 = 18,
-       _TNL_ATTRIB_GENERIC3 = 19,
-       _TNL_ATTRIB_GENERIC4 = 20,
-       _TNL_ATTRIB_GENERIC5 = 21,
-       _TNL_ATTRIB_GENERIC6 = 22,
-       _TNL_ATTRIB_GENERIC7 = 23,
-       _TNL_ATTRIB_GENERIC8 = 24,
-       _TNL_ATTRIB_GENERIC9 = 25,
-       _TNL_ATTRIB_GENERIC10 = 26,
-       _TNL_ATTRIB_GENERIC11 = 27,
-       _TNL_ATTRIB_GENERIC12 = 28,
-       _TNL_ATTRIB_GENERIC13 = 29,
-       _TNL_ATTRIB_GENERIC14 = 30,
-       _TNL_ATTRIB_GENERIC15 = 31,
+       _TNL_ATTRIB_GENERIC0 = 17, /* doesn't really exist! */
+       _TNL_ATTRIB_GENERIC1 = 18,
+       _TNL_ATTRIB_GENERIC2 = 19,
+       _TNL_ATTRIB_GENERIC3 = 20,
+       _TNL_ATTRIB_GENERIC4 = 21,
+       _TNL_ATTRIB_GENERIC5 = 22,
+       _TNL_ATTRIB_GENERIC6 = 23,
+       _TNL_ATTRIB_GENERIC7 = 24,
+       _TNL_ATTRIB_GENERIC8 = 25,
+       _TNL_ATTRIB_GENERIC9 = 26,
+       _TNL_ATTRIB_GENERIC10 = 27,
+       _TNL_ATTRIB_GENERIC11 = 28,
+       _TNL_ATTRIB_GENERIC12 = 29,
+       _TNL_ATTRIB_GENERIC13 = 30,
+       _TNL_ATTRIB_GENERIC14 = 31,
+       _TNL_ATTRIB_GENERIC15 = 32,
 
        /* These alias with the generics, but they are not active
         * concurrently, so it's not a problem.  The TNL module
@@ -120,25 +120,25 @@ enum {
         * generic attribute in order to pick up per-vertex material
         * data.
         */
-       _TNL_ATTRIB_MAT_FRONT_AMBIENT = 16,
-       _TNL_ATTRIB_MAT_BACK_AMBIENT = 17,
-       _TNL_ATTRIB_MAT_FRONT_DIFFUSE = 18,
-       _TNL_ATTRIB_MAT_BACK_DIFFUSE = 19,
-       _TNL_ATTRIB_MAT_FRONT_SPECULAR = 20,
-       _TNL_ATTRIB_MAT_BACK_SPECULAR = 21,
-       _TNL_ATTRIB_MAT_FRONT_EMISSION = 22,
-       _TNL_ATTRIB_MAT_BACK_EMISSION = 23,
-       _TNL_ATTRIB_MAT_FRONT_SHININESS = 24,
-       _TNL_ATTRIB_MAT_BACK_SHININESS = 25,
-       _TNL_ATTRIB_MAT_FRONT_INDEXES = 26,
-       _TNL_ATTRIB_MAT_BACK_INDEXES = 27,
+       _TNL_ATTRIB_MAT_FRONT_AMBIENT = 17,
+       _TNL_ATTRIB_MAT_BACK_AMBIENT = 18,
+       _TNL_ATTRIB_MAT_FRONT_DIFFUSE = 19,
+       _TNL_ATTRIB_MAT_BACK_DIFFUSE = 20,
+       _TNL_ATTRIB_MAT_FRONT_SPECULAR = 21,
+       _TNL_ATTRIB_MAT_BACK_SPECULAR = 22,
+       _TNL_ATTRIB_MAT_FRONT_EMISSION = 23,
+       _TNL_ATTRIB_MAT_BACK_EMISSION = 24,
+       _TNL_ATTRIB_MAT_FRONT_SHININESS = 25,
+       _TNL_ATTRIB_MAT_BACK_SHININESS = 26,
+       _TNL_ATTRIB_MAT_FRONT_INDEXES = 27,
+       _TNL_ATTRIB_MAT_BACK_INDEXES = 28,
 
        /* This is really a VERT_RESULT, not an attrib.  Need to fix
         * tnl to understand the difference.
         */
        _TNL_ATTRIB_POINTSIZE = 16,
 
-       _TNL_ATTRIB_MAX = 32
+       _TNL_ATTRIB_MAX = 33
 } ;
 
 #define _TNL_ATTRIB_TEX(u)       (_TNL_ATTRIB_TEX0 + (u))