mapi: add all _glapi_table entrypoints to static_data.py
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 19 Nov 2018 14:08:15 +0000 (14:08 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Jan 2019 18:13:25 +0000 (18:13 +0000)
Currently various parts of mesa use the glapi_table differently.

Some use _glapi_get_proc_offset() to get the offset, while others
directly reference the specific offset via _gloffset_Function.

Add all static entries, to ensure things don't break as we flip to the
upstream XML + new mapi generator.

Note: the offsets are also used for the alias remap table, thus we need
to ensure we honour the correct offsets range or it will break.

Currently this is done via MAX_OFFSETS constant, although a better
solution is in the works.

v2: add FramebufferTexture2DMultisampleEXT
v3: add MAX_OFFSETS guard

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> (v1)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mapi/glapi/gen/gl_XML.py
src/mapi/glapi/gen/static_data.py

index b4aa6be985e503ee2825d544803bc98a8f476b16..d2972992d1e9952d55ddf2ad30ed2ba97728a1de 100644 (file)
@@ -693,7 +693,7 @@ class gl_function( gl_item ):
             # Only try to set the offset when a non-alias entry-point
             # is being processed.
 
-            if name in static_data.offsets:
+            if name in static_data.offsets and static_data.offsets[name] <= static_data.MAX_OFFSETS:
                 self.offset = static_data.offsets[name]
             else:
                 self.offset = -1
index 0596d2cd3bbea5228fbb573bb15133951e511371..bc49324348f88128fe7f1451a61d88aa9bcd4e48 100644 (file)
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
+
+"""The maximum entries of actual static data required by indirect GLX."""
+
+
+MAX_OFFSETS = 407
+
 """Table of functions that have ABI-mandated offsets in the dispatch table.
 
+The first MAX_OFFSETS entries are required by indirect GLX. The rest are
+required to preserve the glapi <> drivers ABI. This is to be addressed shortly.
+
 This list will never change."""
 offsets = {
     "NewList": 0,
@@ -431,7 +440,1019 @@ offsets = {
     "MultiTexCoord4i": 404,
     "MultiTexCoord4iv": 405,
     "MultiTexCoord4s": 406,
-    "MultiTexCoord4sv": 407
+    "MultiTexCoord4sv": 407,
+    "CompressedTexImage1D": 408,
+    "CompressedTexImage2D": 409,
+    "CompressedTexImage3D": 410,
+    "CompressedTexSubImage1D": 411,
+    "CompressedTexSubImage2D": 412,
+    "CompressedTexSubImage3D": 413,
+    "GetCompressedTexImage": 414,
+    "LoadTransposeMatrixd": 415,
+    "LoadTransposeMatrixf": 416,
+    "MultTransposeMatrixd": 417,
+    "MultTransposeMatrixf": 418,
+    "SampleCoverage": 419,
+    "BlendFuncSeparate": 420,
+    "FogCoordPointer": 421,
+    "FogCoordd": 422,
+    "FogCoorddv": 423,
+    "MultiDrawArrays": 424,
+    "PointParameterf": 425,
+    "PointParameterfv": 426,
+    "PointParameteri": 427,
+    "PointParameteriv": 428,
+    "SecondaryColor3b": 429,
+    "SecondaryColor3bv": 430,
+    "SecondaryColor3d": 431,
+    "SecondaryColor3dv": 432,
+    "SecondaryColor3i": 433,
+    "SecondaryColor3iv": 434,
+    "SecondaryColor3s": 435,
+    "SecondaryColor3sv": 436,
+    "SecondaryColor3ub": 437,
+    "SecondaryColor3ubv": 438,
+    "SecondaryColor3ui": 439,
+    "SecondaryColor3uiv": 440,
+    "SecondaryColor3us": 441,
+    "SecondaryColor3usv": 442,
+    "SecondaryColorPointer": 443,
+    "WindowPos2d": 444,
+    "WindowPos2dv": 445,
+    "WindowPos2f": 446,
+    "WindowPos2fv": 447,
+    "WindowPos2i": 448,
+    "WindowPos2iv": 449,
+    "WindowPos2s": 450,
+    "WindowPos2sv": 451,
+    "WindowPos3d": 452,
+    "WindowPos3dv": 453,
+    "WindowPos3f": 454,
+    "WindowPos3fv": 455,
+    "WindowPos3i": 456,
+    "WindowPos3iv": 457,
+    "WindowPos3s": 458,
+    "WindowPos3sv": 459,
+    "BeginQuery": 460,
+    "BindBuffer": 461,
+    "BufferData": 462,
+    "BufferSubData": 463,
+    "DeleteBuffers": 464,
+    "DeleteQueries": 465,
+    "EndQuery": 466,
+    "GenBuffers": 467,
+    "GenQueries": 468,
+    "GetBufferParameteriv": 469,
+    "GetBufferPointerv": 470,
+    "GetBufferSubData": 471,
+    "GetQueryObjectiv": 472,
+    "GetQueryObjectuiv": 473,
+    "GetQueryiv": 474,
+    "IsBuffer": 475,
+    "IsQuery": 476,
+    "MapBuffer": 477,
+    "UnmapBuffer": 478,
+    "AttachShader": 479,
+    "BindAttribLocation": 480,
+    "BlendEquationSeparate": 481,
+    "CompileShader": 482,
+    "CreateProgram": 483,
+    "CreateShader": 484,
+    "DeleteProgram": 485,
+    "DeleteShader": 486,
+    "DetachShader": 487,
+    "DisableVertexAttribArray": 488,
+    "DrawBuffers": 489,
+    "EnableVertexAttribArray": 490,
+    "GetActiveAttrib": 491,
+    "GetActiveUniform": 492,
+    "GetAttachedShaders": 493,
+    "GetAttribLocation": 494,
+    "GetProgramInfoLog": 495,
+    "GetProgramiv": 496,
+    "GetShaderInfoLog": 497,
+    "GetShaderSource": 498,
+    "GetShaderiv": 499,
+    "GetUniformLocation": 500,
+    "GetUniformfv": 501,
+    "GetUniformiv": 502,
+    "GetVertexAttribPointerv": 503,
+    "GetVertexAttribdv": 504,
+    "GetVertexAttribfv": 505,
+    "GetVertexAttribiv": 506,
+    "IsProgram": 507,
+    "IsShader": 508,
+    "LinkProgram": 509,
+    "ShaderSource": 510,
+    "StencilFuncSeparate": 511,
+    "StencilMaskSeparate": 512,
+    "StencilOpSeparate": 513,
+    "Uniform1f": 514,
+    "Uniform1fv": 515,
+    "Uniform1i": 516,
+    "Uniform1iv": 517,
+    "Uniform2f": 518,
+    "Uniform2fv": 519,
+    "Uniform2i": 520,
+    "Uniform2iv": 521,
+    "Uniform3f": 522,
+    "Uniform3fv": 523,
+    "Uniform3i": 524,
+    "Uniform3iv": 525,
+    "Uniform4f": 526,
+    "Uniform4fv": 527,
+    "Uniform4i": 528,
+    "Uniform4iv": 529,
+    "UniformMatrix2fv": 530,
+    "UniformMatrix3fv": 531,
+    "UniformMatrix4fv": 532,
+    "UseProgram": 533,
+    "ValidateProgram": 534,
+    "VertexAttrib1d": 535,
+    "VertexAttrib1dv": 536,
+    "VertexAttrib1s": 537,
+    "VertexAttrib1sv": 538,
+    "VertexAttrib2d": 539,
+    "VertexAttrib2dv": 540,
+    "VertexAttrib2s": 541,
+    "VertexAttrib2sv": 542,
+    "VertexAttrib3d": 543,
+    "VertexAttrib3dv": 544,
+    "VertexAttrib3s": 545,
+    "VertexAttrib3sv": 546,
+    "VertexAttrib4Nbv": 547,
+    "VertexAttrib4Niv": 548,
+    "VertexAttrib4Nsv": 549,
+    "VertexAttrib4Nub": 550,
+    "VertexAttrib4Nubv": 551,
+    "VertexAttrib4Nuiv": 552,
+    "VertexAttrib4Nusv": 553,
+    "VertexAttrib4bv": 554,
+    "VertexAttrib4d": 555,
+    "VertexAttrib4dv": 556,
+    "VertexAttrib4iv": 557,
+    "VertexAttrib4s": 558,
+    "VertexAttrib4sv": 559,
+    "VertexAttrib4ubv": 560,
+    "VertexAttrib4uiv": 561,
+    "VertexAttrib4usv": 562,
+    "VertexAttribPointer": 563,
+    "UniformMatrix2x3fv": 564,
+    "UniformMatrix2x4fv": 565,
+    "UniformMatrix3x2fv": 566,
+    "UniformMatrix3x4fv": 567,
+    "UniformMatrix4x2fv": 568,
+    "UniformMatrix4x3fv": 569,
+    "BeginConditionalRender": 570,
+    "BeginTransformFeedback": 571,
+    "BindBufferBase": 572,
+    "BindBufferRange": 573,
+    "BindFragDataLocation": 574,
+    "ClampColor": 575,
+    "ClearBufferfi": 576,
+    "ClearBufferfv": 577,
+    "ClearBufferiv": 578,
+    "ClearBufferuiv": 579,
+    "ColorMaski": 580,
+    "Disablei": 581,
+    "Enablei": 582,
+    "EndConditionalRender": 583,
+    "EndTransformFeedback": 584,
+    "GetBooleani_v": 585,
+    "GetFragDataLocation": 586,
+    "GetIntegeri_v": 587,
+    "GetStringi": 588,
+    "GetTexParameterIiv": 589,
+    "GetTexParameterIuiv": 590,
+    "GetTransformFeedbackVarying": 591,
+    "GetUniformuiv": 592,
+    "GetVertexAttribIiv": 593,
+    "GetVertexAttribIuiv": 594,
+    "IsEnabledi": 595,
+    "TexParameterIiv": 596,
+    "TexParameterIuiv": 597,
+    "TransformFeedbackVaryings": 598,
+    "Uniform1ui": 599,
+    "Uniform1uiv": 600,
+    "Uniform2ui": 601,
+    "Uniform2uiv": 602,
+    "Uniform3ui": 603,
+    "Uniform3uiv": 604,
+    "Uniform4ui": 605,
+    "Uniform4uiv": 606,
+    "VertexAttribI1iv": 607,
+    "VertexAttribI1uiv": 608,
+    "VertexAttribI4bv": 609,
+    "VertexAttribI4sv": 610,
+    "VertexAttribI4ubv": 611,
+    "VertexAttribI4usv": 612,
+    "VertexAttribIPointer": 613,
+    "PrimitiveRestartIndex": 614,
+    "TexBuffer": 615,
+    "FramebufferTexture": 616,
+    "GetBufferParameteri64v": 617,
+    "GetInteger64i_v": 618,
+    "VertexAttribDivisor": 619,
+    "MinSampleShading": 620,
+    "MemoryBarrierByRegion": 621,
+    "BindProgramARB": 622,
+    "DeleteProgramsARB": 623,
+    "GenProgramsARB": 624,
+    "GetProgramEnvParameterdvARB": 625,
+    "GetProgramEnvParameterfvARB": 626,
+    "GetProgramLocalParameterdvARB": 627,
+    "GetProgramLocalParameterfvARB": 628,
+    "GetProgramStringARB": 629,
+    "GetProgramivARB": 630,
+    "IsProgramARB": 631,
+    "ProgramEnvParameter4dARB": 632,
+    "ProgramEnvParameter4dvARB": 633,
+    "ProgramEnvParameter4fARB": 634,
+    "ProgramEnvParameter4fvARB": 635,
+    "ProgramLocalParameter4dARB": 636,
+    "ProgramLocalParameter4dvARB": 637,
+    "ProgramLocalParameter4fARB": 638,
+    "ProgramLocalParameter4fvARB": 639,
+    "ProgramStringARB": 640,
+    "VertexAttrib1fARB": 641,
+    "VertexAttrib1fvARB": 642,
+    "VertexAttrib2fARB": 643,
+    "VertexAttrib2fvARB": 644,
+    "VertexAttrib3fARB": 645,
+    "VertexAttrib3fvARB": 646,
+    "VertexAttrib4fARB": 647,
+    "VertexAttrib4fvARB": 648,
+    "AttachObjectARB": 649,
+    "CreateProgramObjectARB": 650,
+    "CreateShaderObjectARB": 651,
+    "DeleteObjectARB": 652,
+    "DetachObjectARB": 653,
+    "GetAttachedObjectsARB": 654,
+    "GetHandleARB": 655,
+    "GetInfoLogARB": 656,
+    "GetObjectParameterfvARB": 657,
+    "GetObjectParameterivARB": 658,
+    "DrawArraysInstancedARB": 659,
+    "DrawElementsInstancedARB": 660,
+    "BindFramebuffer": 661,
+    "BindRenderbuffer": 662,
+    "BlitFramebuffer": 663,
+    "CheckFramebufferStatus": 664,
+    "DeleteFramebuffers": 665,
+    "DeleteRenderbuffers": 666,
+    "FramebufferRenderbuffer": 667,
+    "FramebufferTexture1D": 668,
+    "FramebufferTexture2D": 669,
+    "FramebufferTexture3D": 670,
+    "FramebufferTextureLayer": 671,
+    "GenFramebuffers": 672,
+    "GenRenderbuffers": 673,
+    "GenerateMipmap": 674,
+    "GetFramebufferAttachmentParameteriv": 675,
+    "GetRenderbufferParameteriv": 676,
+    "IsFramebuffer": 677,
+    "IsRenderbuffer": 678,
+    "RenderbufferStorage": 679,
+    "RenderbufferStorageMultisample": 680,
+    "FlushMappedBufferRange": 681,
+    "MapBufferRange": 682,
+    "BindVertexArray": 683,
+    "DeleteVertexArrays": 684,
+    "GenVertexArrays": 685,
+    "IsVertexArray": 686,
+    "GetActiveUniformBlockName": 687,
+    "GetActiveUniformBlockiv": 688,
+    "GetActiveUniformName": 689,
+    "GetActiveUniformsiv": 690,
+    "GetUniformBlockIndex": 691,
+    "GetUniformIndices": 692,
+    "UniformBlockBinding": 693,
+    "CopyBufferSubData": 694,
+    "ClientWaitSync": 695,
+    "DeleteSync": 696,
+    "FenceSync": 697,
+    "GetInteger64v": 698,
+    "GetSynciv": 699,
+    "IsSync": 700,
+    "WaitSync": 701,
+    "DrawElementsBaseVertex": 702,
+    "DrawElementsInstancedBaseVertex": 703,
+    "DrawRangeElementsBaseVertex": 704,
+    "MultiDrawElementsBaseVertex": 705,
+    "ProvokingVertex": 706,
+    "GetMultisamplefv": 707,
+    "SampleMaski": 708,
+    "TexImage2DMultisample": 709,
+    "TexImage3DMultisample": 710,
+    "BlendEquationSeparateiARB": 711,
+    "BlendEquationiARB": 712,
+    "BlendFuncSeparateiARB": 713,
+    "BlendFunciARB": 714,
+    "BindFragDataLocationIndexed": 715,
+    "GetFragDataIndex": 716,
+    "BindSampler": 717,
+    "DeleteSamplers": 718,
+    "GenSamplers": 719,
+    "GetSamplerParameterIiv": 720,
+    "GetSamplerParameterIuiv": 721,
+    "GetSamplerParameterfv": 722,
+    "GetSamplerParameteriv": 723,
+    "IsSampler": 724,
+    "SamplerParameterIiv": 725,
+    "SamplerParameterIuiv": 726,
+    "SamplerParameterf": 727,
+    "SamplerParameterfv": 728,
+    "SamplerParameteri": 729,
+    "SamplerParameteriv": 730,
+    "GetQueryObjecti64v": 731,
+    "GetQueryObjectui64v": 732,
+    "QueryCounter": 733,
+    "ColorP3ui": 734,
+    "ColorP3uiv": 735,
+    "ColorP4ui": 736,
+    "ColorP4uiv": 737,
+    "MultiTexCoordP1ui": 738,
+    "MultiTexCoordP1uiv": 739,
+    "MultiTexCoordP2ui": 740,
+    "MultiTexCoordP2uiv": 741,
+    "MultiTexCoordP3ui": 742,
+    "MultiTexCoordP3uiv": 743,
+    "MultiTexCoordP4ui": 744,
+    "MultiTexCoordP4uiv": 745,
+    "NormalP3ui": 746,
+    "NormalP3uiv": 747,
+    "SecondaryColorP3ui": 748,
+    "SecondaryColorP3uiv": 749,
+    "TexCoordP1ui": 750,
+    "TexCoordP1uiv": 751,
+    "TexCoordP2ui": 752,
+    "TexCoordP2uiv": 753,
+    "TexCoordP3ui": 754,
+    "TexCoordP3uiv": 755,
+    "TexCoordP4ui": 756,
+    "TexCoordP4uiv": 757,
+    "VertexAttribP1ui": 758,
+    "VertexAttribP1uiv": 759,
+    "VertexAttribP2ui": 760,
+    "VertexAttribP2uiv": 761,
+    "VertexAttribP3ui": 762,
+    "VertexAttribP3uiv": 763,
+    "VertexAttribP4ui": 764,
+    "VertexAttribP4uiv": 765,
+    "VertexP2ui": 766,
+    "VertexP2uiv": 767,
+    "VertexP3ui": 768,
+    "VertexP3uiv": 769,
+    "VertexP4ui": 770,
+    "VertexP4uiv": 771,
+    "DrawArraysIndirect": 772,
+    "DrawElementsIndirect": 773,
+    "GetUniformdv": 774,
+    "Uniform1d": 775,
+    "Uniform1dv": 776,
+    "Uniform2d": 777,
+    "Uniform2dv": 778,
+    "Uniform3d": 779,
+    "Uniform3dv": 780,
+    "Uniform4d": 781,
+    "Uniform4dv": 782,
+    "UniformMatrix2dv": 783,
+    "UniformMatrix2x3dv": 784,
+    "UniformMatrix2x4dv": 785,
+    "UniformMatrix3dv": 786,
+    "UniformMatrix3x2dv": 787,
+    "UniformMatrix3x4dv": 788,
+    "UniformMatrix4dv": 789,
+    "UniformMatrix4x2dv": 790,
+    "UniformMatrix4x3dv": 791,
+    "GetActiveSubroutineName": 792,
+    "GetActiveSubroutineUniformName": 793,
+    "GetActiveSubroutineUniformiv": 794,
+    "GetProgramStageiv": 795,
+    "GetSubroutineIndex": 796,
+    "GetSubroutineUniformLocation": 797,
+    "GetUniformSubroutineuiv": 798,
+    "UniformSubroutinesuiv": 799,
+    "PatchParameterfv": 800,
+    "PatchParameteri": 801,
+    "BindTransformFeedback": 802,
+    "DeleteTransformFeedbacks": 803,
+    "DrawTransformFeedback": 804,
+    "GenTransformFeedbacks": 805,
+    "IsTransformFeedback": 806,
+    "PauseTransformFeedback": 807,
+    "ResumeTransformFeedback": 808,
+    "BeginQueryIndexed": 809,
+    "DrawTransformFeedbackStream": 810,
+    "EndQueryIndexed": 811,
+    "GetQueryIndexediv": 812,
+    "ClearDepthf": 813,
+    "DepthRangef": 814,
+    "GetShaderPrecisionFormat": 815,
+    "ReleaseShaderCompiler": 816,
+    "ShaderBinary": 817,
+    "GetProgramBinary": 818,
+    "ProgramBinary": 819,
+    "ProgramParameteri": 820,
+    "GetVertexAttribLdv": 821,
+    "VertexAttribL1d": 822,
+    "VertexAttribL1dv": 823,
+    "VertexAttribL2d": 824,
+    "VertexAttribL2dv": 825,
+    "VertexAttribL3d": 826,
+    "VertexAttribL3dv": 827,
+    "VertexAttribL4d": 828,
+    "VertexAttribL4dv": 829,
+    "VertexAttribLPointer": 830,
+    "DepthRangeArrayv": 831,
+    "DepthRangeIndexed": 832,
+    "GetDoublei_v": 833,
+    "GetFloati_v": 834,
+    "ScissorArrayv": 835,
+    "ScissorIndexed": 836,
+    "ScissorIndexedv": 837,
+    "ViewportArrayv": 838,
+    "ViewportIndexedf": 839,
+    "ViewportIndexedfv": 840,
+    "GetGraphicsResetStatusARB": 841,
+    "GetnColorTableARB": 842,
+    "GetnCompressedTexImageARB": 843,
+    "GetnConvolutionFilterARB": 844,
+    "GetnHistogramARB": 845,
+    "GetnMapdvARB": 846,
+    "GetnMapfvARB": 847,
+    "GetnMapivARB": 848,
+    "GetnMinmaxARB": 849,
+    "GetnPixelMapfvARB": 850,
+    "GetnPixelMapuivARB": 851,
+    "GetnPixelMapusvARB": 852,
+    "GetnPolygonStippleARB": 853,
+    "GetnSeparableFilterARB": 854,
+    "GetnTexImageARB": 855,
+    "GetnUniformdvARB": 856,
+    "GetnUniformfvARB": 857,
+    "GetnUniformivARB": 858,
+    "GetnUniformuivARB": 859,
+    "ReadnPixelsARB": 860,
+    "DrawArraysInstancedBaseInstance": 861,
+    "DrawElementsInstancedBaseInstance": 862,
+    "DrawElementsInstancedBaseVertexBaseInstance": 863,
+    "DrawTransformFeedbackInstanced": 864,
+    "DrawTransformFeedbackStreamInstanced": 865,
+    "GetInternalformativ": 866,
+    "GetActiveAtomicCounterBufferiv": 867,
+    "BindImageTexture": 868,
+    "MemoryBarrier": 869,
+    "TexStorage1D": 870,
+    "TexStorage2D": 871,
+    "TexStorage3D": 872,
+    "TextureStorage1DEXT": 873,
+    "TextureStorage2DEXT": 874,
+    "TextureStorage3DEXT": 875,
+    "ClearBufferData": 876,
+    "ClearBufferSubData": 877,
+    "DispatchCompute": 878,
+    "DispatchComputeIndirect": 879,
+    "CopyImageSubData": 880,
+    "TextureView": 881,
+    "BindVertexBuffer": 882,
+    "VertexAttribBinding": 883,
+    "VertexAttribFormat": 884,
+    "VertexAttribIFormat": 885,
+    "VertexAttribLFormat": 886,
+    "VertexBindingDivisor": 887,
+    "FramebufferParameteri": 888,
+    "GetFramebufferParameteriv": 889,
+    "GetInternalformati64v": 890,
+    "MultiDrawArraysIndirect": 891,
+    "MultiDrawElementsIndirect": 892,
+    "GetProgramInterfaceiv": 893,
+    "GetProgramResourceIndex": 894,
+    "GetProgramResourceLocation": 895,
+    "GetProgramResourceLocationIndex": 896,
+    "GetProgramResourceName": 897,
+    "GetProgramResourceiv": 898,
+    "ShaderStorageBlockBinding": 899,
+    "TexBufferRange": 900,
+    "TexStorage2DMultisample": 901,
+    "TexStorage3DMultisample": 902,
+    "BufferStorage": 903,
+    "ClearTexImage": 904,
+    "ClearTexSubImage": 905,
+    "BindBuffersBase": 906,
+    "BindBuffersRange": 907,
+    "BindImageTextures": 908,
+    "BindSamplers": 909,
+    "BindTextures": 910,
+    "BindVertexBuffers": 911,
+    "GetImageHandleARB": 912,
+    "GetTextureHandleARB": 913,
+    "GetTextureSamplerHandleARB": 914,
+    "GetVertexAttribLui64vARB": 915,
+    "IsImageHandleResidentARB": 916,
+    "IsTextureHandleResidentARB": 917,
+    "MakeImageHandleNonResidentARB": 918,
+    "MakeImageHandleResidentARB": 919,
+    "MakeTextureHandleNonResidentARB": 920,
+    "MakeTextureHandleResidentARB": 921,
+    "ProgramUniformHandleui64ARB": 922,
+    "ProgramUniformHandleui64vARB": 923,
+    "UniformHandleui64ARB": 924,
+    "UniformHandleui64vARB": 925,
+    "VertexAttribL1ui64ARB": 926,
+    "VertexAttribL1ui64vARB": 927,
+    "DispatchComputeGroupSizeARB": 928,
+    "MultiDrawArraysIndirectCountARB": 929,
+    "MultiDrawElementsIndirectCountARB": 930,
+    "ClipControl": 931,
+    "BindTextureUnit": 932,
+    "BlitNamedFramebuffer": 933,
+    "CheckNamedFramebufferStatus": 934,
+    "ClearNamedBufferData": 935,
+    "ClearNamedBufferSubData": 936,
+    "ClearNamedFramebufferfi": 937,
+    "ClearNamedFramebufferfv": 938,
+    "ClearNamedFramebufferiv": 939,
+    "ClearNamedFramebufferuiv": 940,
+    "CompressedTextureSubImage1D": 941,
+    "CompressedTextureSubImage2D": 942,
+    "CompressedTextureSubImage3D": 943,
+    "CopyNamedBufferSubData": 944,
+    "CopyTextureSubImage1D": 945,
+    "CopyTextureSubImage2D": 946,
+    "CopyTextureSubImage3D": 947,
+    "CreateBuffers": 948,
+    "CreateFramebuffers": 949,
+    "CreateProgramPipelines": 950,
+    "CreateQueries": 951,
+    "CreateRenderbuffers": 952,
+    "CreateSamplers": 953,
+    "CreateTextures": 954,
+    "CreateTransformFeedbacks": 955,
+    "CreateVertexArrays": 956,
+    "DisableVertexArrayAttrib": 957,
+    "EnableVertexArrayAttrib": 958,
+    "FlushMappedNamedBufferRange": 959,
+    "GenerateTextureMipmap": 960,
+    "GetCompressedTextureImage": 961,
+    "GetNamedBufferParameteri64v": 962,
+    "GetNamedBufferParameteriv": 963,
+    "GetNamedBufferPointerv": 964,
+    "GetNamedBufferSubData": 965,
+    "GetNamedFramebufferAttachmentParameteriv": 966,
+    "GetNamedFramebufferParameteriv": 967,
+    "GetNamedRenderbufferParameteriv": 968,
+    "GetQueryBufferObjecti64v": 969,
+    "GetQueryBufferObjectiv": 970,
+    "GetQueryBufferObjectui64v": 971,
+    "GetQueryBufferObjectuiv": 972,
+    "GetTextureImage": 973,
+    "GetTextureLevelParameterfv": 974,
+    "GetTextureLevelParameteriv": 975,
+    "GetTextureParameterIiv": 976,
+    "GetTextureParameterIuiv": 977,
+    "GetTextureParameterfv": 978,
+    "GetTextureParameteriv": 979,
+    "GetTransformFeedbacki64_v": 980,
+    "GetTransformFeedbacki_v": 981,
+    "GetTransformFeedbackiv": 982,
+    "GetVertexArrayIndexed64iv": 983,
+    "GetVertexArrayIndexediv": 984,
+    "GetVertexArrayiv": 985,
+    "InvalidateNamedFramebufferData": 986,
+    "InvalidateNamedFramebufferSubData": 987,
+    "MapNamedBuffer": 988,
+    "MapNamedBufferRange": 989,
+    "NamedBufferData": 990,
+    "NamedBufferStorage": 991,
+    "NamedBufferSubData": 992,
+    "NamedFramebufferDrawBuffer": 993,
+    "NamedFramebufferDrawBuffers": 994,
+    "NamedFramebufferParameteri": 995,
+    "NamedFramebufferReadBuffer": 996,
+    "NamedFramebufferRenderbuffer": 997,
+    "NamedFramebufferTexture": 998,
+    "NamedFramebufferTextureLayer": 999,
+    "NamedRenderbufferStorage": 1000,
+    "NamedRenderbufferStorageMultisample": 1001,
+    "TextureBuffer": 1002,
+    "TextureBufferRange": 1003,
+    "TextureParameterIiv": 1004,
+    "TextureParameterIuiv": 1005,
+    "TextureParameterf": 1006,
+    "TextureParameterfv": 1007,
+    "TextureParameteri": 1008,
+    "TextureParameteriv": 1009,
+    "TextureStorage1D": 1010,
+    "TextureStorage2D": 1011,
+    "TextureStorage2DMultisample": 1012,
+    "TextureStorage3D": 1013,
+    "TextureStorage3DMultisample": 1014,
+    "TextureSubImage1D": 1015,
+    "TextureSubImage2D": 1016,
+    "TextureSubImage3D": 1017,
+    "TransformFeedbackBufferBase": 1018,
+    "TransformFeedbackBufferRange": 1019,
+    "UnmapNamedBuffer": 1020,
+    "VertexArrayAttribBinding": 1021,
+    "VertexArrayAttribFormat": 1022,
+    "VertexArrayAttribIFormat": 1023,
+    "VertexArrayAttribLFormat": 1024,
+    "VertexArrayBindingDivisor": 1025,
+    "VertexArrayElementBuffer": 1026,
+    "VertexArrayVertexBuffer": 1027,
+    "VertexArrayVertexBuffers": 1028,
+    "GetCompressedTextureSubImage": 1029,
+    "GetTextureSubImage": 1030,
+    "BufferPageCommitmentARB": 1031,
+    "NamedBufferPageCommitmentARB": 1032,
+    "GetUniformi64vARB": 1033,
+    "GetUniformui64vARB": 1034,
+    "GetnUniformi64vARB": 1035,
+    "GetnUniformui64vARB": 1036,
+    "ProgramUniform1i64ARB": 1037,
+    "ProgramUniform1i64vARB": 1038,
+    "ProgramUniform1ui64ARB": 1039,
+    "ProgramUniform1ui64vARB": 1040,
+    "ProgramUniform2i64ARB": 1041,
+    "ProgramUniform2i64vARB": 1042,
+    "ProgramUniform2ui64ARB": 1043,
+    "ProgramUniform2ui64vARB": 1044,
+    "ProgramUniform3i64ARB": 1045,
+    "ProgramUniform3i64vARB": 1046,
+    "ProgramUniform3ui64ARB": 1047,
+    "ProgramUniform3ui64vARB": 1048,
+    "ProgramUniform4i64ARB": 1049,
+    "ProgramUniform4i64vARB": 1050,
+    "ProgramUniform4ui64ARB": 1051,
+    "ProgramUniform4ui64vARB": 1052,
+    "Uniform1i64ARB": 1053,
+    "Uniform1i64vARB": 1054,
+    "Uniform1ui64ARB": 1055,
+    "Uniform1ui64vARB": 1056,
+    "Uniform2i64ARB": 1057,
+    "Uniform2i64vARB": 1058,
+    "Uniform2ui64ARB": 1059,
+    "Uniform2ui64vARB": 1060,
+    "Uniform3i64ARB": 1061,
+    "Uniform3i64vARB": 1062,
+    "Uniform3ui64ARB": 1063,
+    "Uniform3ui64vARB": 1064,
+    "Uniform4i64ARB": 1065,
+    "Uniform4i64vARB": 1066,
+    "Uniform4ui64ARB": 1067,
+    "Uniform4ui64vARB": 1068,
+    "EvaluateDepthValuesARB": 1069,
+    "FramebufferSampleLocationsfvARB": 1070,
+    "NamedFramebufferSampleLocationsfvARB": 1071,
+    "SpecializeShaderARB": 1072,
+    "InvalidateBufferData": 1073,
+    "InvalidateBufferSubData": 1074,
+    "InvalidateFramebuffer": 1075,
+    "InvalidateSubFramebuffer": 1076,
+    "InvalidateTexImage": 1077,
+    "InvalidateTexSubImage": 1078,
+    "DrawTexfOES": 1079,
+    "DrawTexfvOES": 1080,
+    "DrawTexiOES": 1081,
+    "DrawTexivOES": 1082,
+    "DrawTexsOES": 1083,
+    "DrawTexsvOES": 1084,
+    "DrawTexxOES": 1085,
+    "DrawTexxvOES": 1086,
+    "PointSizePointerOES": 1087,
+    "QueryMatrixxOES": 1088,
+    "SampleMaskSGIS": 1089,
+    "SamplePatternSGIS": 1090,
+    "ColorPointerEXT": 1091,
+    "EdgeFlagPointerEXT": 1092,
+    "IndexPointerEXT": 1093,
+    "NormalPointerEXT": 1094,
+    "TexCoordPointerEXT": 1095,
+    "VertexPointerEXT": 1096,
+    "DiscardFramebufferEXT": 1097,
+    "ActiveShaderProgram": 1098,
+    "BindProgramPipeline": 1099,
+    "CreateShaderProgramv": 1100,
+    "DeleteProgramPipelines": 1101,
+    "GenProgramPipelines": 1102,
+    "GetProgramPipelineInfoLog": 1103,
+    "GetProgramPipelineiv": 1104,
+    "IsProgramPipeline": 1105,
+    "LockArraysEXT": 1106,
+    "ProgramUniform1d": 1107,
+    "ProgramUniform1dv": 1108,
+    "ProgramUniform1f": 1109,
+    "ProgramUniform1fv": 1110,
+    "ProgramUniform1i": 1111,
+    "ProgramUniform1iv": 1112,
+    "ProgramUniform1ui": 1113,
+    "ProgramUniform1uiv": 1114,
+    "ProgramUniform2d": 1115,
+    "ProgramUniform2dv": 1116,
+    "ProgramUniform2f": 1117,
+    "ProgramUniform2fv": 1118,
+    "ProgramUniform2i": 1119,
+    "ProgramUniform2iv": 1120,
+    "ProgramUniform2ui": 1121,
+    "ProgramUniform2uiv": 1122,
+    "ProgramUniform3d": 1123,
+    "ProgramUniform3dv": 1124,
+    "ProgramUniform3f": 1125,
+    "ProgramUniform3fv": 1126,
+    "ProgramUniform3i": 1127,
+    "ProgramUniform3iv": 1128,
+    "ProgramUniform3ui": 1129,
+    "ProgramUniform3uiv": 1130,
+    "ProgramUniform4d": 1131,
+    "ProgramUniform4dv": 1132,
+    "ProgramUniform4f": 1133,
+    "ProgramUniform4fv": 1134,
+    "ProgramUniform4i": 1135,
+    "ProgramUniform4iv": 1136,
+    "ProgramUniform4ui": 1137,
+    "ProgramUniform4uiv": 1138,
+    "ProgramUniformMatrix2dv": 1139,
+    "ProgramUniformMatrix2fv": 1140,
+    "ProgramUniformMatrix2x3dv": 1141,
+    "ProgramUniformMatrix2x3fv": 1142,
+    "ProgramUniformMatrix2x4dv": 1143,
+    "ProgramUniformMatrix2x4fv": 1144,
+    "ProgramUniformMatrix3dv": 1145,
+    "ProgramUniformMatrix3fv": 1146,
+    "ProgramUniformMatrix3x2dv": 1147,
+    "ProgramUniformMatrix3x2fv": 1148,
+    "ProgramUniformMatrix3x4dv": 1149,
+    "ProgramUniformMatrix3x4fv": 1150,
+    "ProgramUniformMatrix4dv": 1151,
+    "ProgramUniformMatrix4fv": 1152,
+    "ProgramUniformMatrix4x2dv": 1153,
+    "ProgramUniformMatrix4x2fv": 1154,
+    "ProgramUniformMatrix4x3dv": 1155,
+    "ProgramUniformMatrix4x3fv": 1156,
+    "UnlockArraysEXT": 1157,
+    "UseProgramStages": 1158,
+    "ValidateProgramPipeline": 1159,
+    "FramebufferTexture2DMultisampleEXT": 1160,
+    "DebugMessageCallback": 1161,
+    "DebugMessageControl": 1162,
+    "DebugMessageInsert": 1163,
+    "GetDebugMessageLog": 1164,
+    "GetObjectLabel": 1165,
+    "GetObjectPtrLabel": 1166,
+    "ObjectLabel": 1167,
+    "ObjectPtrLabel": 1168,
+    "PopDebugGroup": 1169,
+    "PushDebugGroup": 1170,
+    "SecondaryColor3fEXT": 1171,
+    "SecondaryColor3fvEXT": 1172,
+    "MultiDrawElementsEXT": 1173,
+    "FogCoordfEXT": 1174,
+    "FogCoordfvEXT": 1175,
+    "ResizeBuffersMESA": 1176,
+    "WindowPos4dMESA": 1177,
+    "WindowPos4dvMESA": 1178,
+    "WindowPos4fMESA": 1179,
+    "WindowPos4fvMESA": 1180,
+    "WindowPos4iMESA": 1181,
+    "WindowPos4ivMESA": 1182,
+    "WindowPos4sMESA": 1183,
+    "WindowPos4svMESA": 1184,
+    "MultiModeDrawArraysIBM": 1185,
+    "MultiModeDrawElementsIBM": 1186,
+    "AreProgramsResidentNV": 1187,
+    "ExecuteProgramNV": 1188,
+    "GetProgramParameterdvNV": 1189,
+    "GetProgramParameterfvNV": 1190,
+    "GetProgramStringNV": 1191,
+    "GetProgramivNV": 1192,
+    "GetTrackMatrixivNV": 1193,
+    "GetVertexAttribdvNV": 1194,
+    "GetVertexAttribfvNV": 1195,
+    "GetVertexAttribivNV": 1196,
+    "LoadProgramNV": 1197,
+    "ProgramParameters4dvNV": 1198,
+    "ProgramParameters4fvNV": 1199,
+    "RequestResidentProgramsNV": 1200,
+    "TrackMatrixNV": 1201,
+    "VertexAttrib1dNV": 1202,
+    "VertexAttrib1dvNV": 1203,
+    "VertexAttrib1fNV": 1204,
+    "VertexAttrib1fvNV": 1205,
+    "VertexAttrib1sNV": 1206,
+    "VertexAttrib1svNV": 1207,
+    "VertexAttrib2dNV": 1208,
+    "VertexAttrib2dvNV": 1209,
+    "VertexAttrib2fNV": 1210,
+    "VertexAttrib2fvNV": 1211,
+    "VertexAttrib2sNV": 1212,
+    "VertexAttrib2svNV": 1213,
+    "VertexAttrib3dNV": 1214,
+    "VertexAttrib3dvNV": 1215,
+    "VertexAttrib3fNV": 1216,
+    "VertexAttrib3fvNV": 1217,
+    "VertexAttrib3sNV": 1218,
+    "VertexAttrib3svNV": 1219,
+    "VertexAttrib4dNV": 1220,
+    "VertexAttrib4dvNV": 1221,
+    "VertexAttrib4fNV": 1222,
+    "VertexAttrib4fvNV": 1223,
+    "VertexAttrib4sNV": 1224,
+    "VertexAttrib4svNV": 1225,
+    "VertexAttrib4ubNV": 1226,
+    "VertexAttrib4ubvNV": 1227,
+    "VertexAttribPointerNV": 1228,
+    "VertexAttribs1dvNV": 1229,
+    "VertexAttribs1fvNV": 1230,
+    "VertexAttribs1svNV": 1231,
+    "VertexAttribs2dvNV": 1232,
+    "VertexAttribs2fvNV": 1233,
+    "VertexAttribs2svNV": 1234,
+    "VertexAttribs3dvNV": 1235,
+    "VertexAttribs3fvNV": 1236,
+    "VertexAttribs3svNV": 1237,
+    "VertexAttribs4dvNV": 1238,
+    "VertexAttribs4fvNV": 1239,
+    "VertexAttribs4svNV": 1240,
+    "VertexAttribs4ubvNV": 1241,
+    "GetTexBumpParameterfvATI": 1242,
+    "GetTexBumpParameterivATI": 1243,
+    "TexBumpParameterfvATI": 1244,
+    "TexBumpParameterivATI": 1245,
+    "AlphaFragmentOp1ATI": 1246,
+    "AlphaFragmentOp2ATI": 1247,
+    "AlphaFragmentOp3ATI": 1248,
+    "BeginFragmentShaderATI": 1249,
+    "BindFragmentShaderATI": 1250,
+    "ColorFragmentOp1ATI": 1251,
+    "ColorFragmentOp2ATI": 1252,
+    "ColorFragmentOp3ATI": 1253,
+    "DeleteFragmentShaderATI": 1254,
+    "EndFragmentShaderATI": 1255,
+    "GenFragmentShadersATI": 1256,
+    "PassTexCoordATI": 1257,
+    "SampleMapATI": 1258,
+    "SetFragmentShaderConstantATI": 1259,
+    "DepthRangeArrayfvOES": 1260,
+    "DepthRangeIndexedfOES": 1261,
+    "ActiveStencilFaceEXT": 1262,
+    "GetProgramNamedParameterdvNV": 1263,
+    "GetProgramNamedParameterfvNV": 1264,
+    "ProgramNamedParameter4dNV": 1265,
+    "ProgramNamedParameter4dvNV": 1266,
+    "ProgramNamedParameter4fNV": 1267,
+    "ProgramNamedParameter4fvNV": 1268,
+    "PrimitiveRestartNV": 1269,
+    "GetTexGenxvOES": 1270,
+    "TexGenxOES": 1271,
+    "TexGenxvOES": 1272,
+    "DepthBoundsEXT": 1273,
+    "BindFramebufferEXT": 1274,
+    "BindRenderbufferEXT": 1275,
+    "StringMarkerGREMEDY": 1276,
+    "BufferParameteriAPPLE": 1277,
+    "FlushMappedBufferRangeAPPLE": 1278,
+    "VertexAttribI1iEXT": 1279,
+    "VertexAttribI1uiEXT": 1280,
+    "VertexAttribI2iEXT": 1281,
+    "VertexAttribI2ivEXT": 1282,
+    "VertexAttribI2uiEXT": 1283,
+    "VertexAttribI2uivEXT": 1284,
+    "VertexAttribI3iEXT": 1285,
+    "VertexAttribI3ivEXT": 1286,
+    "VertexAttribI3uiEXT": 1287,
+    "VertexAttribI3uivEXT": 1288,
+    "VertexAttribI4iEXT": 1289,
+    "VertexAttribI4ivEXT": 1290,
+    "VertexAttribI4uiEXT": 1291,
+    "VertexAttribI4uivEXT": 1292,
+    "ClearColorIiEXT": 1293,
+    "ClearColorIuiEXT": 1294,
+    "BindBufferOffsetEXT": 1295,
+    "BeginPerfMonitorAMD": 1296,
+    "DeletePerfMonitorsAMD": 1297,
+    "EndPerfMonitorAMD": 1298,
+    "GenPerfMonitorsAMD": 1299,
+    "GetPerfMonitorCounterDataAMD": 1300,
+    "GetPerfMonitorCounterInfoAMD": 1301,
+    "GetPerfMonitorCounterStringAMD": 1302,
+    "GetPerfMonitorCountersAMD": 1303,
+    "GetPerfMonitorGroupStringAMD": 1304,
+    "GetPerfMonitorGroupsAMD": 1305,
+    "SelectPerfMonitorCountersAMD": 1306,
+    "GetObjectParameterivAPPLE": 1307,
+    "ObjectPurgeableAPPLE": 1308,
+    "ObjectUnpurgeableAPPLE": 1309,
+    "ActiveProgramEXT": 1310,
+    "CreateShaderProgramEXT": 1311,
+    "UseShaderProgramEXT": 1312,
+    "TextureBarrierNV": 1313,
+    "VDPAUFiniNV": 1314,
+    "VDPAUGetSurfaceivNV": 1315,
+    "VDPAUInitNV": 1316,
+    "VDPAUIsSurfaceNV": 1317,
+    "VDPAUMapSurfacesNV": 1318,
+    "VDPAURegisterOutputSurfaceNV": 1319,
+    "VDPAURegisterVideoSurfaceNV": 1320,
+    "VDPAUSurfaceAccessNV": 1321,
+    "VDPAUUnmapSurfacesNV": 1322,
+    "VDPAUUnregisterSurfaceNV": 1323,
+    "BeginPerfQueryINTEL": 1324,
+    "CreatePerfQueryINTEL": 1325,
+    "DeletePerfQueryINTEL": 1326,
+    "EndPerfQueryINTEL": 1327,
+    "GetFirstPerfQueryIdINTEL": 1328,
+    "GetNextPerfQueryIdINTEL": 1329,
+    "GetPerfCounterInfoINTEL": 1330,
+    "GetPerfQueryDataINTEL": 1331,
+    "GetPerfQueryIdByNameINTEL": 1332,
+    "GetPerfQueryInfoINTEL": 1333,
+    "PolygonOffsetClampEXT": 1334,
+    "SubpixelPrecisionBiasNV": 1335,
+    "ConservativeRasterParameterfNV": 1336,
+    "ConservativeRasterParameteriNV": 1337,
+    "WindowRectanglesEXT": 1338,
+    "BufferStorageMemEXT": 1339,
+    "CreateMemoryObjectsEXT": 1340,
+    "DeleteMemoryObjectsEXT": 1341,
+    "DeleteSemaphoresEXT": 1342,
+    "GenSemaphoresEXT": 1343,
+    "GetMemoryObjectParameterivEXT": 1344,
+    "GetSemaphoreParameterui64vEXT": 1345,
+    "GetUnsignedBytei_vEXT": 1346,
+    "GetUnsignedBytevEXT": 1347,
+    "IsMemoryObjectEXT": 1348,
+    "IsSemaphoreEXT": 1349,
+    "MemoryObjectParameterivEXT": 1350,
+    "NamedBufferStorageMemEXT": 1351,
+    "SemaphoreParameterui64vEXT": 1352,
+    "SignalSemaphoreEXT": 1353,
+    "TexStorageMem1DEXT": 1354,
+    "TexStorageMem2DEXT": 1355,
+    "TexStorageMem2DMultisampleEXT": 1356,
+    "TexStorageMem3DEXT": 1357,
+    "TexStorageMem3DMultisampleEXT": 1358,
+    "TextureStorageMem1DEXT": 1359,
+    "TextureStorageMem2DEXT": 1360,
+    "TextureStorageMem2DMultisampleEXT": 1361,
+    "TextureStorageMem3DEXT": 1362,
+    "TextureStorageMem3DMultisampleEXT": 1363,
+    "WaitSemaphoreEXT": 1364,
+    "ImportMemoryFdEXT": 1365,
+    "ImportSemaphoreFdEXT": 1366,
+    "FramebufferFetchBarrierEXT": 1367,
+    "NamedRenderbufferStorageMultisampleAdvancedAMD": 1368,
+    "RenderbufferStorageMultisampleAdvancedAMD": 1369,
+    "StencilFuncSeparateATI": 1370,
+    "ProgramEnvParameters4fvEXT": 1371,
+    "ProgramLocalParameters4fvEXT": 1372,
+    "EGLImageTargetRenderbufferStorageOES": 1373,
+    "EGLImageTargetTexture2DOES": 1374,
+    "AlphaFuncx": 1375,
+    "ClearColorx": 1376,
+    "ClearDepthx": 1377,
+    "Color4x": 1378,
+    "DepthRangex": 1379,
+    "Fogx": 1380,
+    "Fogxv": 1381,
+    "Frustumf": 1382,
+    "Frustumx": 1383,
+    "LightModelx": 1384,
+    "LightModelxv": 1385,
+    "Lightx": 1386,
+    "Lightxv": 1387,
+    "LineWidthx": 1388,
+    "LoadMatrixx": 1389,
+    "Materialx": 1390,
+    "Materialxv": 1391,
+    "MultMatrixx": 1392,
+    "MultiTexCoord4x": 1393,
+    "Normal3x": 1394,
+    "Orthof": 1395,
+    "Orthox": 1396,
+    "PointSizex": 1397,
+    "PolygonOffsetx": 1398,
+    "Rotatex": 1399,
+    "SampleCoveragex": 1400,
+    "Scalex": 1401,
+    "TexEnvx": 1402,
+    "TexEnvxv": 1403,
+    "TexParameterx": 1404,
+    "Translatex": 1405,
+    "ClipPlanef": 1406,
+    "ClipPlanex": 1407,
+    "GetClipPlanef": 1408,
+    "GetClipPlanex": 1409,
+    "GetFixedv": 1410,
+    "GetLightxv": 1411,
+    "GetMaterialxv": 1412,
+    "GetTexEnvxv": 1413,
+    "GetTexParameterxv": 1414,
+    "PointParameterx": 1415,
+    "PointParameterxv": 1416,
+    "TexParameterxv": 1417,
+    "BlendBarrier": 1418,
+    "PrimitiveBoundingBox": 1419,
 }
 
 functions = [