[Mesa-dev] [PATCH mesa 1/2] mapi: sort functions list

Eric Engestrom eric at engestrom.ch
Sun Sep 25 02:17:50 UTC 2016


An interesting side-effect of sorting the list is that is makes lowercase come
after uppercase, which makes case-typo such as s/TexBufferRange/TexbufferRange/
evident right away. Such a typo was spotted in a recent patch to this function
list.
The next patch enforces this ordering, making it easier for humans to spot this
kind of mistakes.

Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
 src/mapi/glapi/gen/static_data.py | 168 +++++++++++++++++++-------------------
 1 file changed, 84 insertions(+), 84 deletions(-)

diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
index 2f403e9..bb11c1d 100644
--- a/src/mapi/glapi/gen/static_data.py
+++ b/src/mapi/glapi/gen/static_data.py
@@ -488,14 +488,14 @@
     "BlendColorEXT",
     "BlendEquation",
     "BlendEquationEXT",
-    "BlendEquationiARB",
     "BlendEquationSeparate",
     "BlendEquationSeparateiARB",
+    "BlendEquationiARB",
     "BlendFunc",
-    "BlendFunciARB",
     "BlendFuncSeparate",
     "BlendFuncSeparateEXT",
     "BlendFuncSeparateiARB",
+    "BlendFunciARB",
     "BlitFramebuffer",
     "BufferData",
     "BufferDataARB",
@@ -511,10 +511,10 @@
     "Clear",
     "ClearAccum",
     "ClearBufferData",
+    "ClearBufferSubData",
     "ClearBufferfi",
     "ClearBufferfv",
     "ClearBufferiv",
-    "ClearBufferSubData",
     "ClearBufferuiv",
     "ClearColor",
     "ClearColorIiEXT",
@@ -567,8 +567,8 @@
     "Color4usv",
     "Color4x",
     "ColorMask",
-    "ColorMaski",
     "ColorMaskIndexedEXT",
+    "ColorMaski",
     "ColorMaterial",
     "ColorP3ui",
     "ColorP3uiv",
@@ -649,17 +649,17 @@
     "DepthMask",
     "DepthRange",
     "DepthRangeArrayv",
-    "DepthRangef",
     "DepthRangeIndexed",
+    "DepthRangef",
     "DepthRangex",
     "DetachObjectARB",
     "DetachShader",
     "Disable",
     "DisableClientState",
-    "Disablei",
     "DisableIndexedEXT",
     "DisableVertexAttribArray",
     "DisableVertexAttribArrayARB",
+    "Disablei",
     "DispatchCompute",
     "DispatchComputeIndirect",
     "DrawArrays",
@@ -696,10 +696,10 @@
     "EdgeFlagv",
     "Enable",
     "EnableClientState",
-    "Enablei",
     "EnableIndexedEXT",
     "EnableVertexAttribArray",
     "EnableVertexAttribArrayARB",
+    "Enablei",
     "End",
     "EndConditionalRender",
     "EndConditionalRenderNV",
@@ -725,6 +725,8 @@
     "Finish",
     "Flush",
     "FlushMappedBufferRange",
+    "FogCoordPointer",
+    "FogCoordPointerEXT",
     "FogCoordd",
     "FogCoorddEXT",
     "FogCoorddv",
@@ -733,8 +735,6 @@
     "FogCoordfEXT",
     "FogCoordfv",
     "FogCoordfvEXT",
-    "FogCoordPointer",
-    "FogCoordPointerEXT",
     "Fogf",
     "Fogfv",
     "Fogi",
@@ -761,8 +761,6 @@
     "Frustumx",
     "GenBuffers",
     "GenBuffersARB",
-    "GenerateMipmap",
-    "GenerateMipmapEXT",
     "GenFramebuffers",
     "GenFramebuffersEXT",
     "GenLists",
@@ -777,21 +775,23 @@
     "GenTexturesEXT",
     "GenTransformFeedbacks",
     "GenVertexArrays",
