Corrected a problem with the sizes of the MAP[12]_* enums.
authorIan Romanick <idr@us.ibm.com>
Wed, 1 Dec 2004 23:53:43 +0000 (23:53 +0000)
committerIan Romanick <idr@us.ibm.com>
Wed, 1 Dec 2004 23:53:43 +0000 (23:53 +0000)
src/glx/x11/indirect_size.c
src/mesa/glapi/gl_API.xml

index c9367e53ac195bb1e57f29dbb1bae6e6f6761bbe..95216b5a75edfde7bf5bd069c24ce1b9d79c2e1c 100644 (file)
@@ -256,22 +256,34 @@ __glMap1d_size( GLenum e )
     switch( e ) {
         case GL_MAP1_INDEX:
         case GL_MAP1_TEXTURE_COORD_1:
-        case GL_MAP2_INDEX:
-        case GL_MAP2_TEXTURE_COORD_1:
             return 1;
         case GL_MAP1_TEXTURE_COORD_2:
-        case GL_MAP2_TEXTURE_COORD_2:
             return 2;
         case GL_MAP1_NORMAL:
         case GL_MAP1_TEXTURE_COORD_3:
         case GL_MAP1_VERTEX_3:
-        case GL_MAP2_NORMAL:
-        case GL_MAP2_TEXTURE_COORD_3:
-        case GL_MAP2_VERTEX_3:
             return 3;
         case GL_MAP1_COLOR_4:
         case GL_MAP1_TEXTURE_COORD_4:
         case GL_MAP1_VERTEX_4:
+            return 4;
+        default: return 0;
+    }
+}
+
+INTERNAL PURE FASTCALL GLint
+__glMap2d_size( GLenum e )
+{
+    switch( e ) {
+        case GL_MAP2_INDEX:
+        case GL_MAP2_TEXTURE_COORD_1:
+            return 1;
+        case GL_MAP2_TEXTURE_COORD_2:
+            return 2;
+        case GL_MAP2_NORMAL:
+        case GL_MAP2_TEXTURE_COORD_3:
+        case GL_MAP2_VERTEX_3:
+            return 3;
         case GL_MAP2_COLOR_4:
         case GL_MAP2_TEXTURE_COORD_4:
         case GL_MAP2_VERTEX_4:
@@ -350,8 +362,7 @@ ALIAS( TexEnviv, TexEnvfv )
 ALIAS( TexGenfv, TexGendv )
 ALIAS( TexGeniv, TexGendv )
 ALIAS( Map1f, Map1d )
-ALIAS( Map2d, Map1d )
-ALIAS( Map2f, Map1d )
+ALIAS( Map2f, Map2d )
 ALIAS( ColorTableParameteriv, ColorTableParameterfv )
 ALIAS( ConvolutionParameteriv, ConvolutionParameterfv )
 ALIAS( PointParameterivNV, PointParameterfvEXT )
index 4a9cdf4027f1b56818dcef69eba0cae3603eaf62..4844df68391a04102a7339a377322de54d0990f7 100644 (file)
     <enum name="MAP1_COLOR_4"                             value="0x0D90">
         <size name="Map1d" count="4"/>
         <size name="Map1f" count="4"/>
-        <size name="Map2d" count="4"/>
-        <size name="Map2f" count="4"/>
     </enum>
     <enum name="MAP1_INDEX"                               value="0x0D91">
         <size name="Map1d" count="1"/>
         <size name="Map1f" count="1"/>
-        <size name="Map2d" count="1"/>
-        <size name="Map2f" count="1"/>
     </enum>
     <enum name="MAP1_NORMAL"                              value="0x0D92">
         <size name="Map1d" count="3"/>
         <size name="Map1f" count="3"/>
-        <size name="Map2d" count="3"/>
-        <size name="Map2f" count="3"/>
     </enum>
     <enum name="MAP1_TEXTURE_COORD_1"                     value="0x0D93">
         <size name="Map1d" count="1"/>
         <size name="Map1f" count="1"/>
-        <size name="Map2d" count="1"/>
-        <size name="Map2f" count="1"/>
     </enum>
     <enum name="MAP1_TEXTURE_COORD_2"                     value="0x0D94">
         <size name="Map1d" count="2"/>
         <size name="Map1f" count="2"/>
-        <size name="Map2d" count="2"/>
-        <size name="Map2f" count="2"/>
     </enum>
     <enum name="MAP1_TEXTURE_COORD_3"                     value="0x0D95">
         <size name="Map1d" count="3"/>
         <size name="Map1f" count="3"/>
-        <size name="Map2d" count="3"/>
-        <size name="Map2f" count="3"/>
     </enum>
     <enum name="MAP1_TEXTURE_COORD_4"                     value="0x0D96">
         <size name="Map1d" count="4"/>
         <size name="Map1f" count="4"/>
-        <size name="Map2d" count="4"/>
-        <size name="Map2f" count="4"/>
     </enum>
     <enum name="MAP1_VERTEX_3"                            value="0x0D97">
         <size name="Map1d" count="3"/>
         <size name="Map1f" count="3"/>
-        <size name="Map2d" count="3"/>
-        <size name="Map2f" count="3"/>
     </enum>
     <enum name="MAP1_VERTEX_4"                            value="0x0D98">
         <size name="Map1d" count="4"/>
         <size name="Map1f" count="4"/>
-        <size name="Map2d" count="4"/>
-        <size name="Map2f" count="4"/>
     </enum>
     <enum name="MAP2_COLOR_4"                             value="0x0DB0">
-        <size name="Map1d" count="4"/>
-        <size name="Map1f" count="4"/>
         <size name="Map2d" count="4"/>
         <size name="Map2f" count="4"/>
     </enum>
     <enum name="MAP2_INDEX"                               value="0x0DB1">
-        <size name="Map1d" count="1"/>
-        <size name="Map1f" count="1"/>
         <size name="Map2d" count="1"/>
         <size name="Map2f" count="1"/>
     </enum>
     <enum name="MAP2_NORMAL"                              value="0x0DB2">
-        <size name="Map1d" count="3"/>
-        <size name="Map1f" count="3"/>
         <size name="Map2d" count="3"/>
         <size name="Map2f" count="3"/>
     </enum>
     <enum name="MAP2_TEXTURE_COORD_1"                     value="0x0DB3">
-        <size name="Map1d" count="1"/>
-        <size name="Map1f" count="1"/>
         <size name="Map2d" count="1"/>
         <size name="Map2f" count="1"/>
     </enum>
     <enum name="MAP2_TEXTURE_COORD_2"                     value="0x0DB4">
-        <size name="Map1d" count="2"/>
-        <size name="Map1f" count="2"/>
         <size name="Map2d" count="2"/>
         <size name="Map2f" count="2"/>
     </enum>
     <enum name="MAP2_TEXTURE_COORD_3"                     value="0x0DB5">
-        <size name="Map1d" count="3"/>
-        <size name="Map1f" count="3"/>
         <size name="Map2d" count="3"/>
         <size name="Map2f" count="3"/>
     </enum>
     <enum name="MAP2_TEXTURE_COORD_4"                     value="0x0DB6">
-        <size name="Map1d" count="4"/>
-        <size name="Map1f" count="4"/>
         <size name="Map2d" count="4"/>
         <size name="Map2f" count="4"/>
     </enum>
     <enum name="MAP2_VERTEX_3"                            value="0x0DB7">
-        <size name="Map1d" count="3"/>
-        <size name="Map1f" count="3"/>
         <size name="Map2d" count="3"/>
         <size name="Map2f" count="3"/>
     </enum>
     <enum name="MAP2_VERTEX_4"                            value="0x0DB8">
-        <size name="Map1d" count="4"/>
-        <size name="Map1f" count="4"/>
         <size name="Map2d" count="4"/>
         <size name="Map2f" count="4"/>
     </enum>