+    "GenerateMipmap",
+    "GenerateMipmapEXT",
     "GetActiveAtomicCounterBufferiv",
     "GetActiveAttrib",
     "GetActiveAttribARB",
     "GetActiveUniform",
     "GetActiveUniformARB",
-    "GetActiveUniformBlockiv",
     "GetActiveUniformBlockName",
+    "GetActiveUniformBlockiv",
     "GetActiveUniformName",
     "GetActiveUniformsiv",
     "GetAttachedObjectsARB",
     "GetAttachedShaders",
     "GetAttribLocation",
     "GetAttribLocationARB",
-    "GetBooleani_v",
     "GetBooleanIndexedvEXT",
+    "GetBooleani_v",
     "GetBooleanv",
     "GetBufferParameteri64v",
     "GetBufferParameteriv",
@@ -833,8 +833,8 @@
     "GetInfoLogARB",
     "GetInteger64i_v",
     "GetInteger64v",
-    "GetIntegeri_v",
     "GetIntegerIndexedvEXT",
+    "GetIntegeri_v",
     "GetIntegerv",
     "GetLightfv",
     "GetLightiv",
@@ -849,24 +849,6 @@
     "GetMinmaxParameterfv",
     "GetMinmaxParameteriv",
     "GetMultisamplefv",
-    "GetnColorTableARB",
-    "GetnCompressedTexImageARB",
-    "GetnConvolutionFilterARB",
-    "GetnHistogramARB",
-    "GetnMapdvARB",
-    "GetnMapfvARB",
-    "GetnMapivARB",
-    "GetnMinmaxARB",
-    "GetnPixelMapfvARB",
-    "GetnPixelMapuivARB",
-    "GetnPixelMapusvARB",
-    "GetnPolygonStippleARB",
-    "GetnSeparableFilterARB",
-    "GetnTexImageARB",
-    "GetnUniformdvARB",
-    "GetnUniformfvARB",
-    "GetnUniformivARB",
-    "GetnUniformuivARB",
     "GetObjectLabel",
     "GetObjectParameterfvARB",
     "GetObjectParameterivARB",
@@ -882,36 +864,36 @@
     "GetProgramEnvParameterfvARB",
     "GetProgramInfoLog",
     "GetProgramInterfaceiv",
-    "GetProgramiv",
-    "GetProgramivARB",
     "GetProgramLocalParameterdvARB",
     "GetProgramLocalParameterfvARB",
     "GetProgramPipelineInfoLog",
     "GetProgramPipelineiv",
     "GetProgramResourceIndex",
-    "GetProgramResourceiv",
     "GetProgramResourceLocation",
     "GetProgramResourceName",
+    "GetProgramResourceiv",
     "GetProgramStringARB",
+    "GetProgramiv",
+    "GetProgramivARB",
     "GetQueryIndexediv",
-    "GetQueryiv",
-    "GetQueryivARB",
     "GetQueryObjectiv",
     "GetQueryObjectivARB",
     "GetQueryObjectuiv",
     "GetQueryObjectuivARB",
+    "GetQueryiv",
+    "GetQueryivARB",
     "GetRenderbufferParameteriv",
     "GetRenderbufferParameterivEXT",
-    "GetSamplerParameterfv",
     "GetSamplerParameterIiv",
     "GetSamplerParameterIuiv",
+    "GetSamplerParameterfv",
     "GetSamplerParameteriv",
     "GetSeparableFilter",
     "GetShaderInfoLog",
-    "GetShaderiv",
     "GetShaderPrecisionFormat",
     "GetShaderSource",
     "GetShaderSourceARB",
+    "GetShaderiv",
     "GetString",
     "GetStringi",
     "GetSynciv",
@@ -924,47 +906,65 @@
     "GetTexImage",
     "GetTexLevelParameterfv",
     "GetTexLevelParameteriv",
-    "GetTexParameterfv",
     "GetTexParameterIiv",
     "GetTexParameterIivEXT",
     "GetTexParameterIuiv",
     "GetTexParameterIuivEXT",
+    "GetTexParameterfv",
     "GetTexParameteriv",
     "GetTexParameterxv",
     "GetTransformFeedbackVarying",
     "GetUniformBlockIndex",
+    "GetUniformIndices",
+    "GetUniformLocation",
+    "GetUniformLocationARB",
     "GetUniformfv",
     "GetUniformfvARB",
-    "GetUniformIndices",
     "GetUniformiv",
     "GetUniformivARB",
-    "GetUniformLocation",
-    "GetUniformLocationARB",
     "GetUniformuiv",
     "GetUniformuivEXT",
-    "GetVertexAttribdv",
-    "GetVertexAttribdvARB",
-    "GetVertexAttribfv",
-    "GetVertexAttribfvARB",
     "GetVertexAttribIiv",
     "GetVertexAttribIivEXT",
     "GetVertexAttribIuiv",
     "GetVertexAttribIuivEXT",
-    "GetVertexAttribiv",
-    "GetVertexAttribivARB",
     "GetVertexAttribPointerv",
     "GetVertexAttribPointervARB",
+    "GetVertexAttribdv",
+    "GetVertexAttribdvARB",
+    "GetVertexAttribfv",
+    "GetVertexAttribfvARB",
+    "GetVertexAttribiv",
+    "GetVertexAttribivARB",
+    "GetnColorTableARB",
+    "GetnCompressedTexImageARB",
+    "GetnConvolutionFilterARB",
+    "GetnHistogramARB",
+    "GetnMapdvARB",
+    "GetnMapfvARB",
+    "GetnMapivARB",
+    "GetnMinmaxARB",
+    "GetnPixelMapfvARB",
+    "GetnPixelMapuivARB",
+    "GetnPixelMapusvARB",
+    "GetnPolygonStippleARB",
+    "GetnSeparableFilterARB",
+    "GetnTexImageARB",
+    "GetnUniformdvARB",
+    "GetnUniformfvARB",
+    "GetnUniformivARB",
+    "GetnUniformuivARB",
     "Hint",
     "Histogram",
+    "IndexMask",
+    "IndexPointer",
+    "IndexPointerEXT",
     "Indexd",
     "Indexdv",
     "Indexf",
     "Indexfv",
     "Indexi",
     "Indexiv",
-    "IndexMask",
-    "IndexPointer",
-    "IndexPointerEXT",
     "Indexs",
     "Indexsv",
     "Indexub",
@@ -980,8 +980,8 @@
     "IsBuffer",
     "IsBufferARB",
     "IsEnabled",
-    "IsEnabledi",
     "IsEnabledIndexedEXT",
+    "IsEnabledi",
     "IsFramebuffer",
     "IsFramebufferEXT",
     "IsList",
@@ -999,16 +999,16 @@
     "IsTextureEXT",
     "IsTransformFeedback",
     "IsVertexArray",
-    "Lightf",
-    "Lightfv",
-    "Lighti",
-    "Lightiv",
     "LightModelf",
     "LightModelfv",
     "LightModeli",
     "LightModeliv",
     "LightModelx",
     "LightModelxv",
+    "Lightf",
+    "Lightfv",
+    "Lighti",
+    "Lightiv",
     "Lightx",
     "Lightxv",
     "LineStipple",
@@ -1048,9 +1048,16 @@
     "MatrixMode",
     "MemoryBarrier",
     "MemoryBarrierByRegion",
-    "Minmax",
     "MinSampleShading",
     "MinSampleShadingARB",
+    "Minmax",
+    "MultMatrixd",
+    "MultMatrixf",
+    "MultMatrixx",
+    "MultTransposeMatrixd",
+    "MultTransposeMatrixdARB",
+    "MultTransposeMatrixf",
+    "MultTransposeMatrixfARB",
     "MultiDrawArrays",
     "MultiDrawArraysEXT",
     "MultiDrawArraysIndirect",
@@ -1131,13 +1138,6 @@
     "MultiTexCoordP3uiv",
     "MultiTexCoordP4ui",
     "MultiTexCoordP4uiv",
-    "MultMatrixd",
-    "MultMatrixf",
-    "MultMatrixx",
-    "MultTransposeMatrixd",
-    "MultTransposeMatrixdARB",
-    "MultTransposeMatrixf",
-    "MultTransposeMatrixfARB",
     "NewList",
     "Normal3b",
     "Normal3bv",
@@ -1273,8 +1273,8 @@
     "RasterPos4s",
     "RasterPos4sv",
     "ReadBuffer",
-    "ReadnPixelsARB",
     "ReadPixels",
+    "ReadnPixelsARB",
     "Rectd",
     "Rectdv",
     "Rectf",
@@ -1284,11 +1284,11 @@
     "Rects",
     "Rectsv",
     "ReleaseShaderCompiler",
+    "RenderMode",
     "RenderbufferStorage",
     "RenderbufferStorageEXT",
     "RenderbufferStorageMultisample",
     "RenderbufferStorageMultisampleEXT",
-    "RenderMode",
     "ResetHistogram",
     "ResetMinmax",
     "ResumeTransformFeedback",
@@ -1299,11 +1299,11 @@
     "SampleCoverageARB",
     "SampleCoveragex",
     "SampleMaski",
+    "SamplerParameterIiv",
+    "SamplerParameterIuiv",
     "SamplerParameterf",
     "SamplerParameterfv",
     "SamplerParameteri",
-    "SamplerParameterIiv",
-    "SamplerParameterIuiv",
     "SamplerParameteriv",
     "Scaled",
     "Scalef",
@@ -1423,13 +1423,13 @@
     "TexImage3D",
     "TexImage3DEXT",
     "TexImage3DMultisample",
-    "TexParameterf",
-    "TexParameterfv",
-    "TexParameteri",
     "TexParameterIiv",
     "TexParameterIivEXT",
     "TexParameterIuiv",
     "TexParameterIuivEXT",
+    "TexParameterf",
+    "TexParameterfv",
+    "TexParameteri",
     "TexParameteriv",
     "TexParameterx",
     "TexParameterxv",
@@ -1581,18 +1581,6 @@
     "VertexAttrib3sARB",
     "VertexAttrib3sv",
     "VertexAttrib3svARB",
-    "VertexAttrib4bv",
-    "VertexAttrib4bvARB",
-    "VertexAttrib4d",
-    "VertexAttrib4dARB",
-    "VertexAttrib4dv",
-    "VertexAttrib4dvARB",
-    "VertexAttrib4f",
-    "VertexAttrib4fARB",
-    "VertexAttrib4fv",
-    "VertexAttrib4fvARB",
-    "VertexAttrib4iv",
-    "VertexAttrib4ivARB",
     "VertexAttrib4Nbv",
     "VertexAttrib4NbvARB",
     "VertexAttrib4Niv",
@@ -1607,6 +1595,18 @@
     "VertexAttrib4NuivARB",
     "VertexAttrib4Nusv",
     "VertexAttrib4NusvARB",
+    "VertexAttrib4bv",
+    "VertexAttrib4bvARB",
+    "VertexAttrib4d",
+    "VertexAttrib4dARB",
+    "VertexAttrib4dv",
+    "VertexAttrib4dvARB",
+    "VertexAttrib4f",
+    "VertexAttrib4fARB",
+    "VertexAttrib4fv",
+    "VertexAttrib4fvARB",
+    "VertexAttrib4iv",
+    "VertexAttrib4ivARB",
     "VertexAttrib4s",
     "VertexAttrib4sARB",
     "VertexAttrib4sv",
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list