1 /*
2  * Copyright © 2012 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  * DEALINGS IN THE SOFTWARE.
22  */
23 
24 /**
25  * \name dispatch_sanity.cpp
26  *
27  * Verify that only set of functions that should be available in a particular
28  * API are available in that API.
29  *
30  * The list of expected functions originally came from the functions set by
31  * api_exec_es2.c.  This file no longer exists in Mesa (but api_exec_es1.c was
32  * still generated at the time this test was written).  It was the generated
33  * file that configured the dispatch table for ES2 contexts.  This test
34  * verifies that all of the functions set by the old api_exec_es2.c (with the
35  * recent addition of VAO functions) are set in the dispatch table and
36  * everything else is a NOP.
37  *
38  * When adding extensions that add new functions, this test will need to be
39  * modified to expect dispatch functions for the new extension functions.
40  */
41 
42 #include <gtest/gtest.h>
43 
44 #include "GL/gl.h"
45 #include "GL/glext.h"
46 #include "util/compiler.h"
47 #include "main/api_exec.h"
48 #include "main/context.h"
49 #include "main/remap.h"
50 #include "main/vtxfmt.h"
51 #include "glapi/glapi.h"
52 #include "drivers/common/driverfuncs.h"
53 
54 #include "swrast/swrast.h"
55 #include "vbo/vbo.h"
56 #include "tnl/tnl.h"
57 #include "swrast_setup/swrast_setup.h"
58 
59 #ifndef GLAPIENTRYP
60 #define GLAPIENTRYP GL_APIENTRYP
61 #endif
62 
63 #include "main/dispatch.h"
64 
65 struct function {
66    const char *name;
67    unsigned int Version;
68    int offset;
69 };
70 
71 extern const struct function common_desktop_functions_possible[];
72 extern const struct function gl_compatibility_functions_possible[];
73 extern const struct function gl_core_functions_possible[];
74 extern const struct function gles11_functions_possible[];
75 extern const struct function gles2_functions_possible[];
76 extern const struct function gles3_functions_possible[];
77 extern const struct function gles31_functions_possible[];
78 
79 class DispatchSanity_test : public ::testing::Test {
80 public:
81    virtual void SetUp();
82    void SetUpCtx(gl_api api, unsigned int version);
83 
84    struct gl_config visual;
85    struct dd_function_table driver_functions;
86    struct gl_context share_list;
87    struct gl_context ctx;
88    _glapi_proc *nop_table;
89 };
90 
91 void
SetUp()92 DispatchSanity_test::SetUp()
93 {
94    memset(&visual, 0, sizeof(visual));
95    memset(&driver_functions, 0, sizeof(driver_functions));
96    memset(&share_list, 0, sizeof(share_list));
97    memset(&ctx, 0, sizeof(ctx));
98 
99    _mesa_init_driver_functions(&driver_functions);
100 
101    const unsigned size = _glapi_get_dispatch_table_size();
102    nop_table = (_glapi_proc *) _mesa_new_nop_table(size);
103 }
104 
105 void
SetUpCtx(gl_api api,unsigned int version)106 DispatchSanity_test::SetUpCtx(gl_api api, unsigned int version)
107 {
108    _mesa_initialize_context(&ctx,
109                             api,
110                             &visual,
111                             NULL, // share_list
112                             &driver_functions);
113    _vbo_CreateContext(&ctx, false);
114 
115    _mesa_override_extensions(&ctx);
116    ctx.Version = version;
117 
118    _mesa_initialize_dispatch_tables(&ctx);
119    _mesa_initialize_vbo_vtxfmt(&ctx);
120 }
121 
122 static const char *
offset_to_proc_name_safe(unsigned offset)123 offset_to_proc_name_safe(unsigned offset)
124 {
125    const char *name = _glapi_get_proc_name(offset);
126    return name ? name : "???";
127 }
128 
129 /* Scan through the dispatch table and check that all the functions in
130  * _glapi_proc *table exist.
131  */
132 static void
validate_functions(struct gl_context * ctx,const struct function * function_table,const _glapi_proc * nop_table)133 validate_functions(struct gl_context *ctx, const struct function *function_table,
134                    const _glapi_proc *nop_table)
135 {
136    _glapi_proc *table = (_glapi_proc *) ctx->Exec;
137 
138    for (unsigned i = 0; function_table[i].name != NULL; i++) {
139       /* The context version is >= the GL version where the function was
140        * introduced. Therefore, the function cannot be set to the nop
141        * function.
142        */
143       const bool cant_be_nop = ctx->Version >= function_table[i].Version;
144 
145       const int offset = (function_table[i].offset != -1)
146          ? function_table[i].offset
147          : _glapi_get_proc_offset(function_table[i].name);
148 
149       ASSERT_NE(-1, offset)
150          << "Function: " << function_table[i].name;
151       ASSERT_EQ(offset,
152                 _glapi_get_proc_offset(function_table[i].name))
153          << "Function: " << function_table[i].name;
154       if (cant_be_nop) {
155          EXPECT_NE(nop_table[offset], table[offset])
156             << "Function: " << function_table[i].name
157             << " at offset " << offset;
158       }
159 
160       table[offset] = nop_table[offset];
161    }
162 }
163 
164 /* Scan through the table and ensure that there is nothing except
165  * nop functions (as set by validate_functions().
166  */
167 static void
validate_nops(struct gl_context * ctx,const _glapi_proc * nop_table)168 validate_nops(struct gl_context *ctx, const _glapi_proc *nop_table)
169 {
170    _glapi_proc *table = (_glapi_proc *) ctx->Exec;
171 
172    const unsigned size = _glapi_get_dispatch_table_size();
173    for (unsigned i = 0; i < size; i++) {
174       EXPECT_EQ(nop_table[i], table[i])
175          << "i = " << i << " (" << offset_to_proc_name_safe(i) << ")";
176    }
177 }
178 
TEST_F(DispatchSanity_test,GL31_CORE)179 TEST_F(DispatchSanity_test, GL31_CORE)
180 {
181    SetUpCtx(API_OPENGL_CORE, 31);
182    validate_functions(&ctx, common_desktop_functions_possible, nop_table);
183    validate_functions(&ctx, gl_core_functions_possible, nop_table);
184    validate_nops(&ctx, nop_table);
185 }
186 
TEST_F(DispatchSanity_test,GL30)187 TEST_F(DispatchSanity_test, GL30)
188 {
189    SetUpCtx(API_OPENGL_COMPAT, 30);
190    validate_functions(&ctx, common_desktop_functions_possible, nop_table);
191    validate_functions(&ctx, gl_compatibility_functions_possible, nop_table);
192    validate_nops(&ctx, nop_table);
193 }
194 
TEST_F(DispatchSanity_test,GLES11)195 TEST_F(DispatchSanity_test, GLES11)
196 {
197    SetUpCtx(API_OPENGLES, 11);
198    validate_functions(&ctx, gles11_functions_possible, nop_table);
199    validate_nops(&ctx, nop_table);
200 }
201 
TEST_F(DispatchSanity_test,GLES2)202 TEST_F(DispatchSanity_test, GLES2)
203 {
204    SetUpCtx(API_OPENGLES2, 20);
205    validate_functions(&ctx, gles2_functions_possible, nop_table);
206    validate_nops(&ctx, nop_table);
207 }
208 
TEST_F(DispatchSanity_test,GLES3)209 TEST_F(DispatchSanity_test, GLES3)
210 {
211    SetUpCtx(API_OPENGLES2, 30);
212    validate_functions(&ctx, gles2_functions_possible, nop_table);
213    validate_functions(&ctx, gles3_functions_possible, nop_table);
214    validate_nops(&ctx, nop_table);
215 }
216 
TEST_F(DispatchSanity_test,GLES31)217 TEST_F(DispatchSanity_test, GLES31)
218 {
219    SetUpCtx(API_OPENGLES2, 31);
220    validate_functions(&ctx, gles2_functions_possible, nop_table);
221    validate_functions(&ctx, gles3_functions_possible, nop_table);
222    validate_functions(&ctx, gles31_functions_possible, nop_table);
223    validate_nops(&ctx, nop_table);
224 }
225 
226 const struct function common_desktop_functions_possible[] = {
227    { "glBindRenderbufferEXT", 10, -1 },
228    { "glBindFramebufferEXT", 10, -1 },
229    { "glCullFace", 10, -1 },
230    { "glFrontFace", 10, -1 },
231    { "glHint", 10, -1 },
232    { "glLineWidth", 10, -1 },
233    { "glPointSize", 10, -1 },
234    { "glPolygonMode", 10, -1 },
235    { "glScissor", 10, -1 },
236    { "glTexParameterf", 10, -1 },
237    { "glTexParameterfv", 10, -1 },
238    { "glTexParameteri", 10, -1 },
239    { "glTexParameteriv", 10, -1 },
240    { "glTexImage1D", 10, _gloffset_TexImage1D },
241    { "glTexImage2D", 10, _gloffset_TexImage2D },
242    { "glDrawBuffer", 10, -1 },
243    { "glClear", 10, -1 },
244    { "glClearColor", 10, -1 },
245    { "glClearStencil", 10, -1 },
246    { "glClearDepth", 10, -1 },
247    { "glStencilMask", 10, -1 },
248    { "glColorMask", 10, -1 },
249    { "glDepthMask", 10, -1 },
250    { "glDisable", 10, -1 },
251    { "glEnable", 10, -1 },
252    { "glFinish", 10, -1 },
253    { "glFlush", 10, -1 },
254    { "glBlendFunc", 10, -1 },
255    { "glLogicOp", 10, -1 },
256    { "glStencilFunc", 10, -1 },
257    { "glStencilOp", 10, -1 },
258    { "glDepthFunc", 10, -1 },
259    { "glPixelStoref", 10, -1 },
260    { "glPixelStorei", 10, -1 },
261    { "glReadBuffer", 10, -1 },
262    { "glReadPixels", 10, -1 },
263    { "glGetBooleanv", 10, -1 },
264    { "glGetDoublev", 10, -1 },
265    { "glGetError", 10, -1 },
266    { "glGetFloatv", 10, -1 },
267    { "glGetIntegerv", 10, -1 },
268    { "glGetString", 10, -1 },
269    { "glGetTexImage", 10, -1 },
270    { "glGetTexParameterfv", 10, -1 },
271    { "glGetTexParameteriv", 10, -1 },
272    { "glGetTexLevelParameterfv", 10, -1 },
273    { "glGetTexLevelParameteriv", 10, -1 },
274    { "glIsEnabled", 10, -1 },
275    { "glDepthRange", 10, -1 },
276    { "glViewport", 10, -1 },
277 
278    /* GL 1.1 */
279    { "glDrawArrays", 11, -1 },
280    { "glDrawElements", 11, -1 },
281    { "glGetPointerv", 11, -1 },
282    { "glPolygonOffset", 11, -1 },
283    { "glCopyTexImage1D", 11, -1 },
284    { "glCopyTexImage2D", 11, -1 },
285    { "glCopyTexSubImage1D", 11, -1 },
286    { "glCopyTexSubImage2D", 11, -1 },
287    { "glTexSubImage1D", 11, -1 },
288    { "glTexSubImage2D", 11, -1 },
289    { "glBindTexture", 11, -1 },
290    { "glDeleteTextures", 11, -1 },
291    { "glGenTextures", 11, -1 },
292    { "glIsTexture", 11, -1 },
293 
294    /* GL 1.2 */
295    { "glBlendColor", 12, -1 },
296    { "glBlendEquation", 12, -1 },
297    { "glDrawRangeElements", 12, -1 },
298    { "glTexImage3D", 12, -1 },
299    { "glTexSubImage3D", 12, -1 },
300    { "glCopyTexSubImage3D", 12, -1 },
301 
302    /* GL 1.3 */
303    { "glActiveTexture", 13, -1 },
304    { "glSampleCoverage", 13, -1 },
305    { "glCompressedTexImage3D", 13, -1 },
306    { "glCompressedTexImage2D", 13, -1 },
307    { "glCompressedTexImage1D", 13, -1 },
308    { "glCompressedTexSubImage3D", 13, -1 },
309    { "glCompressedTexSubImage2D", 13, -1 },
310    { "glCompressedTexSubImage1D", 13, -1 },
311    { "glGetCompressedTexImage", 13, -1 },
312 
313    /* GL 1.4 */
314    { "glBlendFuncSeparate", 14, -1 },
315    { "glMultiDrawArrays", 14, -1 },
316    { "glMultiDrawElements", 14, -1 },
317    { "glPointParameterf", 14, -1 },
318    { "glPointParameterfv", 14, -1 },
319    { "glPointParameteri", 14, -1 },
320    { "glPointParameteriv", 14, -1 },
321 
322    /* GL 1.5 */
323    { "glGenQueries", 15, -1 },
324    { "glDeleteQueries", 15, -1 },
325    { "glIsQuery", 15, -1 },
326    { "glBeginQuery", 15, -1 },
327    { "glEndQuery", 15, -1 },
328    { "glGetQueryiv", 15, -1 },
329    { "glGetQueryObjectiv", 15, -1 },
330    { "glGetQueryObjectuiv", 15, -1 },
331    { "glBindBuffer", 15, -1 },
332    { "glDeleteBuffers", 15, -1 },
333    { "glGenBuffers", 15, -1 },
334    { "glIsBuffer", 15, -1 },
335    { "glBufferData", 15, -1 },
336    { "glBufferSubData", 15, -1 },
337    { "glGetBufferSubData", 15, -1 },
338    { "glMapBuffer", 15, -1 },
339    { "glUnmapBuffer", 15, -1 },
340    { "glGetBufferParameteriv", 15, -1 },
341    { "glGetBufferPointerv", 15, -1 },
342 
343    /* GL 2.0 */
344    { "glBlendEquationSeparate", 20, -1 },
345    { "glDrawBuffers", 20, -1 },
346    { "glStencilOpSeparate", 20, -1 },
347    { "glStencilFuncSeparate", 20, -1 },
348    { "glStencilMaskSeparate", 20, -1 },
349    { "glAttachShader", 20, -1 },
350    { "glBindAttribLocation", 20, -1 },
351    { "glCompileShader", 20, -1 },
352    { "glCreateProgram", 20, -1 },
353    { "glCreateShader", 20, -1 },
354    { "glDeleteProgram", 20, -1 },
355    { "glDeleteShader", 20, -1 },
356    { "glDetachShader", 20, -1 },
357    { "glDisableVertexAttribArray", 20, -1 },
358    { "glEnableVertexAttribArray", 20, -1 },
359    { "glGetActiveAttrib", 20, -1 },
360    { "glGetActiveUniform", 20, -1 },
361    { "glGetAttachedShaders", 20, -1 },
362    { "glGetAttribLocation", 20, -1 },
363    { "glGetProgramiv", 20, -1 },
364    { "glGetProgramInfoLog", 20, -1 },
365    { "glGetShaderiv", 20, -1 },
366    { "glGetShaderInfoLog", 20, -1 },
367    { "glGetShaderSource", 20, -1 },
368    { "glGetUniformLocation", 20, -1 },
369    { "glGetUniformfv", 20, -1 },
370    { "glGetUniformiv", 20, -1 },
371    { "glGetVertexAttribdv", 20, -1 },
372    { "glGetVertexAttribfv", 20, -1 },
373    { "glGetVertexAttribiv", 20, -1 },
374    { "glGetVertexAttribPointerv", 20, -1 },
375    { "glIsProgram", 20, -1 },
376    { "glIsShader", 20, -1 },
377    { "glLinkProgram", 20, -1 },
378    { "glShaderSource", 20, -1 },
379    { "glUseProgram", 20, -1 },
380    { "glUniform1f", 20, -1 },
381    { "glUniform2f", 20, -1 },
382    { "glUniform3f", 20, -1 },
383    { "glUniform4f", 20, -1 },
384    { "glUniform1i", 20, -1 },
385    { "glUniform2i", 20, -1 },
386    { "glUniform3i", 20, -1 },
387    { "glUniform4i", 20, -1 },
388    { "glUniform1fv", 20, -1 },
389    { "glUniform2fv", 20, -1 },
390    { "glUniform3fv", 20, -1 },
391    { "glUniform4fv", 20, -1 },
392    { "glUniform1iv", 20, -1 },
393    { "glUniform2iv", 20, -1 },
394    { "glUniform3iv", 20, -1 },
395    { "glUniform4iv", 20, -1 },
396    { "glUniformMatrix2fv", 20, -1 },
397    { "glUniformMatrix3fv", 20, -1 },
398    { "glUniformMatrix4fv", 20, -1 },
399    { "glValidateProgram", 20, -1 },
400    { "glVertexAttrib1d", 20, -1 },
401    { "glVertexAttrib1dv", 20, -1 },
402    { "glVertexAttrib1f", 20, -1 },
403    { "glVertexAttrib1fv", 20, -1 },
404    { "glVertexAttrib1s", 20, -1 },
405    { "glVertexAttrib1sv", 20, -1 },
406    { "glVertexAttrib2d", 20, -1 },
407    { "glVertexAttrib2dv", 20, -1 },
408    { "glVertexAttrib2f", 20, -1 },
409    { "glVertexAttrib2fv", 20, -1 },
410    { "glVertexAttrib2s", 20, -1 },
411    { "glVertexAttrib2sv", 20, -1 },
412    { "glVertexAttrib3d", 20, -1 },
413    { "glVertexAttrib3dv", 20, -1 },
414    { "glVertexAttrib3f", 20, -1 },
415    { "glVertexAttrib3fv", 20, -1 },
416    { "glVertexAttrib3s", 20, -1 },
417    { "glVertexAttrib3sv", 20, -1 },
418    { "glVertexAttrib4Nbv", 20, -1 },
419    { "glVertexAttrib4Niv", 20, -1 },
420    { "glVertexAttrib4Nsv", 20, -1 },
421    { "glVertexAttrib4Nub", 20, -1 },
422    { "glVertexAttrib4Nubv", 20, -1 },
423    { "glVertexAttrib4Nuiv", 20, -1 },
424    { "glVertexAttrib4Nusv", 20, -1 },
425    { "glVertexAttrib4bv", 20, -1 },
426    { "glVertexAttrib4d", 20, -1 },
427    { "glVertexAttrib4dv", 20, -1 },
428    { "glVertexAttrib4f", 20, -1 },
429    { "glVertexAttrib4fv", 20, -1 },
430    { "glVertexAttrib4iv", 20, -1 },
431    { "glVertexAttrib4s", 20, -1 },
432    { "glVertexAttrib4sv", 20, -1 },
433    { "glVertexAttrib4ubv", 20, -1 },
434    { "glVertexAttrib4uiv", 20, -1 },
435    { "glVertexAttrib4usv", 20, -1 },
436    { "glVertexAttribPointer", 20, -1 },
437 
438    /* GL 2.1 */
439    { "glUniformMatrix2x3fv", 21, -1 },
440    { "glUniformMatrix3x2fv", 21, -1 },
441    { "glUniformMatrix2x4fv", 21, -1 },
442    { "glUniformMatrix4x2fv", 21, -1 },
443    { "glUniformMatrix3x4fv", 21, -1 },
444    { "glUniformMatrix4x3fv", 21, -1 },
445 
446    /* GL 3.0 */
447    { "glColorMaski", 30, -1 },
448    { "glGetBooleani_v", 30, -1 },
449    { "glGetIntegeri_v", 30, -1 },
450    { "glEnablei", 30, -1 },
451    { "glDisablei", 30, -1 },
452    { "glIsEnabledi", 30, -1 },
453    { "glBeginTransformFeedback", 30, -1 },
454    { "glEndTransformFeedback", 30, -1 },
455    { "glBindBufferRange", 30, -1 },
456    { "glBindBufferBase", 30, -1 },
457    { "glTransformFeedbackVaryings", 30, -1 },
458    { "glGetTransformFeedbackVarying", 30, -1 },
459    { "glClampColor", 30, -1 },
460    { "glBeginConditionalRender", 30, -1 },
461    { "glEndConditionalRender", 30, -1 },
462    { "glVertexAttribIPointer", 30, -1 },
463    { "glGetVertexAttribIiv", 30, -1 },
464    { "glGetVertexAttribIuiv", 30, -1 },
465    { "glVertexAttribI1i", 30, -1 },
466    { "glVertexAttribI2i", 30, -1 },
467    { "glVertexAttribI3i", 30, -1 },
468    { "glVertexAttribI4i", 30, -1 },
469    { "glVertexAttribI1ui", 30, -1 },
470    { "glVertexAttribI2ui", 30, -1 },
471    { "glVertexAttribI3ui", 30, -1 },
472    { "glVertexAttribI4ui", 30, -1 },
473    { "glVertexAttribI1iv", 30, -1 },
474    { "glVertexAttribI2iv", 30, -1 },
475    { "glVertexAttribI3iv", 30, -1 },
476    { "glVertexAttribI4iv", 30, -1 },
477    { "glVertexAttribI1uiv", 30, -1 },
478    { "glVertexAttribI2uiv", 30, -1 },
479    { "glVertexAttribI3uiv", 30, -1 },
480    { "glVertexAttribI4uiv", 30, -1 },
481    { "glVertexAttribI4bv", 30, -1 },
482    { "glVertexAttribI4sv", 30, -1 },
483    { "glVertexAttribI4ubv", 30, -1 },
484    { "glVertexAttribI4usv", 30, -1 },
485    { "glGetUniformuiv", 30, -1 },
486    { "glBindFragDataLocation", 30, -1 },
487    { "glGetFragDataLocation", 30, -1 },
488    { "glUniform1ui", 30, -1 },
489    { "glUniform2ui", 30, -1 },
490    { "glUniform3ui", 30, -1 },
491    { "glUniform4ui", 30, -1 },
492    { "glUniform1uiv", 30, -1 },
493    { "glUniform2uiv", 30, -1 },
494    { "glUniform3uiv", 30, -1 },
495    { "glUniform4uiv", 30, -1 },
496    { "glTexParameterIiv", 30, -1 },
497    { "glTexParameterIuiv", 30, -1 },
498    { "glGetTexParameterIiv", 30, -1 },
499    { "glGetTexParameterIuiv", 30, -1 },
500    { "glClearBufferiv", 30, -1 },
501    { "glClearBufferuiv", 30, -1 },
502    { "glClearBufferfv", 30, -1 },
503    { "glClearBufferfi", 30, -1 },
504    { "glGetStringi", 30, -1 },
505 
506    /* GL 3.1 */
507    { "glDrawArraysInstanced", 31, -1 },
508    { "glDrawElementsInstanced", 31, -1 },
509    { "glPrimitiveRestartIndex", 31, -1 },
510    { "glTexBuffer", 31, -1 },
511 
512    /* GL_ARB_texture_buffer_range */
513    { "glTexBufferRange", 43, -1 },
514 
515    /* GL_ARB_shader_objects */
516    { "glDeleteObjectARB", 31, -1 },
517    { "glGetHandleARB", 31, -1 },
518    { "glDetachObjectARB", 31, -1 },
519    { "glCreateShaderObjectARB", 31, -1 },
520    { "glCreateProgramObjectARB", 31, -1 },
521    { "glAttachObjectARB", 31, -1 },
522    { "glGetObjectParameterfvARB", 31, -1 },
523    { "glGetObjectParameterivARB", 31, -1 },
524    { "glGetInfoLogARB", 31, -1 },
525    { "glGetAttachedObjectsARB", 31, -1 },
526 
527    /* GL_ARB_get_program_binary */
528    { "glGetProgramBinary", 30, -1 },
529    { "glProgramBinary", 30, -1 },
530    { "glProgramParameteri", 30, -1 },
531 
532    /* GL_EXT_transform_feedback */
533    { "glBindBufferOffsetEXT", 31, -1 },
534 
535    /* GL_IBM_multimode_draw_arrays */
536    { "glMultiModeDrawArraysIBM", 31, -1 },
537    { "glMultiModeDrawElementsIBM", 31, -1 },
538 
539    /* GL_EXT_depth_bounds_test */
540    { "glDepthBoundsEXT", 31, -1 },
541 
542    /* GL_apple_object_purgeable */
543    { "glObjectPurgeableAPPLE", 31, -1 },
544    { "glObjectUnpurgeableAPPLE", 31, -1 },
545    { "glGetObjectParameterivAPPLE", 31, -1 },
546 
547    /* GL_ARB_instanced_arrays */
548    { "glVertexAttribDivisorARB", 31, -1 },
549    { "glVertexArrayVertexAttribDivisorEXT", 31, -1 },
550 
551    /* GL_NV_texture_barrier */
552    { "glTextureBarrierNV", 31, -1 },
553 
554    /* GL_EXT_texture_integer */
555    { "glClearColorIiEXT", 31, -1 },
556    { "glClearColorIuiEXT", 31, -1 },
557 
558    /* GL_OES_EGL_image */
559    { "glEGLImageTargetRenderbufferStorageOES", 31, -1 },
560    { "glEGLImageTargetTexture2DOES", 31, -1 },
561 
562    /* EXT_EGL_image_storage */
563    { "glEGLImageTargetTexStorageEXT", 31, -1 },
564    { "glEGLImageTargetTextureStorageEXT", 31, -1 },
565 
566    /* GL_NV_copy_image */
567    { "glCopyImageSubDataNV", 31, -1 },
568 
569    /* GL 3.2 */
570    { "glGetInteger64i_v", 32, -1 },
571    { "glGetBufferParameteri64v", 32, -1 },
572    { "glFramebufferTexture", 32, -1 },
573    { "glProgramParameteri", 32, -1 },
574    { "glFramebufferTextureLayer", 32, -1 },
575 
576    /* GL 3.3 */
577    { "glVertexAttribDivisor", 33, -1 },
578 
579    /* GL 4.0 */
580    { "glMinSampleShading", 40, -1 },
581    { "glPatchParameteri", 40, -1 },
582    { "glPatchParameterfv", 40, -1 },
583    { "glBlendEquationi", 40, -1 },
584    { "glBlendEquationSeparatei", 40, -1 },
585    { "glBlendFunci", 40, -1 },
586    { "glBlendFuncSeparatei", 40, -1 },
587 
588    { "glGetSubroutineUniformLocation", 40, -1 },
589    { "glGetSubroutineIndex", 40, -1 },
590    { "glGetActiveSubroutineUniformiv", 40, -1 },
591    { "glGetActiveSubroutineUniformName", 40, -1 },
592    { "glGetActiveSubroutineName", 40, -1 },
593    { "glUniformSubroutinesuiv", 40, -1 },
594    { "glGetUniformSubroutineuiv", 40, -1 },
595    { "glGetProgramStageiv", 40, -1 },
596 
597    { "glUniform1d", 40, -1 },
598    { "glUniform2d", 40, -1 },
599    { "glUniform3d", 40, -1 },
600    { "glUniform4d", 40, -1 },
601    { "glUniform1dv", 40, -1 },
602    { "glUniform2dv", 40, -1 },
603    { "glUniform3dv", 40, -1 },
604    { "glUniform4dv", 40, -1 },
605    { "glUniformMatrix2dv", 40, -1 },
606    { "glUniformMatrix3dv", 40, -1 },
607    { "glUniformMatrix4dv", 40, -1 },
608    { "glUniformMatrix2x3dv", 40, -1 },
609    { "glUniformMatrix2x4dv", 40, -1 },
610    { "glUniformMatrix3x2dv", 40, -1 },
611    { "glUniformMatrix3x4dv", 40, -1 },
612    { "glUniformMatrix4x2dv", 40, -1 },
613    { "glUniformMatrix4x3dv", 40, -1 },
614    { "glGetUniformdv", 43, -1 },
615 
616    /* GL 4.1 */
617    { "glVertexAttribL1d", 41, -1 },
618    { "glVertexAttribL2d", 41, -1 },
619    { "glVertexAttribL3d", 41, -1 },
620    { "glVertexAttribL4d", 41, -1 },
621    { "glVertexAttribL1dv", 41, -1 },
622    { "glVertexAttribL2dv", 41, -1 },
623    { "glVertexAttribL3dv", 41, -1 },
624    { "glVertexAttribL4dv", 41, -1 },
625    { "glVertexAttribLPointer", 41, -1 },
626    { "glGetVertexAttribLdv", 41, -1 },
627    { "glVertexArrayVertexAttribLOffsetEXT", 41, -1 },
628 
629    /* GL 4.3 */
630    { "glIsRenderbuffer", 43, -1 },
631    { "glBindRenderbuffer", 43, -1 },
632    { "glDeleteRenderbuffers", 43, -1 },
633    { "glGenRenderbuffers", 43, -1 },
634    { "glRenderbufferStorage", 43, -1 },
635    { "glGetRenderbufferParameteriv", 43, -1 },
636    { "glIsFramebuffer", 43, -1 },
637    { "glBindFramebuffer", 43, -1 },
638    { "glDeleteFramebuffers", 43, -1 },
639    { "glGenFramebuffers", 43, -1 },
640    { "glCheckFramebufferStatus", 43, -1 },
641    { "glFramebufferTexture1D", 43, -1 },
642    { "glFramebufferTexture2D", 43, -1 },
643    { "glFramebufferTexture3D", 43, -1 },
644    { "glFramebufferRenderbuffer", 43, -1 },
645    { "glGetFramebufferAttachmentParameteriv", 43, -1 },
646    { "glGenerateMipmap", 43, -1 },
647    { "glBlitFramebuffer", 43, -1 },
648    { "glRenderbufferStorageMultisample", 43, -1 },
649    { "glFramebufferTextureLayer", 43, -1 },
650    { "glMapBufferRange", 43, -1 },
651    { "glFlushMappedBufferRange", 43, -1 },
652    { "glBindVertexArray", 43, -1 },
653    { "glDeleteVertexArrays", 43, -1 },
654    { "glGenVertexArrays", 43, -1 },
655    { "glIsVertexArray", 43, -1 },
656    { "glGetUniformIndices", 43, -1 },
657    { "glGetActiveUniformsiv", 43, -1 },
658    { "glGetActiveUniformName", 43, -1 },
659    { "glGetUniformBlockIndex", 43, -1 },
660    { "glGetActiveUniformBlockiv", 43, -1 },
661    { "glGetActiveUniformBlockName", 43, -1 },
662    { "glUniformBlockBinding", 43, -1 },
663    { "glCopyBufferSubData", 43, -1 },
664    { "glDrawElementsBaseVertex", 43, -1 },
665    { "glDrawRangeElementsBaseVertex", 43, -1 },
666    { "glDrawElementsInstancedBaseVertex", 43, -1 },
667    { "glMultiDrawElementsBaseVertex", 43, -1 },
668    { "glProvokingVertex", 43, -1 },
669    { "glFenceSync", 43, -1 },
670    { "glIsSync", 43, -1 },
671    { "glDeleteSync", 43, -1 },
672    { "glClientWaitSync", 43, -1 },
673    { "glWaitSync", 43, -1 },
674    { "glGetInteger64v", 43, -1 },
675    { "glGetSynciv", 43, -1 },
676    { "glTexImage2DMultisample", 43, -1 },
677    { "glTexImage3DMultisample", 43, -1 },
678    { "glGetMultisamplefv", 43, -1 },
679    { "glSampleMaski", 43, -1 },
680    { "glBlendEquationiARB", 43, -1 },
681    { "glBlendEquationSeparateiARB", 43, -1 },
682    { "glBlendFunciARB", 43, -1 },
683    { "glBlendFuncSeparateiARB", 43, -1 },
684    { "glMinSampleShadingARB", 43, -1 },                 // XXX: Add to xml
685    { "glBindFragDataLocationIndexed", 43, -1 },
686    { "glGetFragDataIndex", 43, -1 },
687    { "glGenSamplers", 43, -1 },
688    { "glDeleteSamplers", 43, -1 },
689    { "glIsSampler", 43, -1 },
690    { "glBindSampler", 43, -1 },
691    { "glSamplerParameteri", 43, -1 },
692    { "glSamplerParameteriv", 43, -1 },
693    { "glSamplerParameterf", 43, -1 },
694    { "glSamplerParameterfv", 43, -1 },
695    { "glSamplerParameterIiv", 43, -1 },
696    { "glSamplerParameterIuiv", 43, -1 },
697    { "glGetSamplerParameteriv", 43, -1 },
698    { "glGetSamplerParameterIiv", 43, -1 },
699    { "glGetSamplerParameterfv", 43, -1 },
700    { "glGetSamplerParameterIuiv", 43, -1 },
701    { "glQueryCounter", 43, -1 },
702    { "glGetQueryObjecti64v", 43, -1 },
703    { "glGetQueryObjectui64v", 43, -1 },
704    { "glVertexP2ui", 43, -1 },
705    { "glVertexP2uiv", 43, -1 },
706    { "glVertexP3ui", 43, -1 },
707    { "glVertexP3uiv", 43, -1 },
708    { "glVertexP4ui", 43, -1 },
709    { "glVertexP4uiv", 43, -1 },
710    { "glTexCoordP1ui", 43, -1 },
711    { "glTexCoordP1uiv", 43, -1 },
712    { "glTexCoordP2ui", 43, -1 },
713    { "glTexCoordP2uiv", 43, -1 },
714    { "glTexCoordP3ui", 43, -1 },
715    { "glTexCoordP3uiv", 43, -1 },
716    { "glTexCoordP4ui", 43, -1 },
717    { "glTexCoordP4uiv", 43, -1 },
718    { "glMultiTexCoordP1ui", 43, -1 },
719    { "glMultiTexCoordP1uiv", 43, -1 },
720    { "glMultiTexCoordP2ui", 43, -1 },
721    { "glMultiTexCoordP2uiv", 43, -1 },
722    { "glMultiTexCoordP3ui", 43, -1 },
723    { "glMultiTexCoordP3uiv", 43, -1 },
724    { "glMultiTexCoordP4ui", 43, -1 },
725    { "glMultiTexCoordP4uiv", 43, -1 },
726    { "glNormalP3ui", 43, -1 },
727    { "glNormalP3uiv", 43, -1 },
728    { "glColorP3ui", 43, -1 },
729    { "glColorP3uiv", 43, -1 },
730    { "glColorP4ui", 43, -1 },
731    { "glColorP4uiv", 43, -1 },
732    { "glSecondaryColorP3ui", 43, -1 },
733    { "glSecondaryColorP3uiv", 43, -1 },
734    { "glVertexAttribP1ui", 43, -1 },
735    { "glVertexAttribP1uiv", 43, -1 },
736    { "glVertexAttribP2ui", 43, -1 },
737    { "glVertexAttribP2uiv", 43, -1 },
738    { "glVertexAttribP3ui", 43, -1 },
739    { "glVertexAttribP3uiv", 43, -1 },
740    { "glVertexAttribP4ui", 43, -1 },
741    { "glVertexAttribP4uiv", 43, -1 },
742    { "glDrawArraysIndirect", 43, -1 },
743    { "glDrawElementsIndirect", 43, -1 },
744    { "glBindTransformFeedback", 43, -1 },
745    { "glDeleteTransformFeedbacks", 43, -1 },
746    { "glGenTransformFeedbacks", 43, -1 },
747    { "glIsTransformFeedback", 43, -1 },
748    { "glPauseTransformFeedback", 43, -1 },
749    { "glResumeTransformFeedback", 43, -1 },
750    { "glDrawTransformFeedback", 43, -1 },
751    { "glDrawTransformFeedbackStream", 43, -1 },
752    { "glBeginQueryIndexed", 43, -1 },
753    { "glEndQueryIndexed", 43, -1 },
754    { "glGetQueryIndexediv", 43, -1 },
755    { "glReleaseShaderCompiler", 43, -1 },
756    { "glShaderBinary", 43, -1 },
757    { "glGetShaderPrecisionFormat", 43, -1 },
758    { "glDepthRangef", 43, -1 },
759    { "glClearDepthf", 43, -1 },
760    { "glGetProgramBinary", 43, -1 },
761    { "glProgramBinary", 43, -1 },
762    { "glProgramParameteri", 43, -1 },
763    { "glUseProgramStages", 43, -1 },
764    { "glActiveShaderProgram", 43, -1 },
765    { "glCreateShaderProgramv", 43, -1 },
766    { "glBindProgramPipeline", 43, -1 },
767    { "glDeleteProgramPipelines", 43, -1 },
768    { "glGenProgramPipelines", 43, -1 },
769    { "glIsProgramPipeline", 43, -1 },
770    { "glGetProgramPipelineiv", 43, -1 },
771    { "glProgramUniform1d", 43, -1 },
772    { "glProgramUniform1dv", 43, -1 },
773    { "glProgramUniform1i", 43, -1 },
774    { "glProgramUniform1iv", 43, -1 },
775    { "glProgramUniform1f", 43, -1 },
776    { "glProgramUniform1fv", 43, -1 },
777    { "glProgramUniform1ui", 43, -1 },
778    { "glProgramUniform1uiv", 43, -1 },
779    { "glProgramUniform2i", 43, -1 },
780    { "glProgramUniform2iv", 43, -1 },
781    { "glProgramUniform2f", 43, -1 },
782    { "glProgramUniform2fv", 43, -1 },
783    { "glProgramUniform2d", 40, -1 },
784    { "glProgramUniform2dv", 40, -1 },
785    { "glProgramUniform2ui", 43, -1 },
786    { "glProgramUniform2uiv", 43, -1 },
787    { "glProgramUniform3i", 43, -1 },
788    { "glProgramUniform3iv", 43, -1 },
789    { "glProgramUniform3f", 43, -1 },
790    { "glProgramUniform3fv", 43, -1 },
791    { "glProgramUniform3d", 40, -1 },
792    { "glProgramUniform3dv", 40, -1 },
793    { "glProgramUniform3ui", 43, -1 },
794    { "glProgramUniform3uiv", 43, -1 },
795    { "glProgramUniform4i", 43, -1 },
796    { "glProgramUniform4iv", 43, -1 },
797    { "glProgramUniform4d", 43, -1 },
798    { "glProgramUniform4dv", 43, -1 },
799    { "glProgramUniform4f", 43, -1 },
800    { "glProgramUniform4fv", 43, -1 },
801    { "glProgramUniform4ui", 43, -1 },
802    { "glProgramUniform4uiv", 43, -1 },
803    { "glProgramUniformMatrix2dv", 43, -1 },
804    { "glProgramUniformMatrix2fv", 43, -1 },
805    { "glProgramUniformMatrix3dv", 43, -1 },
806    { "glProgramUniformMatrix3fv", 43, -1 },
807    { "glProgramUniformMatrix4dv", 43, -1 },
808    { "glProgramUniformMatrix4fv", 43, -1 },
809    { "glProgramUniformMatrix2x3dv", 43, -1 },
810    { "glProgramUniformMatrix2x3fv", 43, -1 },
811    { "glProgramUniformMatrix3x2dv", 43, -1 },
812    { "glProgramUniformMatrix3x2fv", 43, -1 },
813    { "glProgramUniformMatrix2x4dv", 43, -1 },
814    { "glProgramUniformMatrix2x4fv", 43, -1 },
815    { "glProgramUniformMatrix4x2dv", 43, -1 },
816    { "glProgramUniformMatrix4x2fv", 43, -1 },
817    { "glProgramUniformMatrix3x4dv", 43, -1 },
818    { "glProgramUniformMatrix3x4fv", 43, -1 },
819    { "glProgramUniformMatrix4x3dv", 43, -1 },
820    { "glProgramUniformMatrix4x3fv", 43, -1 },
821    { "glValidateProgramPipeline", 43, -1 },
822    { "glGetProgramPipelineInfoLog", 43, -1 },
823    { "glGetFloati_v", 43, -1 },
824    { "glGetDoublei_v", 43, -1 },
825 // { "glCreateSyncFromCLeventARB", 43, -1 },            // XXX: Add to xml
826    { "glGetGraphicsResetStatusARB", 43, -1 },
827    { "glGetnMapdvARB", 43, -1 },
828    { "glGetnMapfvARB", 43, -1 },
829    { "glGetnMapivARB", 43, -1 },
830    { "glGetnPixelMapfvARB", 43, -1 },
831    { "glGetnPixelMapuivARB", 43, -1 },
832    { "glGetnPixelMapusvARB", 43, -1 },
833    { "glGetnPolygonStippleARB", 43, -1 },
834    { "glGetnColorTableARB", 43, -1 },
835    { "glGetnConvolutionFilterARB", 43, -1 },
836    { "glGetnSeparableFilterARB", 43, -1 },
837    { "glGetnHistogramARB", 43, -1 },
838    { "glGetnMinmaxARB", 43, -1 },
839    { "glGetnTexImageARB", 43, -1 },
840    { "glReadnPixelsARB", 43, -1 },
841    { "glGetnCompressedTexImageARB", 43, -1 },
842    { "glGetnUniformfvARB", 43, -1 },
843    { "glGetnUniformivARB", 43, -1 },
844    { "glGetnUniformuivARB", 43, -1 },
845    { "glGetnUniformdvARB", 43, -1 },
846    { "glDrawArraysInstancedBaseInstance", 43, -1 },
847    { "glDrawElementsInstancedBaseInstance", 43, -1 },
848    { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
849    { "glDrawTransformFeedbackInstanced", 43, -1 },
850    { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
851 // { "glGetInternalformativ", 43, -1 },                 // XXX: Add to xml
852    { "glGetActiveAtomicCounterBufferiv", 43, -1 },
853    { "glBindImageTexture", 43, -1 },
854    { "glMemoryBarrier", 43, -1 },
855    { "glTexStorage1D", 43, -1 },
856    { "glTexStorage2D", 43, -1 },
857    { "glTexStorage3D", 43, -1 },
858    { "glTextureStorage1DEXT", 43, -1 },
859    { "glTextureStorage2DEXT", 43, -1 },
860    { "glTextureStorage3DEXT", 43, -1 },
861    { "glClearBufferData", 43, -1 },
862    { "glClearBufferSubData", 43, -1 },
863    { "glClearNamedBufferDataEXT", 43, -1 },
864    { "glClearNamedBufferSubDataEXT", 43, -1 },
865    { "glCopyImageSubData", 43, -1 },
866    { "glTextureView", 43, -1 },
867    { "glBindVertexBuffer", 43, -1 },
868    { "glVertexAttribFormat", 43, -1 },
869    { "glVertexAttribIFormat", 43, -1 },
870    { "glVertexAttribLFormat", 43, -1 },
871    { "glVertexAttribBinding", 43, -1 },
872    { "glVertexBindingDivisor", 43, -1 },
873    { "glVertexArrayBindVertexBufferEXT", 43, -1 },
874    { "glVertexArrayVertexAttribFormatEXT", 43, -1 },
875    { "glVertexArrayVertexAttribIFormatEXT", 43, -1 },
876    { "glVertexArrayVertexAttribLFormatEXT", 43, -1 },
877    { "glVertexArrayVertexAttribBindingEXT", 43, -1 },
878    { "glVertexArrayVertexBindingDivisorEXT", 43, -1 },
879    { "glFramebufferParameteri", 43, -1 },
880    { "glGetFramebufferParameteriv", 43, -1 },
881    { "glNamedFramebufferParameteriEXT", 43, -1 },
882    { "glGetNamedFramebufferParameterivEXT", 43, -1 },
883 // { "glGetInternalformati64v", 43, -1 },               // XXX: Add to xml
884    { "glInvalidateTexSubImage", 43, -1 },
885    { "glInvalidateTexImage", 43, -1 },
886    { "glInvalidateBufferSubData", 43, -1 },
887    { "glInvalidateBufferData", 43, -1 },
888    { "glInvalidateFramebuffer", 43, -1 },
889    { "glInvalidateSubFramebuffer", 43, -1 },
890    { "glMultiDrawArraysIndirect", 43, -1 },
891    { "glMultiDrawElementsIndirect", 43, -1 },
892    { "glGetProgramInterfaceiv", 43, -1 },
893    { "glGetProgramResourceIndex", 43, -1 },
894    { "glGetProgramResourceName", 43, -1 },
895    { "glGetProgramResourceiv", 43, -1 },
896    { "glGetProgramResourceLocation", 43, -1 },
897    { "glGetProgramResourceLocationIndex", 43, -1 },
898    { "glShaderStorageBlockBinding", 43, -1 },
899    { "glTextureBufferRangeEXT", 43, -1 },
900    { "glTexStorage2DMultisample", 43, -1 },
901    { "glTexStorage3DMultisample", 43, -1 },
902    { "glTextureStorage2DMultisampleEXT", 43, -1 },
903    { "glTextureStorage3DMultisampleEXT", 43, -1 },
904 
905    { "glViewportArrayv", 43, -1 },
906    { "glViewportIndexedf", 43, -1 },
907    { "glViewportIndexedfv", 43, -1 },
908    { "glScissorArrayv", 43, -1 },
909    { "glScissorIndexed", 43, -1 },
910    { "glScissorIndexedv", 43, -1 },
911    { "glDepthRangeArrayv", 43, -1 },
912    { "glDepthRangeIndexed", 43, -1 },
913 
914 /* GL 4.4 */
915    /* GL_NV_alpha_to_coverage_dither_control */
916    { "glAlphaToCoverageDitherControlNV", 44, -1 },
917 
918 /* GL 4.5 */
919    /* aliased versions checked above */
920    //{ "glGetGraphicsResetStatus", 45, -1 },
921    //{ "glReadnPixels", 45, -1 },
922    //{ "glGetnUniformfv", 45, -1 },
923    //{ "glGetnUniformiv", 45, -1 },
924    //{ "glGetnUniformuiv", 45, -1 },
925    { "glMemoryBarrierByRegion", 45, -1 },
926 
927    /* GL_ARB_direct_state_access */
928    { "glCreateTransformFeedbacks", 45, -1 },
929    { "glTransformFeedbackBufferBase", 45, -1 },
930    { "glTransformFeedbackBufferRange", 45, -1 },
931    { "glGetTransformFeedbackiv", 45, -1 },
932    { "glGetTransformFeedbacki_v", 45, -1 },
933    { "glGetTransformFeedbacki64_v", 45, -1 },
934    { "glCreateBuffers", 45, -1 },
935    { "glNamedBufferStorage", 45, -1 },
936    { "glNamedBufferData", 45, -1 },
937    { "glNamedBufferSubData", 45, -1 },
938    { "glCopyNamedBufferSubData", 45, -1 },
939    { "glClearNamedBufferData", 45, -1 },
940    { "glClearNamedBufferSubData", 45, -1 },
941    { "glMapNamedBuffer", 45, -1 },
942    { "glMapNamedBufferRange", 45, -1 },
943    { "glFlushMappedNamedBufferRange", 45, -1 },
944    { "glGetNamedBufferParameteriv", 45, -1 },
945    { "glGetNamedBufferParameteri64v", 45, -1 },
946    { "glGetNamedBufferPointerv", 45, -1 },
947    { "glGetNamedBufferSubData", 45, -1 },
948    { "glCreateFramebuffers", 45, -1 },
949    { "glNamedFramebufferRenderbuffer", 45, -1 },
950    { "glNamedFramebufferParameteri", 45, -1 },
951    { "glNamedFramebufferTexture", 45, -1 },
952    { "glNamedFramebufferTextureLayer", 45, -1 },
953    { "glNamedFramebufferDrawBuffer", 45, -1 },
954    { "glNamedFramebufferDrawBuffers", 45, -1 },
955    { "glNamedFramebufferReadBuffer", 45, -1 },
956    { "glInvalidateNamedFramebufferSubData", 45, -1 },
957    { "glInvalidateNamedFramebufferData", 45, -1 },
958    { "glClearNamedFramebufferiv", 45, -1 },
959    { "glClearNamedFramebufferuiv", 45, -1 },
960    { "glClearNamedFramebufferfv", 45, -1 },
961    { "glClearNamedFramebufferfi", 45, -1 },
962    { "glBlitNamedFramebuffer", 45, -1 },
963    { "glCheckNamedFramebufferStatus", 45, -1 },
964    { "glGetNamedFramebufferParameteriv", 45, -1 },
965    { "glGetNamedFramebufferAttachmentParameteriv", 45, -1 },
966    { "glCreateRenderbuffers", 45, -1 },
967    { "glNamedRenderbufferStorage", 45, -1 },
968    { "glNamedRenderbufferStorageMultisample", 45, -1 },
969    { "glGetNamedRenderbufferParameteriv", 45, -1 },
970    { "glCreateTextures", 45, -1 },
971    { "glTextureStorage1D", 45, -1 },
972    { "glTextureStorage2D", 45, -1 },
973    { "glTextureStorage3D", 45, -1 },
974    { "glTextureSubImage1D", 45, -1 },
975    { "glTextureSubImage2D", 45, -1 },
976    { "glTextureSubImage3D", 45, -1 },
977    { "glBindTextureUnit", 45, -1 },
978    { "glTextureParameterf", 45, -1 },
979    { "glTextureParameterfv", 45, -1 },
980    { "glTextureParameteri", 45, -1 },
981    { "glTextureParameterIiv", 45, -1 },
982    { "glTextureParameterIuiv", 45, -1 },
983    { "glTextureParameteriv", 45, -1 },
984    { "glGetTextureLevelParameterfv", 45, -1 },
985    { "glGetTextureLevelParameteriv", 45, -1 },
986    { "glGetTextureParameterfv", 45, -1 },
987    { "glGetTextureParameterIiv", 45, -1 },
988    { "glGetTextureParameterIuiv", 45, -1 },
989    { "glGetTextureParameteriv", 45, -1 },
990    { "glCopyTextureSubImage1D", 45, -1 },
991    { "glCopyTextureSubImage2D", 45, -1 },
992    { "glCopyTextureSubImage3D", 45, -1 },
993    { "glGetTextureImage", 45, -1 },
994    { "glGetCompressedTextureImage", 45, -1 },
995    { "glCompressedTextureSubImage1D", 45, -1 },
996    { "glCompressedTextureSubImage2D", 45, -1 },
997    { "glCompressedTextureSubImage3D", 45, -1 },
998    { "glGenerateTextureMipmap", 45, -1 },
999    { "glTextureStorage2DMultisample", 45, -1 },
1000    { "glTextureStorage3DMultisample", 45, -1 },
1001    { "glTextureBuffer", 45, -1 },
1002    { "glTextureBufferRange", 45, -1 },
1003    { "glCreateVertexArrays", 45, -1 },
1004    { "glDisableVertexArrayAttrib", 45, -1 },
1005    { "glEnableVertexArrayAttrib", 45, -1 },
1006    { "glVertexArrayElementBuffer", 45, -1 },
1007    { "glVertexArrayVertexBuffer", 45, -1 },
1008    { "glVertexArrayVertexBuffers", 45, -1 },
1009    { "glVertexArrayAttribFormat", 45, -1 },
1010    { "glVertexArrayAttribIFormat", 45, -1 },
1011    { "glVertexArrayAttribLFormat", 45, -1 },
1012    { "glVertexArrayAttribBinding", 45, -1 },
1013    { "glVertexArrayBindingDivisor", 45, -1 },
1014    { "glGetVertexArrayiv", 45, -1 },
1015    { "glGetVertexArrayIndexediv", 45, -1 },
1016    { "glGetVertexArrayIndexed64iv", 45, -1 },
1017    { "glCreateSamplers", 45, -1 },
1018    { "glCreateProgramPipelines", 45, -1 },
1019    { "glCreateQueries", 45, -1 },
1020    { "glGetQueryBufferObjectiv", 45, -1 },
1021    { "glGetQueryBufferObjectuiv", 45, -1 },
1022    { "glGetQueryBufferObjecti64v", 45, -1 },
1023    { "glGetQueryBufferObjectui64v", 45, -1 },
1024 
1025    /* GL_EXT_direct_state_access - GL 1.0 */
1026    { "glMatrixLoadfEXT", 10, -1 },
1027    { "glMatrixLoaddEXT", 10, -1 },
1028    { "glMatrixMultfEXT", 10, -1 },
1029    { "glMatrixMultdEXT", 10, -1 },
1030    { "glMatrixLoadIdentityEXT", 10, -1 },
1031    { "glMatrixRotatefEXT", 10, -1 },
1032    { "glMatrixRotatedEXT", 10, -1 },
1033    { "glMatrixScalefEXT", 10, -1 },
1034    { "glMatrixScaledEXT", 10, -1 },
1035    { "glMatrixTranslatefEXT", 10, -1 },
1036    { "glMatrixTranslatedEXT", 10, -1 },
1037    { "glMatrixOrthoEXT", 10, -1 },
1038    { "glMatrixFrustumEXT", 10, -1 },
1039    { "glMatrixPushEXT", 10, -1 },
1040    { "glMatrixPopEXT", 10, -1 },
1041    /* GL_EXT_direct_state_access - GL 1.1 */
1042    { "glClientAttribDefaultEXT", 11, -1 },
1043    { "glPushClientAttribDefaultEXT", 11, -1 },
1044    { "glTextureParameteriEXT", 11, -1 },
1045    { "glTextureParameterivEXT", 11, -1 },
1046    { "glTextureParameterfEXT", 11, -1 },
1047    { "glTextureParameterfvEXT", 11, -1 },
1048    { "glTextureImage1DEXT", 11, -1 },
1049    { "glTextureImage2DEXT", 11, -1 },
1050    { "glTextureSubImage1DEXT", 11, -1 },
1051    { "glTextureSubImage2DEXT", 11, -1 },
1052    { "glCopyTextureImage1DEXT", 11, -1 },
1053    { "glCopyTextureImage2DEXT", 11, -1 },
1054    { "glCopyTextureSubImage1DEXT", 11, -1 },
1055    { "glCopyTextureSubImage2DEXT", 11, -1 },
1056    { "glGetTextureImageEXT", 11, -1 },
1057    { "glGetTextureParameterfvEXT", 11, -1 },
1058    { "glGetTextureParameterivEXT", 11, -1 },
1059    { "glGetTextureLevelParameterfvEXT", 11, -1 },
1060    { "glGetTextureLevelParameterivEXT", 11, -1 },
1061    /* GL_EXT_direct_state_access - GL 1.2 */
1062    { "glTextureImage3DEXT", 12, -1 },
1063    { "glTextureSubImage3DEXT", 12, -1 },
1064    { "glCopyTextureSubImage3DEXT", 12, -1 },
1065    /* GL_EXT_direct_state_access - GL 1.2.1 */
1066    { "glBindMultiTextureEXT", 12, -1 },
1067    { "glMultiTexCoordPointerEXT", 12, -1 },
1068    { "glMultiTexEnvfEXT", 12, -1 },
1069    { "glMultiTexEnvfvEXT", 12, -1 },
1070    { "glMultiTexEnviEXT", 12, -1 },
1071    { "glMultiTexEnvivEXT", 12, -1 },
1072    { "glMultiTexGendEXT", 12, -1 },
1073    { "glMultiTexGendvEXT", 12, -1 },
1074    { "glMultiTexGenfEXT", 12, -1 },
1075    { "glMultiTexGenfvEXT", 12, -1 },
1076    { "glMultiTexGeniEXT", 12, -1 },
1077    { "glMultiTexGenivEXT", 12, -1 },
1078    { "glGetMultiTexEnvfvEXT", 12, -1 },
1079    { "glGetMultiTexEnvivEXT", 12, -1 },
1080    { "glGetMultiTexGendvEXT", 12, -1 },
1081    { "glGetMultiTexGenfvEXT", 12, -1 },
1082    { "glGetMultiTexGenivEXT", 12, -1 },
1083    { "glMultiTexParameterfEXT", 12, -1 },
1084    { "glMultiTexParameterfvEXT", 12, -1 },
1085    { "glMultiTexParameteriEXT", 12, -1 },
1086    { "glMultiTexParameterivEXT", 12, -1 },
1087    { "glMultiTexImage1DEXT", 12, -1 },
1088    { "glMultiTexImage2DEXT", 12, -1 },
1089    { "glMultiTexSubImage1DEXT", 12, -1 },
1090    { "glMultiTexSubImage2DEXT", 12, -1 },
1091    { "glCopyMultiTexImage1DEXT", 12, -1 },
1092    { "glCopyMultiTexImage2DEXT", 12, -1 },
1093    { "glCopyMultiTexSubImage1DEXT", 12, -1 },
1094    { "glCopyMultiTexSubImage2DEXT", 12, -1 },
1095    { "glGetMultiTexImageEXT", 12, -1 },
1096    { "glGetMultiTexParameterfvEXT", 12, -1 },
1097    { "glGetMultiTexParameterivEXT", 12, -1 },
1098    { "glGetMultiTexLevelParameterfvEXT", 12, -1 },
1099    { "glGetMultiTexLevelParameterivEXT", 12, -1 },
1100    { "glMultiTexImage3DEXT", 12, -1 },
1101    { "glMultiTexSubImage3DEXT", 12, -1 },
1102    { "glCopyMultiTexSubImage3DEXT", 12, -1 },
1103    { "glEnableClientStateIndexedEXT", 12, -1 },
1104    { "glDisableClientStateIndexedEXT", 12, -1 },
1105    { "glGetPointerIndexedvEXT", 12, -1 },
1106    /* GL_EXT_direct_state_access - ARB_vertex_program */
1107    { "glNamedProgramStringEXT", 10, -1 },
1108    { "glNamedProgramLocalParameter4dEXT", 10, -1 },
1109    { "glNamedProgramLocalParameter4dvEXT", 10, -1 },
1110    { "glNamedProgramLocalParameter4fEXT", 10, -1 },
1111    { "glNamedProgramLocalParameter4fvEXT", 10, -1 },
1112    { "glGetNamedProgramLocalParameterdvEXT", 10, -1 },
1113    { "glGetNamedProgramLocalParameterfvEXT", 10, -1 },
1114    { "glGetNamedProgramivEXT", 10, -1 },
1115    { "glGetNamedProgramStringEXT", 10, -1 },
1116    /* GL_EXT_direct_state_access - GL 1.3 */
1117    { "glCompressedTextureImage1DEXT", 13, -1 },
1118    { "glCompressedTextureImage2DEXT", 13, -1 },
1119    { "glCompressedTextureImage3DEXT", 13, -1 },
1120    { "glCompressedTextureSubImage1DEXT", 13, -1 },
1121    { "glCompressedTextureSubImage2DEXT", 13, -1 },
1122    { "glCompressedTextureSubImage3DEXT", 13, -1 },
1123    { "glGetCompressedTextureImageEXT", 13, -1 },
1124    { "glCompressedMultiTexImage1DEXT", 13, -1 },
1125    { "glCompressedMultiTexImage2DEXT", 13, -1 },
1126    { "glCompressedMultiTexImage3DEXT", 13, -1 },
1127    { "glCompressedMultiTexSubImage1DEXT", 13, -1 },
1128    { "glCompressedMultiTexSubImage2DEXT", 13, -1 },
1129    { "glCompressedMultiTexSubImage3DEXT", 13, -1 },
1130    { "glGetCompressedMultiTexImageEXT", 13, -1 },
1131    { "glMatrixLoadTransposefEXT", 13, -1 },
1132    { "glMatrixLoadTransposedEXT", 13, -1 },
1133    { "glMatrixMultTransposefEXT", 13, -1 },
1134    { "glMatrixMultTransposedEXT", 13, -1 },
1135    /* GL_EXT_direct_state_access - GL 1.5 */
1136    { "glNamedBufferDataEXT", 15, -1 },
1137    { "glNamedBufferSubDataEXT", 15, -1 },
1138    { "glMapNamedBufferEXT", 15, -1 },
1139    { "glUnmapNamedBufferEXT", 15, -1 },
1140    { "glGetNamedBufferParameterivEXT", 15, -1 },
1141    { "glGetNamedBufferPointervEXT", 15, -1 },
1142    { "glGetNamedBufferSubDataEXT", 15, -1 },
1143    /* GL_EXT_direct_state_access - GL 2.0 */
1144    /* Added glProgramUniform*EXT functions are aliases */
1145    /* GL_EXT_direct_state_access - GL 2.1 */
1146    /* Added glProgramUniformMAtrix*EXT functions are aliases */
1147    /* GL_EXT_direct_state_access - EXT_texture_buffer_object */
1148    { "glTextureBufferEXT", 10, -1 },
1149    { "glMultiTexBufferEXT", 10, -1 },
1150    /* GL_EXT_direct_state_access - EXT_texture_integer */
1151    { "glTextureParameterIivEXT", 10, -1 },
1152    { "glTextureParameterIuivEXT", 10, -1 },
1153    { "glGetTextureParameterIivEXT", 10, -1 },
1154    { "glGetTextureParameterIuivEXT", 10, -1 },
1155    { "glMultiTexParameterIivEXT", 10, -1 },
1156    { "glMultiTexParameterIuivEXT", 10, -1 },
1157    { "glGetMultiTexParameterIivEXT", 10, -1 },
1158    { "glGetMultiTexParameterIuivEXT", 10, -1 },
1159    /* GL_EXT_direct_state_access - EXT_gpu_shader4 */
1160    /* Added glProgramUniform*u*EXT functions are aliases */
1161    /* GL_EXT_direct_state_access - EXT_gpu_program_parameters */
1162    { "glNamedProgramLocalParameters4fvEXT", 10, -1 },
1163    /* GL_EXT_direct_state_access - GL 3.0 */
1164    { "glNamedRenderbufferStorageEXT", 30, -1 },
1165    { "glGetNamedRenderbufferParameterivEXT", 30, -1 },
1166    { "glNamedRenderbufferStorageMultisampleEXT", 30, -1 },
1167    { "glCheckNamedFramebufferStatusEXT", 30, -1 },
1168    { "glNamedFramebufferTexture1DEXT", 30, -1 },
1169    { "glNamedFramebufferTexture2DEXT", 30, -1 },
1170    { "glNamedFramebufferTexture3DEXT", 30, -1 },
1171    { "glNamedFramebufferRenderbufferEXT", 30, -1 },
1172    { "glGetNamedFramebufferAttachmentParameterivEXT", 30, -1 },
1173    { "glGenerateTextureMipmapEXT", 30, -1 },
1174    { "glGenerateMultiTexMipmapEXT", 30, -1 },
1175    { "glFramebufferDrawBufferEXT", 30, -1 },
1176    { "glFramebufferDrawBuffersEXT", 30, -1 },
1177    { "glFramebufferReadBufferEXT", 30, -1 },
1178    { "glGetFramebufferParameterivEXT", 30, -1 },
1179    { "glNamedCopyBufferSubDataEXT", 30, -1 },
1180    { "glVertexArrayVertexOffsetEXT", 30, -1 },
1181    { "glVertexArrayColorOffsetEXT", 30, -1 },
1182    { "glVertexArrayEdgeFlagOffsetEXT", 30, -1 },
1183    { "glVertexArrayIndexOffsetEXT", 30, -1 },
1184    { "glVertexArrayNormalOffsetEXT", 30, -1 },
1185    { "glVertexArrayTexCoordOffsetEXT", 30, -1 },
1186    { "glVertexArrayMultiTexCoordOffsetEXT", 30, -1 },
1187    { "glVertexArrayFogCoordOffsetEXT", 30, -1 },
1188    { "glVertexArraySecondaryColorOffsetEXT", 30, -1 },
1189    { "glVertexArrayVertexAttribOffsetEXT", 30, -1 },
1190    { "glVertexArrayVertexAttribIOffsetEXT", 30, -1 },
1191    { "glEnableVertexArrayEXT", 30, -1 },
1192    { "glDisableVertexArrayEXT", 30, -1 },
1193    { "glEnableVertexArrayAttribEXT", 30, -1 },
1194    { "glDisableVertexArrayAttribEXT", 30, -1 },
1195    { "glGetVertexArrayIntegervEXT", 30, -1 },
1196    { "glGetVertexArrayPointervEXT", 30, -1 },
1197    { "glGetVertexArrayIntegeri_vEXT", 30, -1 },
1198    { "glGetVertexArrayPointeri_vEXT", 30, -1 },
1199    { "glMapNamedBufferRangeEXT", 30, -1 },
1200    { "glFlushMappedNamedBufferRangeEXT", 30, -1 },
1201 
1202    /* GL_ARB_internalformat_query */
1203    { "glGetInternalformativ", 30, -1 },
1204 
1205    /* GL_ARB_internalformat_query */
1206    { "glGetInternalformati64v", 30, -1 },
1207 
1208    /* GL_ARB_multi_bind */
1209    { "glBindBuffersBase", 44, -1 },
1210    { "glBindBuffersRange", 44, -1 },
1211    { "glBindTextures", 44, -1 },
1212    { "glBindSamplers", 44, -1 },
1213    { "glBindImageTextures", 44, -1 },
1214    { "glBindVertexBuffers", 44, -1 },
1215 
1216    /* GL_ARB_shading_language_include */
1217    { "glNamedStringARB", 20, -1 },
1218    { "glDeleteNamedStringARB", 20, -1 },
1219    { "glCompileShaderIncludeARB", 20, -1 },
1220    { "glIsNamedStringARB", 20, -1 },
1221    { "glGetNamedStringARB", 20, -1 },
1222    { "glGetNamedStringivARB", 20, -1 },
1223 
1224    /* GL_KHR_debug/GL_ARB_debug_output */
1225    { "glPushDebugGroup", 11, -1 },
1226    { "glPopDebugGroup", 11, -1 },
1227    { "glDebugMessageCallback", 11, -1 },
1228    { "glDebugMessageControl", 11, -1 },
1229    { "glDebugMessageInsert", 11, -1 },
1230    { "glGetDebugMessageLog", 11, -1 },
1231    { "glGetObjectLabel", 11, -1 },
1232    { "glGetObjectPtrLabel", 11, -1 },
1233    { "glObjectLabel", 11, -1 },
1234    { "glObjectPtrLabel", 11, -1 },
1235    /* aliased versions checked above */
1236    //{ "glDebugMessageControlARB", 11, -1 },
1237    //{ "glDebugMessageInsertARB", 11, -1 },
1238    //{ "glDebugMessageCallbackARB", 11, -1 },
1239    //{ "glGetDebugMessageLogARB", 11, -1 },
1240 
1241    /* GL_AMD_performance_monitor */
1242    { "glGetPerfMonitorGroupsAMD", 11, -1 },
1243    { "glGetPerfMonitorCountersAMD", 11, -1 },
1244    { "glGetPerfMonitorGroupStringAMD", 11, -1 },
1245    { "glGetPerfMonitorCounterStringAMD", 11, -1 },
1246    { "glGetPerfMonitorCounterInfoAMD", 11, -1 },
1247    { "glGenPerfMonitorsAMD", 11, -1 },
1248    { "glDeletePerfMonitorsAMD", 11, -1 },
1249    { "glSelectPerfMonitorCountersAMD", 11, -1 },
1250    { "glBeginPerfMonitorAMD", 11, -1 },
1251    { "glEndPerfMonitorAMD", 11, -1 },
1252    { "glGetPerfMonitorCounterDataAMD", 11, -1 },
1253 
1254    /* GL_INTEL_performance_query */
1255    { "glGetFirstPerfQueryIdINTEL", 30, -1 },
1256    { "glGetNextPerfQueryIdINTEL", 30, -1 },
1257    { "glGetPerfQueryIdByNameINTEL", 30, -1 },
1258    { "glGetPerfQueryInfoINTEL", 30, -1 },
1259    { "glGetPerfCounterInfoINTEL", 30, -1 },
1260    { "glCreatePerfQueryINTEL", 30, -1 },
1261    { "glDeletePerfQueryINTEL", 30, -1 },
1262    { "glBeginPerfQueryINTEL", 30, -1 },
1263    { "glEndPerfQueryINTEL", 30, -1 },
1264    { "glGetPerfQueryDataINTEL", 30, -1 },
1265 
1266    /* GL_NV_vdpau_interop */
1267    { "glVDPAUInitNV", 11, -1 },
1268    { "glVDPAUFiniNV", 11, -1 },
1269    { "glVDPAURegisterVideoSurfaceNV", 11, -1 },
1270    { "glVDPAURegisterOutputSurfaceNV", 11, -1 },
1271    { "glVDPAUIsSurfaceNV", 11, -1 },
1272    { "glVDPAUUnregisterSurfaceNV", 11, -1 },
1273    { "glVDPAUGetSurfaceivNV", 11, -1 },
1274    { "glVDPAUSurfaceAccessNV", 11, -1 },
1275    { "glVDPAUMapSurfacesNV", 11, -1 },
1276    { "glVDPAUUnmapSurfacesNV", 11, -1 },
1277 
1278    /* GL_ARB_buffer_storage */
1279    { "glBufferStorage", 43, -1 },
1280    { "glNamedBufferStorageEXT", 43, -1 },
1281 
1282    /* GL_ARB_clear_texture */
1283    { "glClearTexImage", 13, -1 },
1284    { "glClearTexSubImage", 13, -1 },
1285 
1286    /* GL_ARB_clip_control */
1287    { "glClipControl", 45, -1 },
1288 
1289    /* GL_ARB_compute_shader */
1290    { "glDispatchCompute", 43, -1 },
1291    { "glDispatchComputeIndirect", 43, -1 },
1292 
1293    /* GL_ARB_compute_variable_group_size */
1294    { "glDispatchComputeGroupSizeARB", 43, -1 },
1295 
1296    /* GL_EXT_polygon_offset_clamp */
1297    { "glPolygonOffsetClampEXT", 11, -1 },
1298 
1299    /* GL_ARB_get_texture_sub_image */
1300    { "glGetTextureSubImage", 20, -1 },
1301    { "glGetCompressedTextureSubImage", 20, -1 },
1302 
1303    /* GL_GREMEDY_string_marker */
1304    { "glStringMarkerGREMEDY", 15, -1 },
1305 
1306    /* GL_EXT_window_rectangles */
1307    { "glWindowRectanglesEXT", 30, -1 },
1308 
1309    /* GL_KHR_blend_equation_advanced */
1310    { "glBlendBarrierKHR", 20, -1 },
1311 
1312    /* GL_ARB_sparse_buffer */
1313    { "glBufferPageCommitmentARB", 43, -1 },
1314    { "glNamedBufferPageCommitmentARB", 43, -1 },
1315    { "glNamedBufferPageCommitmentEXT", 43, -1 },
1316 
1317    /* GL_ARB_bindless_texture */
1318    { "glGetTextureHandleARB", 40, -1 },
1319    { "glGetTextureSamplerHandleARB", 40, -1 },
1320    { "glMakeTextureHandleResidentARB", 40, -1 },
1321    { "glMakeTextureHandleNonResidentARB", 40, -1 },
1322    { "glIsTextureHandleResidentARB", 40, -1 },
1323    { "glGetImageHandleARB", 40, -1 },
1324    { "glMakeImageHandleResidentARB", 40, -1 },
1325    { "glMakeImageHandleNonResidentARB", 40, -1 },
1326    { "glIsImageHandleResidentARB", 40, -1 },
1327    { "glUniformHandleui64ARB", 40, -1 },
1328    { "glUniformHandleui64vARB", 40, -1 },
1329    { "glProgramUniformHandleui64ARB", 40, -1 },
1330    { "glProgramUniformHandleui64vARB", 40, -1 },
1331    { "glVertexAttribL1ui64ARB", 40, -1 },
1332    { "glVertexAttribL1ui64vARB", 40, -1 },
1333    { "glGetVertexAttribLui64vARB", 40, -1 },
1334 
1335    /* GL_EXT_external_objects */
1336    { "glGetUnsignedBytevEXT", 45, -1 },
1337    { "glGetUnsignedBytei_vEXT", 45, -1 },
1338    { "glDeleteMemoryObjectsEXT", 45, -1 },
1339    { "glIsMemoryObjectEXT", 45, -1 },
1340    { "glCreateMemoryObjectsEXT", 45, -1 },
1341    { "glMemoryObjectParameterivEXT", 45, -1 },
1342    { "glGetMemoryObjectParameterivEXT", 45, -1 },
1343    { "glTexStorageMem2DEXT", 45, -1 },
1344    { "glTexStorageMem2DMultisampleEXT", 45, -1 },
1345    { "glTexStorageMem3DEXT", 45, -1 },
1346    { "glTexStorageMem3DMultisampleEXT", 45, -1 },
1347    { "glBufferStorageMemEXT", 45, -1 },
1348    { "glTextureStorageMem2DEXT", 45, -1 },
1349    { "glTextureStorageMem2DMultisampleEXT", 45, -1 },
1350    { "glTextureStorageMem3DEXT", 45, -1 },
1351    { "glTextureStorageMem3DMultisampleEXT", 45, -1 },
1352    { "glNamedBufferStorageMemEXT", 45, -1 },
1353    { "glTexStorageMem1DEXT", 45, -1 },
1354    { "glTextureStorageMem1DEXT", 45, -1 },
1355    { "glGenSemaphoresEXT", 45, -1 },
1356    { "glDeleteSemaphoresEXT", 45, -1 },
1357    { "glIsSemaphoreEXT", 45, -1 },
1358    { "glSemaphoreParameterui64vEXT", 45, -1 },
1359    { "glGetSemaphoreParameterui64vEXT", 45, -1 },
1360    { "glWaitSemaphoreEXT", 45, -1 },
1361    { "glSignalSemaphoreEXT", 45, -1 },
1362 
1363    /* GL_EXT_external_objects_fd */
1364    { "glImportMemoryFdEXT", 45, -1 },
1365    { "glImportSemaphoreFdEXT", 45, -1 },
1366 
1367    /* GL_ARB_gl_spirv */
1368    { "glSpecializeShaderARB", 45, -1 },
1369 
1370    /* GL_EXT_shader_framebuffer_fetch_non_coherent */
1371    { "glFramebufferFetchBarrierEXT", 20, -1 },
1372 
1373    /* GL_NV_conservative_raster */
1374    { "glSubpixelPrecisionBiasNV", 10, -1 },
1375 
1376    /* GL_NV_conservative_raster_dilate */
1377    { "glConservativeRasterParameterfNV", 10, -1 },
1378 
1379    /* GL_NV_conservative_raster_pre_snap_triangles */
1380    { "glConservativeRasterParameteriNV", 10, -1 },
1381 
1382    /* GL_ARB_sample_locations */
1383    { "glFramebufferSampleLocationsfvARB", 30, -1 },
1384    { "glNamedFramebufferSampleLocationsfvARB", 30, -1 },
1385    { "glEvaluateDepthValuesARB", 30, -1 },
1386 
1387    /* GL_ARB_indirect_parameters */
1388    { "glMultiDrawArraysIndirectCountARB", 11, -1 },
1389    { "glMultiDrawElementsIndirectCountARB", 11, -1 },
1390 
1391    /* GL_AMD_framebuffer_multisample_advanced */
1392    { "glRenderbufferStorageMultisampleAdvancedAMD", 11, -1 },
1393    { "glNamedRenderbufferStorageMultisampleAdvancedAMD", 11, -1 },
1394 
1395    { "glMaxShaderCompilerThreadsKHR", 11, -1 },
1396 
1397    /* GL_EXT_shader_image_load_store */
1398    { "glBindImageTextureEXT", 30, -1 },
1399 
1400    /* GL_MESA_framebuffer_flip_y */
1401    { "glFramebufferParameteriMESA", 43, -1 },
1402    { "glGetFramebufferParameterivMESA", 43, -1 },
1403 
1404    /* GL_ARB_gpu_shader_int64 */
1405    { "glUniform1i64ARB", 40, -1 },
1406    { "glUniform2i64ARB", 40, -1 },
1407    { "glUniform3i64ARB", 40, -1 },
1408    { "glUniform4i64ARB", 40, -1 },
1409    { "glUniform1ui64ARB", 40, -1 },
1410    { "glUniform2ui64ARB", 40, -1 },
1411    { "glUniform3ui64ARB", 40, -1 },
1412    { "glUniform4ui64ARB", 40, -1 },
1413    { "glUniform1i64vARB", 40, -1 },
1414    { "glUniform2i64vARB", 40, -1 },
1415    { "glUniform3i64vARB", 40, -1 },
1416    { "glUniform4i64vARB", 40, -1 },
1417    { "glUniform1ui64vARB", 40, -1 },
1418    { "glUniform2ui64vARB", 40, -1 },
1419    { "glUniform3ui64vARB", 40, -1 },
1420    { "glUniform4ui64vARB", 40, -1 },
1421    { "glGetUniformi64vARB", 40, -1 },
1422    { "glGetUniformui64vARB", 40, -1 },
1423    { "glGetnUniformi64vARB", 40, -1 },
1424    { "glGetnUniformui64vARB", 40, -1 },
1425    { "glProgramUniform1i64ARB", 40, -1 },
1426    { "glProgramUniform2i64ARB", 40, -1 },
1427    { "glProgramUniform3i64ARB", 40, -1 },
1428    { "glProgramUniform4i64ARB", 40, -1 },
1429    { "glProgramUniform1ui64ARB", 40, -1 },
1430    { "glProgramUniform2ui64ARB", 40, -1 },
1431    { "glProgramUniform3ui64ARB", 40, -1 },
1432    { "glProgramUniform4ui64ARB", 40, -1 },
1433    { "glProgramUniform1i64vARB", 40, -1 },
1434    { "glProgramUniform2i64vARB", 40, -1 },
1435    { "glProgramUniform3i64vARB", 40, -1 },
1436    { "glProgramUniform4i64vARB", 40, -1 },
1437    { "glProgramUniform1ui64vARB", 40, -1 },
1438    { "glProgramUniform2ui64vARB", 40, -1 },
1439    { "glProgramUniform3ui64vARB", 40, -1 },
1440    { "glProgramUniform4ui64vARB", 40, -1 },
1441 
1442    /* GL_NV_viewport_swizzle */
1443    { "glViewportSwizzleNV", 11, -1 },
1444 
1445    { "glInternalBufferSubDataCopyMESA", 11, -1 },
1446 
1447    { NULL, 0, -1 }
1448 };
1449 
1450 const struct function gl_compatibility_functions_possible[] = {
1451    { "glNewList", 10, _gloffset_NewList },
1452    { "glEndList", 10, _gloffset_EndList },
1453    { "glCallList", 10, _gloffset_CallList },
1454    { "glCallLists", 10, _gloffset_CallLists },
1455    { "glDeleteLists", 10, _gloffset_DeleteLists },
1456    { "glGenLists", 10, _gloffset_GenLists },
1457    { "glListBase", 10, _gloffset_ListBase },
1458    { "glBegin", 10, _gloffset_Begin },
1459    { "glBitmap", 10, _gloffset_Bitmap },
1460    { "glColor3b", 10, _gloffset_Color3b },
1461    { "glColor3bv", 10, _gloffset_Color3bv },
1462    { "glColor3d", 10, _gloffset_Color3d },
1463    { "glColor3dv", 10, _gloffset_Color3dv },
1464    { "glColor3f", 10, _gloffset_Color3f },
1465    { "glColor3fv", 10, _gloffset_Color3fv },
1466    { "glColor3i", 10, _gloffset_Color3i },
1467    { "glColor3iv", 10, _gloffset_Color3iv },
1468    { "glColor3s", 10, _gloffset_Color3s },
1469    { "glColor3sv", 10, _gloffset_Color3sv },
1470    { "glColor3ub", 10, _gloffset_Color3ub },
1471    { "glColor3ubv", 10, _gloffset_Color3ubv },
1472    { "glColor3ui", 10, _gloffset_Color3ui },
1473    { "glColor3uiv", 10, _gloffset_Color3uiv },
1474    { "glColor3us", 10, _gloffset_Color3us },
1475    { "glColor3usv", 10, _gloffset_Color3usv },
1476    { "glColor4b", 10, _gloffset_Color4b },
1477    { "glColor4bv", 10, _gloffset_Color4bv },
1478    { "glColor4d", 10, _gloffset_Color4d },
1479    { "glColor4dv", 10, _gloffset_Color4dv },
1480    { "glColor4f", 10, _gloffset_Color4f },
1481    { "glColor4fv", 10, _gloffset_Color4fv },
1482    { "glColor4i", 10, _gloffset_Color4i },
1483    { "glColor4iv", 10, _gloffset_Color4iv },
1484    { "glColor4s", 10, _gloffset_Color4s },
1485    { "glColor4sv", 10, _gloffset_Color4sv },
1486    { "glColor4ub", 10, _gloffset_Color4ub },
1487    { "glColor4ubv", 10, _gloffset_Color4ubv },
1488    { "glColor4ui", 10, _gloffset_Color4ui },
1489    { "glColor4uiv", 10, _gloffset_Color4uiv },
1490    { "glColor4us", 10, _gloffset_Color4us },
1491    { "glColor4usv", 10, _gloffset_Color4usv },
1492    { "glEdgeFlag", 10, _gloffset_EdgeFlag },
1493    { "glEdgeFlagv", 10, _gloffset_EdgeFlagv },
1494    { "glEnd", 10, _gloffset_End },
1495    { "glIndexd", 10, _gloffset_Indexd },
1496    { "glIndexdv", 10, _gloffset_Indexdv },
1497    { "glIndexf", 10, _gloffset_Indexf },
1498    { "glIndexfv", 10, _gloffset_Indexfv },
1499    { "glIndexi", 10, _gloffset_Indexi },
1500    { "glIndexiv", 10, _gloffset_Indexiv },
1501    { "glIndexs", 10, _gloffset_Indexs },
1502    { "glIndexsv", 10, _gloffset_Indexsv },
1503    { "glNormal3b", 10, _gloffset_Normal3b },
1504    { "glNormal3bv", 10, _gloffset_Normal3bv },
1505    { "glNormal3d", 10, _gloffset_Normal3d },
1506    { "glNormal3dv", 10, _gloffset_Normal3dv },
1507    { "glNormal3f", 10, _gloffset_Normal3f },
1508    { "glNormal3fv", 10, _gloffset_Normal3fv },
1509    { "glNormal3i", 10, _gloffset_Normal3i },
1510    { "glNormal3iv", 10, _gloffset_Normal3iv },
1511    { "glNormal3s", 10, _gloffset_Normal3s },
1512    { "glNormal3sv", 10, _gloffset_Normal3sv },
1513    { "glRasterPos2d", 10, _gloffset_RasterPos2d },
1514    { "glRasterPos2dv", 10, _gloffset_RasterPos2dv },
1515    { "glRasterPos2f", 10, _gloffset_RasterPos2f },
1516    { "glRasterPos2fv", 10, _gloffset_RasterPos2fv },
1517    { "glRasterPos2i", 10, _gloffset_RasterPos2i },
1518    { "glRasterPos2iv", 10, _gloffset_RasterPos2iv },
1519    { "glRasterPos2s", 10, _gloffset_RasterPos2s },
1520    { "glRasterPos2sv", 10, _gloffset_RasterPos2sv },
1521    { "glRasterPos3d", 10, _gloffset_RasterPos3d },
1522    { "glRasterPos3dv", 10, _gloffset_RasterPos3dv },
1523    { "glRasterPos3f", 10, _gloffset_RasterPos3f },
1524    { "glRasterPos3fv", 10, _gloffset_RasterPos3fv },
1525    { "glRasterPos3i", 10, _gloffset_RasterPos3i },
1526    { "glRasterPos3iv", 10, _gloffset_RasterPos3iv },
1527    { "glRasterPos3s", 10, _gloffset_RasterPos3s },
1528    { "glRasterPos3sv", 10, _gloffset_RasterPos3sv },
1529    { "glRasterPos4d", 10, _gloffset_RasterPos4d },
1530    { "glRasterPos4dv", 10, _gloffset_RasterPos4dv },
1531    { "glRasterPos4f", 10, _gloffset_RasterPos4f },
1532    { "glRasterPos4fv", 10, _gloffset_RasterPos4fv },
1533    { "glRasterPos4i", 10, _gloffset_RasterPos4i },
1534    { "glRasterPos4iv", 10, _gloffset_RasterPos4iv },
1535    { "glRasterPos4s", 10, _gloffset_RasterPos4s },
1536    { "glRasterPos4sv", 10, _gloffset_RasterPos4sv },
1537    { "glRectd", 10, _gloffset_Rectd },
1538    { "glRectdv", 10, _gloffset_Rectdv },
1539    { "glRectf", 10, _gloffset_Rectf },
1540    { "glRectfv", 10, _gloffset_Rectfv },
1541    { "glRecti", 10, _gloffset_Recti },
1542    { "glRectiv", 10, _gloffset_Rectiv },
1543    { "glRects", 10, _gloffset_Rects },
1544    { "glRectsv", 10, _gloffset_Rectsv },
1545    { "glTexCoord1d", 10, _gloffset_TexCoord1d },
1546    { "glTexCoord1dv", 10, _gloffset_TexCoord1dv },
1547    { "glTexCoord1f", 10, _gloffset_TexCoord1f },
1548    { "glTexCoord1fv", 10, _gloffset_TexCoord1fv },
1549    { "glTexCoord1i", 10, _gloffset_TexCoord1i },
1550    { "glTexCoord1iv", 10, _gloffset_TexCoord1iv },
1551    { "glTexCoord1s", 10, _gloffset_TexCoord1s },
1552    { "glTexCoord1sv", 10, _gloffset_TexCoord1sv },
1553    { "glTexCoord2d", 10, _gloffset_TexCoord2d },
1554    { "glTexCoord2dv", 10, _gloffset_TexCoord2dv },
1555    { "glTexCoord2f", 10, _gloffset_TexCoord2f },
1556    { "glTexCoord2fv", 10, _gloffset_TexCoord2fv },
1557    { "glTexCoord2i", 10, _gloffset_TexCoord2i },
1558    { "glTexCoord2iv", 10, _gloffset_TexCoord2iv },
1559    { "glTexCoord2s", 10, _gloffset_TexCoord2s },
1560    { "glTexCoord2sv", 10, _gloffset_TexCoord2sv },
1561    { "glTexCoord3d", 10, _gloffset_TexCoord3d },
1562    { "glTexCoord3dv", 10, _gloffset_TexCoord3dv },
1563    { "glTexCoord3f", 10, _gloffset_TexCoord3f },
1564    { "glTexCoord3fv", 10, _gloffset_TexCoord3fv },
1565    { "glTexCoord3i", 10, _gloffset_TexCoord3i },
1566    { "glTexCoord3iv", 10, _gloffset_TexCoord3iv },
1567    { "glTexCoord3s", 10, _gloffset_TexCoord3s },
1568    { "glTexCoord3sv", 10, _gloffset_TexCoord3sv },
1569    { "glTexCoord4d", 10, _gloffset_TexCoord4d },
1570    { "glTexCoord4dv", 10, _gloffset_TexCoord4dv },
1571    { "glTexCoord4f", 10, _gloffset_TexCoord4f },
1572    { "glTexCoord4fv", 10, _gloffset_TexCoord4fv },
1573    { "glTexCoord4i", 10, _gloffset_TexCoord4i },
1574    { "glTexCoord4iv", 10, _gloffset_TexCoord4iv },
1575    { "glTexCoord4s", 10, _gloffset_TexCoord4s },
1576    { "glTexCoord4sv", 10, _gloffset_TexCoord4sv },
1577    { "glVertex2d", 10, _gloffset_Vertex2d },
1578    { "glVertex2dv", 10, _gloffset_Vertex2dv },
1579    { "glVertex2f", 10, _gloffset_Vertex2f },
1580    { "glVertex2fv", 10, _gloffset_Vertex2fv },
1581    { "glVertex2i", 10, _gloffset_Vertex2i },
1582    { "glVertex2iv", 10, _gloffset_Vertex2iv },
1583    { "glVertex2s", 10, _gloffset_Vertex2s },
1584    { "glVertex2sv", 10, _gloffset_Vertex2sv },
1585    { "glVertex3d", 10, _gloffset_Vertex3d },
1586    { "glVertex3dv", 10, _gloffset_Vertex3dv },
1587    { "glVertex3f", 10, _gloffset_Vertex3f },
1588    { "glVertex3fv", 10, _gloffset_Vertex3fv },
1589    { "glVertex3i", 10, _gloffset_Vertex3i },
1590    { "glVertex3iv", 10, _gloffset_Vertex3iv },
1591    { "glVertex3s", 10, _gloffset_Vertex3s },
1592    { "glVertex3sv", 10, _gloffset_Vertex3sv },
1593    { "glVertex4d", 10, _gloffset_Vertex4d },
1594    { "glVertex4dv", 10, _gloffset_Vertex4dv },
1595    { "glVertex4f", 10, _gloffset_Vertex4f },
1596    { "glVertex4fv", 10, _gloffset_Vertex4fv },
1597    { "glVertex4i", 10, _gloffset_Vertex4i },
1598    { "glVertex4iv", 10, _gloffset_Vertex4iv },
1599    { "glVertex4s", 10, _gloffset_Vertex4s },
1600    { "glVertex4sv", 10, _gloffset_Vertex4sv },
1601    { "glClipPlane", 10, _gloffset_ClipPlane },
1602    { "glColorMaterial", 10, _gloffset_ColorMaterial },
1603    { "glFogf", 10, _gloffset_Fogf },
1604    { "glFogfv", 10, _gloffset_Fogfv },
1605    { "glFogi", 10, _gloffset_Fogi },
1606    { "glFogiv", 10, _gloffset_Fogiv },
1607    { "glLightf", 10, _gloffset_Lightf },
1608    { "glLightfv", 10, _gloffset_Lightfv },
1609    { "glLighti", 10, _gloffset_Lighti },
1610    { "glLightiv", 10, _gloffset_Lightiv },
1611    { "glLightModelf", 10, _gloffset_LightModelf },
1612    { "glLightModelfv", 10, _gloffset_LightModelfv },
1613    { "glLightModeli", 10, _gloffset_LightModeli },
1614    { "glLightModeliv", 10, _gloffset_LightModeliv },
1615    { "glLineStipple", 10, _gloffset_LineStipple },
1616    { "glMaterialf", 10, _gloffset_Materialf },
1617    { "glMaterialfv", 10, _gloffset_Materialfv },
1618    { "glMateriali", 10, _gloffset_Materiali },
1619    { "glMaterialiv", 10, _gloffset_Materialiv },
1620    { "glPolygonStipple", 10, _gloffset_PolygonStipple },
1621    { "glShadeModel", 10, _gloffset_ShadeModel },
1622    { "glTexEnvf", 10, _gloffset_TexEnvf },
1623    { "glTexEnvfv", 10, _gloffset_TexEnvfv },
1624    { "glTexEnvi", 10, _gloffset_TexEnvi },
1625    { "glTexEnviv", 10, _gloffset_TexEnviv },
1626    { "glTexGend", 10, _gloffset_TexGend },
1627    { "glTexGendv", 10, _gloffset_TexGendv },
1628    { "glTexGenf", 10, _gloffset_TexGenf },
1629    { "glTexGenfv", 10, _gloffset_TexGenfv },
1630    { "glTexGeni", 10, _gloffset_TexGeni },
1631    { "glTexGeniv", 10, _gloffset_TexGeniv },
1632    { "glFeedbackBuffer", 10, _gloffset_FeedbackBuffer },
1633    { "glSelectBuffer", 10, _gloffset_SelectBuffer },
1634    { "glRenderMode", 10, _gloffset_RenderMode },
1635    { "glInitNames", 10, _gloffset_InitNames },
1636    { "glLoadName", 10, _gloffset_LoadName },
1637    { "glPassThrough", 10, _gloffset_PassThrough },
1638    { "glPopName", 10, _gloffset_PopName },
1639    { "glPushName", 10, _gloffset_PushName },
1640    { "glClearAccum", 10, _gloffset_ClearAccum },
1641    { "glClearIndex", 10, _gloffset_ClearIndex },
1642    { "glIndexMask", 10, _gloffset_IndexMask },
1643    { "glAccum", 10, _gloffset_Accum },
1644    { "glPopAttrib", 10, _gloffset_PopAttrib },
1645    { "glPushAttrib", 10, _gloffset_PushAttrib },
1646    { "glMap1d", 10, _gloffset_Map1d },
1647    { "glMap1f", 10, _gloffset_Map1f },
1648    { "glMap2d", 10, _gloffset_Map2d },
1649    { "glMap2f", 10, _gloffset_Map2f },
1650    { "glMapGrid1d", 10, _gloffset_MapGrid1d },
1651    { "glMapGrid1f", 10, _gloffset_MapGrid1f },
1652    { "glMapGrid2d", 10, _gloffset_MapGrid2d },
1653    { "glMapGrid2f", 10, _gloffset_MapGrid2f },
1654    { "glEvalCoord1d", 10, _gloffset_EvalCoord1d },
1655    { "glEvalCoord1dv", 10, _gloffset_EvalCoord1dv },
1656    { "glEvalCoord1f", 10, _gloffset_EvalCoord1f },
1657    { "glEvalCoord1fv", 10, _gloffset_EvalCoord1fv },
1658    { "glEvalCoord2d", 10, _gloffset_EvalCoord2d },
1659    { "glEvalCoord2dv", 10, _gloffset_EvalCoord2dv },
1660    { "glEvalCoord2f", 10, _gloffset_EvalCoord2f },
1661    { "glEvalCoord2fv", 10, _gloffset_EvalCoord2fv },
1662    { "glEvalMesh1", 10, _gloffset_EvalMesh1 },
1663    { "glEvalPoint1", 10, _gloffset_EvalPoint1 },
1664    { "glEvalMesh2", 10, _gloffset_EvalMesh2 },
1665    { "glEvalPoint2", 10, _gloffset_EvalPoint2 },
1666    { "glAlphaFunc", 10, _gloffset_AlphaFunc },
1667    { "glPixelZoom", 10, _gloffset_PixelZoom },
1668    { "glPixelTransferf", 10, _gloffset_PixelTransferf },
1669    { "glPixelTransferi", 10, _gloffset_PixelTransferi },
1670    { "glPixelMapfv", 10, _gloffset_PixelMapfv },
1671    { "glPixelMapuiv", 10, _gloffset_PixelMapuiv },
1672    { "glPixelMapusv", 10, _gloffset_PixelMapusv },
1673    { "glCopyPixels", 10, _gloffset_CopyPixels },
1674    { "glDrawPixels", 10, _gloffset_DrawPixels },
1675    { "glGetClipPlane", 10, _gloffset_GetClipPlane },
1676    { "glGetLightfv", 10, _gloffset_GetLightfv },
1677    { "glGetLightiv", 10, _gloffset_GetLightiv },
1678    { "glGetMapdv", 10, _gloffset_GetMapdv },
1679    { "glGetMapfv", 10, _gloffset_GetMapfv },
1680    { "glGetMapiv", 10, _gloffset_GetMapiv },
1681    { "glGetMaterialfv", 10, _gloffset_GetMaterialfv },
1682    { "glGetMaterialiv", 10, _gloffset_GetMaterialiv },
1683    { "glGetPixelMapfv", 10, _gloffset_GetPixelMapfv },
1684    { "glGetPixelMapuiv", 10, _gloffset_GetPixelMapuiv },
1685    { "glGetPixelMapusv", 10, _gloffset_GetPixelMapusv },
1686    { "glGetPolygonStipple", 10, _gloffset_GetPolygonStipple },
1687    { "glGetTexEnvfv", 10, _gloffset_GetTexEnvfv },
1688    { "glGetTexEnviv", 10, _gloffset_GetTexEnviv },
1689    { "glGetTexGendv", 10, _gloffset_GetTexGendv },
1690    { "glGetTexGenfv", 10, _gloffset_GetTexGenfv },
1691    { "glGetTexGeniv", 10, _gloffset_GetTexGeniv },
1692    { "glIsList", 10, _gloffset_IsList },
1693    { "glFrustum", 10, _gloffset_Frustum },
1694    { "glLoadIdentity", 10, _gloffset_LoadIdentity },
1695    { "glLoadMatrixf", 10, _gloffset_LoadMatrixf },
1696    { "glLoadMatrixd", 10, _gloffset_LoadMatrixd },
1697    { "glMatrixMode", 10, _gloffset_MatrixMode },
1698    { "glMultMatrixf", 10, _gloffset_MultMatrixf },
1699    { "glMultMatrixd", 10, _gloffset_MultMatrixd },
1700    { "glOrtho", 10, _gloffset_Ortho },
1701    { "glPopMatrix", 10, _gloffset_PopMatrix },
1702    { "glPushMatrix", 10, _gloffset_PushMatrix },
1703    { "glRotated", 10, _gloffset_Rotated },
1704    { "glRotatef", 10, _gloffset_Rotatef },
1705    { "glScaled", 10, _gloffset_Scaled },
1706    { "glScalef", 10, _gloffset_Scalef },
1707    { "glTranslated", 10, _gloffset_Translated },
1708    { "glTranslatef", 10, _gloffset_Translatef },
1709    { "glArrayElement", 10, _gloffset_ArrayElement },
1710    { "glColorPointer", 10, _gloffset_ColorPointer },
1711    { "glDisableClientState", 10, _gloffset_DisableClientState },
1712    { "glEdgeFlagPointer", 10, _gloffset_EdgeFlagPointer },
1713    { "glEnableClientState", 10, _gloffset_EnableClientState },
1714    { "glIndexPointer", 10, _gloffset_IndexPointer },
1715    { "glInterleavedArrays", 10, _gloffset_InterleavedArrays },
1716    { "glNormalPointer", 10, _gloffset_NormalPointer },
1717    { "glTexCoordPointer", 10, _gloffset_TexCoordPointer },
1718    { "glVertexPointer", 10, _gloffset_VertexPointer },
1719    { "glAreTexturesResident", 10, _gloffset_AreTexturesResident },
1720    { "glPrioritizeTextures", 10, _gloffset_PrioritizeTextures },
1721    { "glIndexub", 10, _gloffset_Indexub },
1722    { "glIndexubv", 10, _gloffset_Indexubv },
1723    { "glPopClientAttrib", 10, _gloffset_PopClientAttrib },
1724    { "glPushClientAttrib", 10, _gloffset_PushClientAttrib },
1725    { "glColorTable", 10, _gloffset_ColorTable },
1726    { "glColorTableParameterfv", 10, _gloffset_ColorTableParameterfv },
1727    { "glColorTableParameteriv", 10, _gloffset_ColorTableParameteriv },
1728    { "glCopyColorTable", 10, _gloffset_CopyColorTable },
1729    { "glGetColorTable", 10, _gloffset_GetColorTable },
1730    { "glGetColorTableParameterfv", 10, _gloffset_GetColorTableParameterfv },
1731    { "glGetColorTableParameteriv", 10, _gloffset_GetColorTableParameteriv },
1732    { "glColorSubTable", 10, _gloffset_ColorSubTable },
1733    { "glCopyColorSubTable", 10, _gloffset_CopyColorSubTable },
1734    { "glConvolutionFilter1D", 10, _gloffset_ConvolutionFilter1D },
1735    { "glConvolutionFilter2D", 10, _gloffset_ConvolutionFilter2D },
1736    { "glConvolutionParameterf", 10, _gloffset_ConvolutionParameterf },
1737    { "glConvolutionParameterfv", 10, _gloffset_ConvolutionParameterfv },
1738    { "glConvolutionParameteri", 10, _gloffset_ConvolutionParameteri },
1739    { "glConvolutionParameteriv", 10, _gloffset_ConvolutionParameteriv },
1740    { "glCopyConvolutionFilter1D", 10, _gloffset_CopyConvolutionFilter1D },
1741    { "glCopyConvolutionFilter2D", 10, _gloffset_CopyConvolutionFilter2D },
1742    { "glGetConvolutionFilter", 10, _gloffset_GetConvolutionFilter },
1743    { "glGetConvolutionParameterfv", 10, _gloffset_GetConvolutionParameterfv },
1744    { "glGetConvolutionParameteriv", 10, _gloffset_GetConvolutionParameteriv },
1745    { "glGetSeparableFilter", 10, _gloffset_GetSeparableFilter },
1746    { "glSeparableFilter2D", 10, _gloffset_SeparableFilter2D },
1747    { "glGetHistogram", 10, _gloffset_GetHistogram },
1748    { "glGetHistogramParameterfv", 10, _gloffset_GetHistogramParameterfv },
1749    { "glGetHistogramParameteriv", 10, _gloffset_GetHistogramParameteriv },
1750    { "glGetMinmax", 10, _gloffset_GetMinmax },
1751    { "glGetMinmaxParameterfv", 10, _gloffset_GetMinmaxParameterfv },
1752    { "glGetMinmaxParameteriv", 10, _gloffset_GetMinmaxParameteriv },
1753    { "glHistogram", 10, _gloffset_Histogram },
1754    { "glMinmax", 10, _gloffset_Minmax },
1755    { "glResetHistogram", 10, _gloffset_ResetHistogram },
1756    { "glResetMinmax", 10, _gloffset_ResetMinmax },
1757    { "glClientActiveTexture", 10, _gloffset_ClientActiveTexture },
1758    { "glMultiTexCoord1d", 10, _gloffset_MultiTexCoord1d },
1759    { "glMultiTexCoord1dv", 10, _gloffset_MultiTexCoord1dv },
1760    { "glMultiTexCoord1f", 10, _gloffset_MultiTexCoord1fARB },
1761    { "glMultiTexCoord1fv", 10, _gloffset_MultiTexCoord1fvARB },
1762    { "glMultiTexCoord1i", 10, _gloffset_MultiTexCoord1i },
1763    { "glMultiTexCoord1iv", 10, _gloffset_MultiTexCoord1iv },
1764    { "glMultiTexCoord1s", 10, _gloffset_MultiTexCoord1s },
1765    { "glMultiTexCoord1sv", 10, _gloffset_MultiTexCoord1sv },
1766    { "glMultiTexCoord2d", 10, _gloffset_MultiTexCoord2d },
1767    { "glMultiTexCoord2dv", 10, _gloffset_MultiTexCoord2dv },
1768    { "glMultiTexCoord2f", 10, _gloffset_MultiTexCoord2fARB },
1769    { "glMultiTexCoord2fv", 10, _gloffset_MultiTexCoord2fvARB },
1770    { "glMultiTexCoord2i", 10, _gloffset_MultiTexCoord2i },
1771    { "glMultiTexCoord2iv", 10, _gloffset_MultiTexCoord2iv },
1772    { "glMultiTexCoord2s", 10, _gloffset_MultiTexCoord2s },
1773    { "glMultiTexCoord2sv", 10, _gloffset_MultiTexCoord2sv },
1774    { "glMultiTexCoord3d", 10, _gloffset_MultiTexCoord3d },
1775    { "glMultiTexCoord3dv", 10, _gloffset_MultiTexCoord3dv },
1776    { "glMultiTexCoord3f", 10, _gloffset_MultiTexCoord3fARB },
1777    { "glMultiTexCoord3fv", 10, _gloffset_MultiTexCoord3fvARB },
1778    { "glMultiTexCoord3i", 10, _gloffset_MultiTexCoord3i },
1779    { "glMultiTexCoord3iv", 10, _gloffset_MultiTexCoord3iv },
1780    { "glMultiTexCoord3s", 10, _gloffset_MultiTexCoord3s },
1781    { "glMultiTexCoord3sv", 10, _gloffset_MultiTexCoord3sv },
1782    { "glMultiTexCoord4d", 10, _gloffset_MultiTexCoord4d },
1783    { "glMultiTexCoord4dv", 10, _gloffset_MultiTexCoord4dv },
1784    { "glMultiTexCoord4f", 10, _gloffset_MultiTexCoord4fARB },
1785    { "glMultiTexCoord4fv", 10, _gloffset_MultiTexCoord4fvARB },
1786    { "glMultiTexCoord4i", 10, _gloffset_MultiTexCoord4i },
1787    { "glMultiTexCoord4iv", 10, _gloffset_MultiTexCoord4iv },
1788    { "glMultiTexCoord4s", 10, _gloffset_MultiTexCoord4s },
1789    { "glMultiTexCoord4sv", 10, _gloffset_MultiTexCoord4sv },
1790    { "glLoadTransposeMatrixf", 10, -1 },
1791    { "glLoadTransposeMatrixd", 10, -1 },
1792    { "glMultTransposeMatrixf", 10, -1 },
1793    { "glMultTransposeMatrixd", 10, -1 },
1794    { "glFogCoordf", 10, -1 },
1795    { "glFogCoordfv", 10, -1 },
1796    { "glFogCoordd", 10, -1 },
1797    { "glFogCoorddv", 10, -1 },
1798    { "glFogCoordPointer", 10, -1 },
1799    { "glSecondaryColor3b", 10, -1 },
1800    { "glSecondaryColor3bv", 10, -1 },
1801    { "glSecondaryColor3d", 10, -1 },
1802    { "glSecondaryColor3dv", 10, -1 },
1803    { "glSecondaryColor3f", 10, -1 },
1804    { "glSecondaryColor3fv", 10, -1 },
1805    { "glSecondaryColor3i", 10, -1 },
1806    { "glSecondaryColor3iv", 10, -1 },
1807    { "glSecondaryColor3s", 10, -1 },
1808    { "glSecondaryColor3sv", 10, -1 },
1809    { "glSecondaryColor3ub", 10, -1 },
1810    { "glSecondaryColor3ubv", 10, -1 },
1811    { "glSecondaryColor3ui", 10, -1 },
1812    { "glSecondaryColor3uiv", 10, -1 },
1813    { "glSecondaryColor3us", 10, -1 },
1814    { "glSecondaryColor3usv", 10, -1 },
1815    { "glSecondaryColorPointer", 10, -1 },
1816    { "glWindowPos2d", 10, -1 },
1817    { "glWindowPos2dv", 10, -1 },
1818    { "glWindowPos2f", 10, -1 },
1819    { "glWindowPos2fv", 10, -1 },
1820    { "glWindowPos2i", 10, -1 },
1821    { "glWindowPos2iv", 10, -1 },
1822    { "glWindowPos2s", 10, -1 },
1823    { "glWindowPos2sv", 10, -1 },
1824    { "glWindowPos3d", 10, -1 },
1825    { "glWindowPos3dv", 10, -1 },
1826    { "glWindowPos3f", 10, -1 },
1827    { "glWindowPos3fv", 10, -1 },
1828    { "glWindowPos3i", 10, -1 },
1829    { "glWindowPos3iv", 10, -1 },
1830    { "glWindowPos3s", 10, -1 },
1831    { "glWindowPos3sv", 10, -1 },
1832    { "glProgramStringARB", 10, -1 },
1833    { "glProgramEnvParameter4dARB", 10, -1 },
1834    { "glProgramEnvParameter4dvARB", 10, -1 },
1835    { "glProgramEnvParameter4fARB", 10, -1 },
1836    { "glProgramEnvParameter4fvARB", 10, -1 },
1837    { "glProgramLocalParameter4dARB", 10, -1 },
1838    { "glProgramLocalParameter4dvARB", 10, -1 },
1839    { "glProgramLocalParameter4fARB", 10, -1 },
1840    { "glProgramLocalParameter4fvARB", 10, -1 },
1841    { "glGetProgramEnvParameterdvARB", 10, -1 },
1842    { "glGetProgramEnvParameterfvARB", 10, -1 },
1843    { "glGetProgramLocalParameterdvARB", 10, -1 },
1844    { "glGetProgramLocalParameterfvARB", 10, -1 },
1845    { "glGetProgramivARB", 10, -1 },
1846    { "glGetProgramStringARB", 10, -1 },
1847    { "glColorPointerEXT", 10, -1 },
1848    { "glEdgeFlagPointerEXT", 10, -1 },
1849    { "glIndexPointerEXT", 10, -1 },
1850    { "glNormalPointerEXT", 10, -1 },
1851    { "glTexCoordPointerEXT", 10, -1 },
1852    { "glVertexPointerEXT", 10, -1 },
1853    { "glLockArraysEXT", 10, -1 },
1854    { "glUnlockArraysEXT", 10, -1 },
1855    { "glWindowPos4dMESA", 10, -1 },
1856    { "glWindowPos4dvMESA", 10, -1 },
1857    { "glWindowPos4fMESA", 10, -1 },
1858    { "glWindowPos4fvMESA", 10, -1 },
1859    { "glWindowPos4iMESA", 10, -1 },
1860    { "glWindowPos4ivMESA", 10, -1 },
1861    { "glWindowPos4sMESA", 10, -1 },
1862    { "glWindowPos4svMESA", 10, -1 },
1863    { "glBindProgramNV", 10, -1 },
1864    { "glDeleteProgramsNV", 10, -1 },
1865    { "glGenProgramsNV", 10, -1 },
1866    { "glIsProgramNV", 10, -1 },
1867    { "glVertexAttrib1sNV", 10, -1 },
1868    { "glVertexAttrib1svNV", 10, -1 },
1869    { "glVertexAttrib2sNV", 10, -1 },
1870    { "glVertexAttrib2svNV", 10, -1 },
1871    { "glVertexAttrib3sNV", 10, -1 },
1872    { "glVertexAttrib3svNV", 10, -1 },
1873    { "glVertexAttrib4sNV", 10, -1 },
1874    { "glVertexAttrib4svNV", 10, -1 },
1875    { "glVertexAttrib1fNV", 10, -1 },
1876    { "glVertexAttrib1fvNV", 10, -1 },
1877    { "glVertexAttrib2fNV", 10, -1 },
1878    { "glVertexAttrib2fvNV", 10, -1 },
1879    { "glVertexAttrib3fNV", 10, -1 },
1880    { "glVertexAttrib3fvNV", 10, -1 },
1881    { "glVertexAttrib4fNV", 10, -1 },
1882    { "glVertexAttrib4fvNV", 10, -1 },
1883    { "glVertexAttrib1dNV", 10, -1 },
1884    { "glVertexAttrib1dvNV", 10, -1 },
1885    { "glVertexAttrib2dNV", 10, -1 },
1886    { "glVertexAttrib2dvNV", 10, -1 },
1887    { "glVertexAttrib3dNV", 10, -1 },
1888    { "glVertexAttrib3dvNV", 10, -1 },
1889    { "glVertexAttrib4dNV", 10, -1 },
1890    { "glVertexAttrib4dvNV", 10, -1 },
1891    { "glVertexAttrib4ubNV", 10, -1 },
1892    { "glVertexAttrib4ubvNV", 10, -1 },
1893    { "glVertexAttribs1svNV", 10, -1 },
1894    { "glVertexAttribs2svNV", 10, -1 },
1895    { "glVertexAttribs3svNV", 10, -1 },
1896    { "glVertexAttribs4svNV", 10, -1 },
1897    { "glVertexAttribs1fvNV", 10, -1 },
1898    { "glVertexAttribs2fvNV", 10, -1 },
1899    { "glVertexAttribs3fvNV", 10, -1 },
1900    { "glVertexAttribs4fvNV", 10, -1 },
1901    { "glVertexAttribs1dvNV", 10, -1 },
1902    { "glVertexAttribs2dvNV", 10, -1 },
1903    { "glVertexAttribs3dvNV", 10, -1 },
1904    { "glVertexAttribs4dvNV", 10, -1 },
1905    { "glVertexAttribs4ubvNV", 10, -1 },
1906    { "glGenFragmentShadersATI", 10, -1 },
1907    { "glBindFragmentShaderATI", 10, -1 },
1908    { "glDeleteFragmentShaderATI", 10, -1 },
1909    { "glBeginFragmentShaderATI", 10, -1 },
1910    { "glEndFragmentShaderATI", 10, -1 },
1911    { "glPassTexCoordATI", 10, -1 },
1912    { "glSampleMapATI", 10, -1 },
1913    { "glColorFragmentOp1ATI", 10, -1 },
1914    { "glColorFragmentOp2ATI", 10, -1 },
1915    { "glColorFragmentOp3ATI", 10, -1 },
1916    { "glAlphaFragmentOp1ATI", 10, -1 },
1917    { "glAlphaFragmentOp2ATI", 10, -1 },
1918    { "glAlphaFragmentOp3ATI", 10, -1 },
1919    { "glSetFragmentShaderConstantATI", 10, -1 },
1920    { "glActiveStencilFaceEXT", 10, -1 },
1921    { "glStencilFuncSeparateATI", 10, -1 },
1922    { "glProgramEnvParameters4fvEXT", 10, -1 },
1923    { "glProgramLocalParameters4fvEXT", 10, -1 },
1924    { "glPrimitiveRestartNV", 10, -1 },
1925 
1926    /* GL_NV_half_float */
1927    { "glVertex2hNV", 13, -1 },
1928    { "glVertex2hvNV", 13, -1 },
1929    { "glVertex3hNV", 13, -1 },
1930    { "glVertex3hvNV", 13, -1 },
1931    { "glVertex4hNV", 13, -1 },
1932    { "glVertex4hvNV", 13, -1 },
1933    { "glNormal3hNV", 13, -1 },
1934    { "glNormal3hvNV", 13, -1 },
1935    { "glColor3hNV", 13, -1 },
1936    { "glColor3hvNV", 13, -1 },
1937    { "glColor4hNV", 13, -1 },
1938    { "glColor4hvNV", 13, -1 },
1939    { "glTexCoord1hNV", 13, -1 },
1940    { "glTexCoord1hvNV", 13, -1 },
1941    { "glTexCoord2hNV", 13, -1 },
1942    { "glTexCoord2hvNV", 13, -1 },
1943    { "glTexCoord3hNV", 13, -1 },
1944    { "glTexCoord3hvNV", 13, -1 },
1945    { "glTexCoord4hNV", 13, -1 },
1946    { "glTexCoord4hvNV", 13, -1 },
1947    { "glMultiTexCoord1hNV", 13, -1 },
1948    { "glMultiTexCoord1hvNV", 13, -1 },
1949    { "glMultiTexCoord2hNV", 13, -1 },
1950    { "glMultiTexCoord2hvNV", 13, -1 },
1951    { "glMultiTexCoord3hNV", 13, -1 },
1952    { "glMultiTexCoord3hvNV", 13, -1 },
1953    { "glMultiTexCoord4hNV", 13, -1 },
1954    { "glMultiTexCoord4hvNV", 13, -1 },
1955    { "glFogCoordhNV", 13, -1 },
1956    { "glFogCoordhvNV", 13, -1 },
1957    { "glSecondaryColor3hNV", 13, -1 },
1958    { "glSecondaryColor3hvNV", 13, -1 },
1959 
1960    { NULL, 0, -1 }
1961 };
1962 
1963 const struct function gl_core_functions_possible[] = {
1964    /* GL_ARB_ES3_2_compatibility */
1965    { "glPrimitiveBoundingBoxARB", 45, -1 },
1966 
1967    /* GL_ARB_gl_spirv */
1968    { "glSpecializeShaderARB", 45, -1 },
1969 
1970    { NULL, 0, -1 }
1971 };
1972 
1973 const struct function gles11_functions_possible[] = {
1974    { "glActiveTexture", 11, _gloffset_ActiveTexture },
1975    { "glAlphaFunc", 11, _gloffset_AlphaFunc },
1976    { "glAlphaFuncx", 11, -1 },
1977    { "glBindBuffer", 11, -1 },
1978    { "glBindFramebufferOES", 11, -1 },
1979    { "glBindRenderbufferOES", 11, -1 },
1980    { "glBindTexture", 11, _gloffset_BindTexture },
1981    { "glBlendEquationOES", 11, _gloffset_BlendEquation },
1982    { "glBlendEquationSeparateOES", 11, -1 },
1983    { "glBlendFunc", 11, _gloffset_BlendFunc },
1984    { "glBlendFuncSeparateOES", 11, -1 },
1985    { "glBufferData", 11, -1 },
1986    { "glBufferSubData", 11, -1 },
1987    { "glCheckFramebufferStatusOES", 11, -1 },
1988    { "glClear", 11, _gloffset_Clear },
1989    { "glClearColor", 11, _gloffset_ClearColor },
1990    { "glClearColorx", 11, -1 },
1991    { "glClearDepthf", 11, -1 },
1992    { "glClearDepthx", 11, -1 },
1993    { "glClearStencil", 11, _gloffset_ClearStencil },
1994    { "glClientActiveTexture", 11, _gloffset_ClientActiveTexture },
1995    { "glClipPlanef", 11, -1 },
1996    { "glClipPlanex", 11, -1 },
1997    { "glColor4f", 11, _gloffset_Color4f },
1998    { "glColor4ub", 11, _gloffset_Color4ub },
1999    { "glColor4x", 11, -1 },
2000    { "glColorMask", 11, _gloffset_ColorMask },
2001    { "glColorPointer", 11, _gloffset_ColorPointer },
2002    { "glCompressedTexImage2D", 11, -1 },
2003    { "glCompressedTexSubImage2D", 11, -1 },
2004    { "glCopyTexImage2D", 11, _gloffset_CopyTexImage2D },
2005    { "glCopyTexSubImage2D", 11, _gloffset_CopyTexSubImage2D },
2006    { "glCullFace", 11, _gloffset_CullFace },
2007    { "glDeleteBuffers", 11, -1 },
2008    { "glDeleteFramebuffersOES", 11, -1 },
2009    { "glDeleteRenderbuffersOES", 11, -1 },
2010    { "glDeleteTextures", 11, _gloffset_DeleteTextures },
2011    { "glDepthFunc", 11, _gloffset_DepthFunc },
2012    { "glDepthMask", 11, _gloffset_DepthMask },
2013    { "glDepthRangef", 11, -1 },
2014    { "glDepthRangex", 11, -1 },
2015    { "glDisable", 11, _gloffset_Disable },
2016    { "glDiscardFramebufferEXT", 11, -1 },
2017    { "glDisableClientState", 11, _gloffset_DisableClientState },
2018    { "glDrawArrays", 11, _gloffset_DrawArrays },
2019    { "glDrawElements", 11, _gloffset_DrawElements },
2020    { "glDrawTexfOES", 11, -1 },
2021    { "glDrawTexfvOES", 11, -1 },
2022    { "glDrawTexiOES", 11, -1 },
2023    { "glDrawTexivOES", 11, -1 },
2024    { "glDrawTexsOES", 11, -1 },
2025    { "glDrawTexsvOES", 11, -1 },
2026    { "glDrawTexxOES", 11, -1 },
2027    { "glDrawTexxvOES", 11, -1 },
2028    { "glEGLImageTargetRenderbufferStorageOES", 11, -1 },
2029    { "glEGLImageTargetTexture2DOES", 11, -1 },
2030    { "glEnable", 11, _gloffset_Enable },
2031    { "glEnableClientState", 11, _gloffset_EnableClientState },
2032    { "glFinish", 11, _gloffset_Finish },
2033    { "glFlush", 11, _gloffset_Flush },
2034    { "glFlushMappedBufferRangeEXT", 11, -1 },
2035    { "glFogf", 11, _gloffset_Fogf },
2036    { "glFogfv", 11, _gloffset_Fogfv },
2037    { "glFogx", 11, -1 },
2038    { "glFogxv", 11, -1 },
2039    { "glFramebufferRenderbufferOES", 11, -1 },
2040    { "glFramebufferTexture2DOES", 11, -1 },
2041    { "glFrontFace", 11, _gloffset_FrontFace },
2042    { "glFrustumf", 11, -1 },
2043    { "glFrustumx", 11, -1 },
2044    { "glGenBuffers", 11, -1 },
2045    { "glGenFramebuffersOES", 11, -1 },
2046    { "glGenRenderbuffersOES", 11, -1 },
2047    { "glGenTextures", 11, _gloffset_GenTextures },
2048    { "glGenerateMipmapOES", 11, -1 },
2049    { "glGetBooleanv", 11, _gloffset_GetBooleanv },
2050    { "glGetBufferParameteriv", 11, -1 },
2051    { "glGetBufferPointervOES", 11, -1 },
2052    { "glGetClipPlanef", 11, -1 },
2053    { "glGetClipPlanex", 11, -1 },
2054    { "glGetError", 11, _gloffset_GetError },
2055    { "glGetFixedv", 11, -1 },
2056    { "glGetFloatv", 11, _gloffset_GetFloatv },
2057    { "glGetFramebufferAttachmentParameterivOES", 11, -1 },
2058    { "glGetIntegerv", 11, _gloffset_GetIntegerv },
2059    { "glGetLightfv", 11, _gloffset_GetLightfv },
2060    { "glGetLightxv", 11, -1 },
2061    { "glGetMaterialfv", 11, _gloffset_GetMaterialfv },
2062    { "glGetMaterialxv", 11, -1 },
2063    // We check for the aliased -KHR version in GLES 1.1
2064 // { "glGetPointerv", 11, _gloffset_GetPointerv },
2065    { "glGetRenderbufferParameterivOES", 11, -1 },
2066    { "glGetString", 11, _gloffset_GetString },
2067    { "glGetTexEnvfv", 11, _gloffset_GetTexEnvfv },
2068    { "glGetTexEnviv", 11, _gloffset_GetTexEnviv },
2069    { "glGetTexEnvxv", 11, -1 },
2070    { "glGetTexGenfvOES", 11, _gloffset_GetTexGenfv },
2071    { "glGetTexGenivOES", 11, _gloffset_GetTexGeniv },
2072    { "glGetTexGenxvOES", 11, -1 },
2073    { "glGetTexParameterfv", 11, _gloffset_GetTexParameterfv },
2074    { "glGetTexParameteriv", 11, _gloffset_GetTexParameteriv },
2075    { "glGetTexParameterxv", 11, -1 },
2076    { "glHint", 11, _gloffset_Hint },
2077    { "glIsBuffer", 11, -1 },
2078    { "glIsEnabled", 11, _gloffset_IsEnabled },
2079    { "glIsFramebufferOES", 11, -1 },
2080    { "glIsRenderbufferOES", 11, -1 },
2081    { "glIsTexture", 11, _gloffset_IsTexture },
2082    { "glLightModelf", 11, _gloffset_LightModelf },
2083    { "glLightModelfv", 11, _gloffset_LightModelfv },
2084    { "glLightModelx", 11, -1 },
2085    { "glLightModelxv", 11, -1 },
2086    { "glLightf", 11, _gloffset_Lightf },
2087    { "glLightfv", 11, _gloffset_Lightfv },
2088    { "glLightx", 11, -1 },
2089    { "glLightxv", 11, -1 },
2090    { "glLineWidth", 11, _gloffset_LineWidth },
2091    { "glLineWidthx", 11, -1 },
2092    { "glLoadIdentity", 11, _gloffset_LoadIdentity },
2093    { "glLoadMatrixf", 11, _gloffset_LoadMatrixf },
2094    { "glLoadMatrixx", 11, -1 },
2095    { "glLogicOp", 11, _gloffset_LogicOp },
2096    { "glMapBufferOES", 11, -1 },
2097    { "glMapBufferRangeEXT", 11, -1 },
2098    { "glMaterialf", 11, _gloffset_Materialf },
2099    { "glMaterialfv", 11, _gloffset_Materialfv },
2100    { "glMaterialx", 11, -1 },
2101    { "glMaterialxv", 11, -1 },
2102    { "glMatrixMode", 11, _gloffset_MatrixMode },
2103    { "glMultMatrixf", 11, _gloffset_MultMatrixf },
2104    { "glMultMatrixx", 11, -1 },
2105    { "glMultiDrawArraysEXT", 11, -1 },
2106    { "glMultiDrawElementsEXT", 11, -1 },
2107    { "glMultiTexCoord4f", 11, _gloffset_MultiTexCoord4fARB },
2108    { "glMultiTexCoord4x", 11, -1 },
2109    { "glNormal3f", 11, _gloffset_Normal3f },
2110    { "glNormal3x", 11, -1 },
2111    { "glNormalPointer", 11, _gloffset_NormalPointer },
2112    { "glOrthof", 11, -1 },
2113    { "glOrthox", 11, -1 },
2114    { "glPixelStorei", 11, _gloffset_PixelStorei },
2115    { "glPointParameterf", 11, -1 },
2116    { "glPointParameterfv", 11, -1 },
2117    { "glPointParameterx", 11, -1 },
2118    { "glPointParameterxv", 11, -1 },
2119    { "glPointSize", 11, _gloffset_PointSize },
2120    { "glPointSizePointerOES", 11, -1 },
2121    { "glPointSizex", 11, -1 },
2122    { "glPolygonOffset", 11, _gloffset_PolygonOffset },
2123    { "glPolygonOffsetx", 11, -1 },
2124    { "glPopMatrix", 11, _gloffset_PopMatrix },
2125    { "glPushMatrix", 11, _gloffset_PushMatrix },
2126    { "glQueryMatrixxOES", 11, -1 },
2127    { "glReadPixels", 11, _gloffset_ReadPixels },
2128    { "glRenderbufferStorageOES", 11, -1 },
2129    { "glRotatef", 11, _gloffset_Rotatef },
2130    { "glRotatex", 11, -1 },
2131    { "glSampleCoverage", 11, -1 },
2132    { "glSampleCoveragex", 11, -1 },
2133    { "glScalef", 11, _gloffset_Scalef },
2134    { "glScalex", 11, -1 },
2135    { "glScissor", 11, _gloffset_Scissor },
2136    { "glShadeModel", 11, _gloffset_ShadeModel },
2137    { "glStencilFunc", 11, _gloffset_StencilFunc },
2138    { "glStencilMask", 11, _gloffset_StencilMask },
2139    { "glStencilOp", 11, _gloffset_StencilOp },
2140    { "glTexCoordPointer", 11, _gloffset_TexCoordPointer },
2141    { "glTexEnvf", 11, _gloffset_TexEnvf },
2142    { "glTexEnvfv", 11, _gloffset_TexEnvfv },
2143    { "glTexEnvi", 11, _gloffset_TexEnvi },
2144    { "glTexEnviv", 11, _gloffset_TexEnviv },
2145    { "glTexEnvx", 11, -1 },
2146    { "glTexEnvxv", 11, -1 },
2147    { "glTexGenfOES", 11, _gloffset_TexGenf },
2148    { "glTexGenfvOES", 11, _gloffset_TexGenfv },
2149    { "glTexGeniOES", 11, _gloffset_TexGeni },
2150    { "glTexGenivOES", 11, _gloffset_TexGeniv },
2151    { "glTexGenxOES", 11, -1 },
2152    { "glTexGenxvOES", 11, -1 },
2153    { "glTexImage2D", 11, _gloffset_TexImage2D },
2154    { "glTexParameterf", 11, _gloffset_TexParameterf },
2155    { "glTexParameterfv", 11, _gloffset_TexParameterfv },
2156    { "glTexParameteri", 11, _gloffset_TexParameteri },
2157    { "glTexParameteriv", 11, _gloffset_TexParameteriv },
2158    { "glTexParameterx", 11, -1 },
2159    { "glTexParameterxv", 11, -1 },
2160    { "glTexSubImage2D", 11, _gloffset_TexSubImage2D },
2161    { "glTranslatef", 11, _gloffset_Translatef },
2162    { "glTranslatex", 11, -1 },
2163    { "glUnmapBufferOES", 11, -1 },
2164    { "glVertexPointer", 11, _gloffset_VertexPointer },
2165    { "glViewport", 11, _gloffset_Viewport },
2166 
2167    /* GL_KHR_debug */
2168    { "glPushDebugGroupKHR", 11, -1 },
2169    { "glPopDebugGroupKHR", 11, -1 },
2170    { "glDebugMessageCallbackKHR", 11, -1 },
2171    { "glDebugMessageControlKHR", 11, -1 },
2172    { "glDebugMessageInsertKHR", 11, -1 },
2173    { "glGetDebugMessageLogKHR", 11, -1 },
2174    { "glGetObjectLabelKHR", 11, -1 },
2175    { "glGetObjectPtrLabelKHR", 11, -1 },
2176    { "glGetPointervKHR", 11, _gloffset_GetPointerv },
2177    { "glObjectLabelKHR", 11, -1 },
2178    { "glObjectPtrLabelKHR", 11, -1 },
2179 
2180    /* GL_EXT_polygon_offset_clamp */
2181    { "glPolygonOffsetClampEXT", 11, -1 },
2182 
2183    /* GL_NV_conservative_raster */
2184    { "glSubpixelPrecisionBiasNV", 20, -1 },
2185 
2186    /* GL_NV_conservative_raster_dilate */
2187    { "glConservativeRasterParameterfNV", 20, -1 },
2188 
2189    /* GL_NV_conservative_raster_pre_snap_triangles */
2190    { "glConservativeRasterParameteriNV", 20, -1 },
2191 
2192    { NULL, 0, -1 }
2193 };
2194 
2195 const struct function gles2_functions_possible[] = {
2196    { "glActiveTexture", 20, _gloffset_ActiveTexture },
2197    { "glAttachShader", 20, -1 },
2198    { "glBindAttribLocation", 20, -1 },
2199    { "glBindBuffer", 20, -1 },
2200    { "glBindFramebuffer", 20, -1 },
2201    { "glBindRenderbuffer", 20, -1 },
2202    { "glBindTexture", 20, _gloffset_BindTexture },
2203    { "glBindVertexArrayOES", 20, -1 },
2204    { "glBlendColor", 20, _gloffset_BlendColor },
2205    { "glBlendEquation", 20, _gloffset_BlendEquation },
2206    { "glBlendEquationSeparate", 20, -1 },
2207    { "glBlendFunc", 20, _gloffset_BlendFunc },
2208    { "glBlendFuncSeparate", 20, -1 },
2209    { "glBufferData", 20, -1 },
2210    { "glBufferSubData", 20, -1 },
2211    { "glCheckFramebufferStatus", 20, -1 },
2212    { "glClear", 20, _gloffset_Clear },
2213    { "glClearColor", 20, _gloffset_ClearColor },
2214    { "glClearDepthf", 20, -1 },
2215    { "glClearStencil", 20, _gloffset_ClearStencil },
2216    { "glColorMask", 20, _gloffset_ColorMask },
2217    { "glCompileShader", 20, -1 },
2218    { "glCompressedTexImage2D", 20, -1 },
2219    { "glCompressedTexImage3DOES", 20, -1 },
2220    { "glCompressedTexSubImage2D", 20, -1 },
2221    { "glCompressedTexSubImage3DOES", 20, -1 },
2222    { "glCopyTexImage2D", 20, _gloffset_CopyTexImage2D },
2223    { "glCopyTexSubImage2D", 20, _gloffset_CopyTexSubImage2D },
2224    { "glCopyTexSubImage3DOES", 20, _gloffset_CopyTexSubImage3D },
2225    { "glCreateProgram", 20, -1 },
2226    { "glCreateShader", 20, -1 },
2227    { "glCullFace", 20, _gloffset_CullFace },
2228    { "glDeleteBuffers", 20, -1 },
2229    { "glDeleteFramebuffers", 20, -1 },
2230    { "glDeleteProgram", 20, -1 },
2231    { "glDeleteRenderbuffers", 20, -1 },
2232    { "glDeleteShader", 20, -1 },
2233    { "glDeleteTextures", 20, _gloffset_DeleteTextures },
2234    { "glDeleteVertexArraysOES", 20, -1 },
2235    { "glDepthFunc", 20, _gloffset_DepthFunc },
2236    { "glDepthMask", 20, _gloffset_DepthMask },
2237    { "glDepthRangef", 20, -1 },
2238    { "glDetachShader", 20, -1 },
2239    { "glDisable", 20, _gloffset_Disable },
2240    { "glDiscardFramebufferEXT", 20, -1 },
2241    { "glDisableVertexAttribArray", 20, -1 },
2242    { "glDrawArrays", 20, _gloffset_DrawArrays },
2243    { "glDrawBuffersNV", 20, -1 },
2244    { "glDrawElements", 20, _gloffset_DrawElements },
2245    { "glEGLImageTargetRenderbufferStorageOES", 20, -1 },
2246    { "glEGLImageTargetTexture2DOES", 20, -1 },
2247    { "glEnable", 20, _gloffset_Enable },
2248    { "glEnableVertexAttribArray", 20, -1 },
2249    { "glFinish", 20, _gloffset_Finish },
2250    { "glFlush", 20, _gloffset_Flush },
2251    { "glFlushMappedBufferRangeEXT", 20, -1 },
2252    { "glFramebufferRenderbuffer", 20, -1 },
2253    { "glFramebufferTexture2D", 20, -1 },
2254    { "glFramebufferTexture3DOES", 20, -1 },
2255    { "glFrontFace", 20, _gloffset_FrontFace },
2256    { "glGenBuffers", 20, -1 },
2257    { "glGenFramebuffers", 20, -1 },
2258    { "glGenRenderbuffers", 20, -1 },
2259    { "glGenTextures", 20, _gloffset_GenTextures },
2260    { "glGenVertexArraysOES", 20, -1 },
2261    { "glGenerateMipmap", 20, -1 },
2262    { "glGetActiveAttrib", 20, -1 },
2263    { "glGetActiveUniform", 20, -1 },
2264    { "glGetAttachedShaders", 20, -1 },
2265    { "glGetAttribLocation", 20, -1 },
2266    { "glGetBooleanv", 20, _gloffset_GetBooleanv },
2267    { "glGetBufferParameteriv", 20, -1 },
2268    { "glGetBufferPointervOES", 20, -1 },
2269    { "glGetError", 20, _gloffset_GetError },
2270    { "glGetFloatv", 20, _gloffset_GetFloatv },
2271    { "glGetFramebufferAttachmentParameteriv", 20, -1 },
2272    { "glGetIntegerv", 20, _gloffset_GetIntegerv },
2273    { "glGetProgramInfoLog", 20, -1 },
2274    { "glGetProgramiv", 20, -1 },
2275    { "glGetRenderbufferParameteriv", 20, -1 },
2276    { "glGetShaderInfoLog", 20, -1 },
2277    { "glGetShaderPrecisionFormat", 20, -1 },
2278    { "glGetShaderSource", 20, -1 },
2279    { "glGetShaderiv", 20, -1 },
2280    { "glGetString", 20, _gloffset_GetString },
2281    { "glGetTexParameterfv", 20, _gloffset_GetTexParameterfv },
2282    { "glGetTexParameteriv", 20, _gloffset_GetTexParameteriv },
2283    { "glGetUniformLocation", 20, -1 },
2284    { "glGetUniformfv", 20, -1 },
2285    { "glGetUniformiv", 20, -1 },
2286    { "glGetVertexAttribPointerv", 20, -1 },
2287    { "glGetVertexAttribfv", 20, -1 },
2288    { "glGetVertexAttribiv", 20, -1 },
2289    { "glHint", 20, _gloffset_Hint },
2290    { "glIsBuffer", 20, -1 },
2291    { "glIsEnabled", 20, _gloffset_IsEnabled },
2292    { "glIsFramebuffer", 20, -1 },
2293    { "glIsProgram", 20, -1 },
2294    { "glIsRenderbuffer", 20, -1 },
2295    { "glIsShader", 20, -1 },
2296    { "glIsTexture", 20, _gloffset_IsTexture },
2297    { "glIsVertexArrayOES", 20, -1 },
2298    { "glLineWidth", 20, _gloffset_LineWidth },
2299    { "glLinkProgram", 20, -1 },
2300    { "glMapBufferOES", 20, -1 },
2301    { "glMapBufferRangeEXT", 20, -1 },
2302    { "glMultiDrawArraysEXT", 20, -1 },
2303    { "glMultiDrawElementsEXT", 20, -1 },
2304    { "glPixelStorei", 20, _gloffset_PixelStorei },
2305    { "glPolygonOffset", 20, _gloffset_PolygonOffset },
2306    { "glReadBufferNV", 20, _gloffset_ReadBuffer },
2307    { "glReadPixels", 20, _gloffset_ReadPixels },
2308    { "glReleaseShaderCompiler", 20, -1 },
2309    { "glRenderbufferStorage", 20, -1 },
2310    { "glSampleCoverage", 20, -1 },
2311    { "glScissor", 20, _gloffset_Scissor },
2312    { "glShaderBinary", 20, -1 },
2313    { "glShaderSource", 20, -1 },
2314    { "glStencilFunc", 20, _gloffset_StencilFunc },
2315    { "glStencilFuncSeparate", 20, -1 },
2316    { "glStencilMask", 20, _gloffset_StencilMask },
2317    { "glStencilMaskSeparate", 20, -1 },
2318    { "glStencilOp", 20, _gloffset_StencilOp },
2319    { "glStencilOpSeparate", 20, -1 },
2320    { "glTexImage2D", 20, _gloffset_TexImage2D },
2321    { "glTexImage3DOES", 20, _gloffset_TexImage3D },
2322    { "glTexParameterf", 20, _gloffset_TexParameterf },
2323    { "glTexParameterfv", 20, _gloffset_TexParameterfv },
2324    { "glTexParameteri", 20, _gloffset_TexParameteri },
2325    { "glTexParameteriv", 20, _gloffset_TexParameteriv },
2326    { "glTexSubImage2D", 20, _gloffset_TexSubImage2D },
2327    { "glTexSubImage3DOES", 20, _gloffset_TexSubImage3D },
2328    { "glUniform1f", 20, -1 },
2329    { "glUniform1fv", 20, -1 },
2330    { "glUniform1i", 20, -1 },
2331    { "glUniform1iv", 20, -1 },
2332    { "glUniform2f", 20, -1 },
2333    { "glUniform2fv", 20, -1 },
2334    { "glUniform2i", 20, -1 },
2335    { "glUniform2iv", 20, -1 },
2336    { "glUniform3f", 20, -1 },
2337    { "glUniform3fv", 20, -1 },
2338    { "glUniform3i", 20, -1 },
2339    { "glUniform3iv", 20, -1 },
2340    { "glUniform4f", 20, -1 },
2341    { "glUniform4fv", 20, -1 },
2342    { "glUniform4i", 20, -1 },
2343    { "glUniform4iv", 20, -1 },
2344    { "glUniformMatrix2fv", 20, -1 },
2345    { "glUniformMatrix3fv", 20, -1 },
2346    { "glUniformMatrix4fv", 20, -1 },
2347    { "glUnmapBufferOES", 20, -1 },
2348    { "glUseProgram", 20, -1 },
2349    { "glValidateProgram", 20, -1 },
2350    { "glVertexAttrib1f", 20, -1 },
2351    { "glVertexAttrib1fv", 20, -1 },
2352    { "glVertexAttrib2f", 20, -1 },
2353    { "glVertexAttrib2fv", 20, -1 },
2354    { "glVertexAttrib3f", 20, -1 },
2355    { "glVertexAttrib3fv", 20, -1 },
2356    { "glVertexAttrib4f", 20, -1 },
2357    { "glVertexAttrib4fv", 20, -1 },
2358    { "glVertexAttribPointer", 20, -1 },
2359    { "glViewport", 20, _gloffset_Viewport },
2360 
2361    /* GL_OES_get_program_binary - Also part of OpenGL ES 3.0. */
2362    { "glGetProgramBinaryOES", 20, -1 },
2363    { "glProgramBinaryOES", 20, -1 },
2364 
2365    /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
2366    { "glProgramParameteriEXT", 20, -1 },
2367    { "glUseProgramStagesEXT", 20, -1 },
2368    { "glActiveShaderProgramEXT", 20, -1 },
2369    { "glCreateShaderProgramvEXT", 20, -1 },
2370    { "glBindProgramPipelineEXT", 20, -1 },
2371    { "glDeleteProgramPipelinesEXT", 20, -1 },
2372    { "glGenProgramPipelinesEXT", 20, -1 },
2373    { "glIsProgramPipelineEXT", 20, -1 },
2374    { "glGetProgramPipelineivEXT", 20, -1 },
2375    { "glProgramUniform1iEXT", 20, -1 },
2376    { "glProgramUniform1ivEXT", 20, -1 },
2377    { "glProgramUniform1fEXT", 20, -1 },
2378    { "glProgramUniform1fvEXT", 20, -1 },
2379    { "glProgramUniform2iEXT", 20, -1 },
2380    { "glProgramUniform2ivEXT", 20, -1 },
2381    { "glProgramUniform2fEXT", 20, -1 },
2382    { "glProgramUniform2fvEXT", 20, -1 },
2383    { "glProgramUniform3iEXT", 20, -1 },
2384    { "glProgramUniform3ivEXT", 20, -1 },
2385    { "glProgramUniform3fEXT", 20, -1 },
2386    { "glProgramUniform3fvEXT", 20, -1 },
2387    { "glProgramUniform4iEXT", 20, -1 },
2388    { "glProgramUniform4ivEXT", 20, -1 },
2389    { "glProgramUniform4fEXT", 20, -1 },
2390    { "glProgramUniform4fvEXT", 20, -1 },
2391    { "glProgramUniformMatrix2fvEXT", 20, -1 },
2392    { "glProgramUniformMatrix3fvEXT", 20, -1 },
2393    { "glProgramUniformMatrix4fvEXT", 20, -1 },
2394    { "glProgramUniformMatrix2x3fvEXT", 20, -1 },
2395    { "glProgramUniformMatrix3x2fvEXT", 20, -1 },
2396    { "glProgramUniformMatrix2x4fvEXT", 20, -1 },
2397    { "glProgramUniformMatrix4x2fvEXT", 20, -1 },
2398    { "glProgramUniformMatrix3x4fvEXT", 20, -1 },
2399    { "glProgramUniformMatrix4x3fvEXT", 20, -1 },
2400    { "glValidateProgramPipelineEXT", 20, -1 },
2401    { "glGetProgramPipelineInfoLogEXT", 20, -1 },
2402 
2403    /* GL_AMD_performance_monitor */
2404    { "glGetPerfMonitorGroupsAMD", 20, -1 },
2405    { "glGetPerfMonitorCountersAMD", 20, -1 },
2406    { "glGetPerfMonitorGroupStringAMD", 20, -1 },
2407    { "glGetPerfMonitorCounterStringAMD", 20, -1 },
2408    { "glGetPerfMonitorCounterInfoAMD", 20, -1 },
2409    { "glGenPerfMonitorsAMD", 20, -1 },
2410    { "glDeletePerfMonitorsAMD", 20, -1 },
2411    { "glSelectPerfMonitorCountersAMD", 20, -1 },
2412    { "glBeginPerfMonitorAMD", 20, -1 },
2413    { "glEndPerfMonitorAMD", 20, -1 },
2414    { "glGetPerfMonitorCounterDataAMD", 20, -1 },
2415 
2416    /* GL_INTEL_performance_query */
2417    { "glGetFirstPerfQueryIdINTEL", 20, -1 },
2418    { "glGetNextPerfQueryIdINTEL", 20, -1 },
2419    { "glGetPerfQueryIdByNameINTEL", 20, -1 },
2420    { "glGetPerfQueryInfoINTEL", 20, -1 },
2421    { "glGetPerfCounterInfoINTEL", 20, -1 },
2422    { "glCreatePerfQueryINTEL", 20, -1 },
2423    { "glDeletePerfQueryINTEL", 20, -1 },
2424    { "glBeginPerfQueryINTEL", 20, -1 },
2425    { "glEndPerfQueryINTEL", 20, -1 },
2426    { "glGetPerfQueryDataINTEL", 20, -1 },
2427 
2428    /* GL_KHR_debug */
2429    { "glPushDebugGroupKHR", 20, -1 },
2430    { "glPopDebugGroupKHR", 20, -1 },
2431    { "glDebugMessageCallbackKHR", 20, -1 },
2432    { "glDebugMessageControlKHR", 20, -1 },
2433    { "glDebugMessageInsertKHR", 20, -1 },
2434    { "glGetDebugMessageLogKHR", 20, -1 },
2435    { "glGetObjectLabelKHR", 20, -1 },
2436    { "glGetObjectPtrLabelKHR", 20, -1 },
2437    { "glGetPointervKHR", 20, -1 },
2438    { "glObjectLabelKHR", 20, -1 },
2439    { "glObjectPtrLabelKHR", 20, -1 },
2440 
2441    /* GL_EXT_polygon_offset_clamp */
2442    { "glPolygonOffsetClampEXT", 11, -1 },
2443 
2444    /* GL_KHR_robustness */
2445    { "glGetGraphicsResetStatusKHR", 20, -1 },
2446    { "glReadnPixelsKHR", 20, -1 },
2447    { "glGetnUniformfvKHR", 20, -1 },
2448    { "glGetnUniformivKHR", 20, -1 },
2449    { "glGetnUniformuivKHR", 20, -1 },
2450 
2451    /* GL_KHR_blend_equation_advanced */
2452    { "glBlendBarrierKHR", 20, -1 },
2453 
2454    /* GL_EXT_occlusion_query_boolean */
2455    { "glGenQueriesEXT", 20, -1 },
2456    { "glDeleteQueriesEXT", 20, -1 },
2457    { "glIsQueryEXT", 20, -1 },
2458    { "glBeginQueryEXT", 20, -1 },
2459    { "glEndQueryEXT", 20, -1 },
2460    { "glGetQueryivEXT", 20, -1 },
2461    { "glGetQueryObjectivEXT", 20, -1 },
2462    { "glGetQueryObjectuivEXT", 20, -1 },
2463 
2464    /* GL_EXT_clip_control */
2465    { "glClipControlEXT", 20, -1 },
2466 
2467    /* GL_EXT_disjoint_timer_query */
2468    { "glGetQueryObjecti64vEXT", 20, -1 },
2469    { "glGetQueryObjectui64vEXT", 20, -1 },
2470    { "glQueryCounterEXT", 20, -1 },
2471    { "glGetInteger64vEXT", 20, -1 },
2472 
2473    /* GL_EXT_shader_framebuffer_fetch_non_coherent */
2474    { "glFramebufferFetchBarrierEXT", 20, -1 },
2475 
2476    /* GL_NV_conditional_render */
2477    { "glBeginConditionalRenderNV", 20, -1 },
2478    { "glEndConditionalRenderNV", 20, -1 },
2479 
2480    /* GL_NV_conservative_raster */
2481    { "glSubpixelPrecisionBiasNV", 20, -1 },
2482 
2483    /* GL_NV_conservative_raster_dilate */
2484    { "glConservativeRasterParameterfNV", 20, -1 },
2485 
2486    /* GL_NV_conservative_raster_pre_snap_triangles */
2487    { "glConservativeRasterParameteriNV", 20, -1 },
2488 
2489    /* GL_EXT_multisampled_render_to_texture */
2490    { "glRenderbufferStorageMultisampleEXT", 20, -1 },
2491    { "glFramebufferTexture2DMultisampleEXT", 20, -1 },
2492 
2493    /* GL_KHR_parallel_shader_compile */
2494    { "glMaxShaderCompilerThreadsKHR", 20, -1 },
2495 
2496    { "glInternalBufferSubDataCopyMESA", 20, -1 },
2497 
2498    { NULL, 0, -1 }
2499 };
2500 
2501 const struct function gles3_functions_possible[] = {
2502    // We check for the aliased -EXT version in GLES 2
2503    // { "glBeginQuery", 30, -1 },
2504    { "glBeginTransformFeedback", 30, -1 },
2505    { "glBindBufferBase", 30, -1 },
2506    { "glBindBufferRange", 30, -1 },
2507    { "glBindSampler", 30, -1 },
2508    { "glBindTransformFeedback", 30, -1 },
2509    // We check for the aliased -OES version in GLES 2
2510    // { "glBindVertexArray", 30, -1 },
2511    { "glBlitFramebuffer", 30, -1 },
2512    { "glClearBufferfi", 30, -1 },
2513    { "glClearBufferfv", 30, -1 },
2514    { "glClearBufferiv", 30, -1 },
2515    { "glClearBufferuiv", 30, -1 },
2516    { "glClientWaitSync", 30, -1 },
2517    // We check for the aliased -OES version in GLES 2
2518    // { "glCompressedTexImage3D", 30, -1 },
2519    // We check for the aliased -OES version in GLES 2
2520    // { "glCompressedTexSubImage3D", 30, -1 },
2521    { "glCopyBufferSubData", 30, -1 },
2522    // We check for the aliased -OES version in GLES 2
2523    // { "glCopyTexSubImage3D", 30, -1 },
2524    // We check for the aliased -EXT version in GLES 2
2525    // { "glDeleteQueries", 30, -1 },
2526    { "glDeleteSamplers", 30, -1 },
2527    { "glDeleteSync", 30, -1 },
2528    { "glDeleteTransformFeedbacks", 30, -1 },
2529    // We check for the aliased -OES version in GLES 2
2530    // { "glDeleteVertexArrays", 30, -1 },
2531    { "glDrawArraysInstanced", 30, -1 },
2532    // We check for the aliased -NV version in GLES 2
2533    // { "glDrawBuffers", 30, -1 },
2534    { "glDrawElementsInstanced", 30, -1 },
2535    { "glDrawRangeElements", 30, -1 },
2536    // We check for the aliased -EXT version in GLES 2
2537    // { "glEndQuery", 30, -1 },
2538    { "glEndTransformFeedback", 30, -1 },
2539    { "glFenceSync", 30, -1 },
2540    // We check for the aliased -EXT version in GLES 2
2541    // { "glFlushMappedBufferRange", 30, -1 },
2542    { "glFramebufferTextureLayer", 30, -1 },
2543    // We check for the aliased -EXT version in GLES 2
2544    // { "glGenQueries", 30, -1 },
2545    { "glGenSamplers", 30, -1 },
2546    { "glGenTransformFeedbacks", 30, -1 },
2547    // We check for the aliased -OES version in GLES 2
2548    // { "glGenVertexArrays", 30, -1 },
2549    { "glGetActiveUniformBlockiv", 30, -1 },
2550    { "glGetActiveUniformBlockName", 30, -1 },
2551    { "glGetActiveUniformsiv", 30, -1 },
2552    { "glGetBufferParameteri64v", 30, -1 },
2553    // We check for the aliased -OES version in GLES 2
2554    // { "glGetBufferPointerv", 30, -1 },
2555    { "glGetFragDataLocation", 30, -1 },
2556    { "glGetInteger64i_v", 30, -1 },
2557    // We check for the aliased -EXT version in GLES 2
2558    //{ "glGetInteger64v", 30, -1 },
2559    { "glGetIntegeri_v", 30, -1 },
2560    { "glGetInternalformativ", 30, -1 },
2561    { "glGetInternalformati64v", 30, -1 },
2562    // glGetProgramBinary aliases glGetProgramBinaryOES in GLES 2
2563    // We check for the aliased -EXT version in GLES 2
2564    // { "glGetQueryiv", 30, -1 },
2565    // We check for the aliased -EXT version in GLES 2
2566    // { "glGetQueryObjectuiv", 30, -1 },
2567    { "glGetSamplerParameterfv", 30, -1 },
2568    { "glGetSamplerParameteriv", 30, -1 },
2569    { "glGetStringi", 30, -1 },
2570    { "glGetSynciv", 30, -1 },
2571    { "glGetTransformFeedbackVarying", 30, -1 },
2572    { "glGetUniformBlockIndex", 30, -1 },
2573    { "glGetUniformIndices", 30, -1 },
2574    { "glGetUniformuiv", 30, -1 },
2575    { "glGetVertexAttribIiv", 30, -1 },
2576    { "glGetVertexAttribIuiv", 30, -1 },
2577    { "glInvalidateFramebuffer", 30, -1 },
2578    { "glInvalidateSubFramebuffer", 30, -1 },
2579    // We check for the aliased -EXT version in GLES 2
2580    // { "glIsQuery", 30, -1 },
2581    { "glIsSampler", 30, -1 },
2582    { "glIsSync", 30, -1 },
2583    { "glIsTransformFeedback", 30, -1 },
2584    // We check for the aliased -OES version in GLES 2
2585    // { "glIsVertexArray", 30, -1 },
2586    // We check for the aliased -EXT version in GLES 2
2587    // { "glMapBufferRange", 30, -1 },
2588    { "glPauseTransformFeedback", 30, -1 },
2589    // glProgramBinary aliases glProgramBinaryOES in GLES 2
2590    // glProgramParameteri aliases glProgramParameteriEXT in GLES 2
2591    // We check for the aliased -NV version in GLES 2
2592    // { "glReadBuffer", 30, -1 },
2593    // glRenderbufferStorageMultisample aliases glRenderbufferStorageMultisampleEXT in GLES 2
2594    { "glResumeTransformFeedback", 30, -1 },
2595    { "glSamplerParameterf", 30, -1 },
2596    { "glSamplerParameterfv", 30, -1 },
2597    { "glSamplerParameteri", 30, -1 },
2598    { "glSamplerParameteriv", 30, -1 },
2599    // We check for the aliased -OES version in GLES 2
2600    // { "glTexImage3D", 30, -1 },
2601    { "glTexStorage2D", 30, -1 },
2602    { "glTexStorage3D", 30, -1 },
2603    // We check for the aliased -OES version in GLES 2
2604    // { "glTexSubImage3D", 30, -1 },
2605    { "glTransformFeedbackVaryings", 30, -1 },
2606    { "glUniform1ui", 30, -1 },
2607    { "glUniform1uiv", 30, -1 },
2608    { "glUniform2ui", 30, -1 },
2609    { "glUniform2uiv", 30, -1 },
2610    { "glUniform3ui", 30, -1 },
2611    { "glUniform3uiv", 30, -1 },
2612    { "glUniform4ui", 30, -1 },
2613    { "glUniform4uiv", 30, -1 },
2614    { "glUniformBlockBinding", 30, -1 },
2615    { "glUniformMatrix2x3fv", 30, -1 },
2616    { "glUniformMatrix2x4fv", 30, -1 },
2617    { "glUniformMatrix3x2fv", 30, -1 },
2618    { "glUniformMatrix3x4fv", 30, -1 },
2619    { "glUniformMatrix4x2fv", 30, -1 },
2620    { "glUniformMatrix4x3fv", 30, -1 },
2621    // We check for the aliased -OES version in GLES 2
2622    // { "glUnmapBuffer", 30, -1 },
2623    { "glVertexAttribDivisor", 30, -1 },
2624    { "glVertexAttribI4i", 30, -1 },
2625    { "glVertexAttribI4iv", 30, -1 },
2626    { "glVertexAttribI4ui", 30, -1 },
2627    { "glVertexAttribI4uiv", 30, -1 },
2628    { "glVertexAttribIPointer", 30, -1 },
2629    { "glWaitSync", 30, -1 },
2630 
2631    /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
2632    { "glProgramUniform1uiEXT", 30, -1 },
2633    { "glProgramUniform1uivEXT", 30, -1 },
2634    { "glProgramUniform2uiEXT", 30, -1 },
2635    { "glProgramUniform2uivEXT", 30, -1 },
2636    { "glProgramUniform3uiEXT", 30, -1 },
2637    { "glProgramUniform3uivEXT", 30, -1 },
2638    { "glProgramUniform4uiEXT", 30, -1 },
2639    { "glProgramUniform4uivEXT", 30, -1 },
2640 
2641    /* GL_EXT_blend_func_extended */
2642    { "glBindFragDataLocationIndexedEXT", 30, -1 },
2643    { "glGetFragDataIndexEXT", 30, -1 },
2644    { "glBindFragDataLocationEXT", 30, -1 },
2645 
2646    /* GL_OES_texture_border_clamp */
2647    { "glTexParameterIivOES", 30, -1 },
2648    { "glTexParameterIuivOES", 30, -1 },
2649    { "glGetTexParameterIivOES", 30, -1 },
2650    { "glGetTexParameterIuivOES", 30, -1 },
2651    { "glSamplerParameterIivOES", 30, -1 },
2652    { "glSamplerParameterIuivOES", 30, -1 },
2653    { "glGetSamplerParameterIivOES", 30, -1 },
2654    { "glGetSamplerParameterIuivOES", 30, -1 },
2655 
2656    /* GL_OES_texture_buffer */
2657    { "glTexBufferOES", 31, -1 },
2658    { "glTexBufferRangeOES", 31, -1 },
2659 
2660    /* GL_OES_sample_shading */
2661    { "glMinSampleShadingOES", 30, -1 },
2662 
2663    /* GL_OES_copy_image */
2664    { "glCopyImageSubDataOES", 30, -1 },
2665 
2666    /* GL_OES_draw_buffers_indexed */
2667    { "glBlendFunciOES", 30, -1 },
2668    { "glBlendFuncSeparateiOES", 30, -1 },
2669    { "glBlendEquationiOES", 30, -1 },
2670    { "glBlendEquationSeparateiOES", 30, -1 },
2671    { "glColorMaskiOES", 30, -1 },
2672    { "glEnableiOES", 30, -1 },
2673    { "glDisableiOES", 30, -1 },
2674    { "glIsEnablediOES", 30, -1 },
2675 
2676    /* GL_EXT_base_instance */
2677    { "glDrawArraysInstancedBaseInstanceEXT", 30, -1 },
2678    { "glDrawElementsInstancedBaseInstanceEXT", 30, -1 },
2679    { "glDrawElementsInstancedBaseVertexBaseInstanceEXT", 30, -1 },
2680 
2681    /* GL_EXT_window_rectangles */
2682    { "glWindowRectanglesEXT", 30, -1 },
2683 
2684    /* GL_AMD_framebuffer_multisample_advanced */
2685    { "glRenderbufferStorageMultisampleAdvancedAMD", 11, -1 },
2686    { "glNamedRenderbufferStorageMultisampleAdvancedAMD", 11, -1 },
2687 
2688    /* GL_MESA_framebuffer_flip_y */
2689    { "glFramebufferParameteriMESA", 30, -1 },
2690    { "glGetFramebufferParameterivMESA", 30, -1 },
2691 
2692    /* EXT_EGL_image_storage */
2693    { "glEGLImageTargetTexStorageEXT", 30, -1 },
2694 
2695    { "glDrawElementsInstancedBaseVertex", 30, -1 },
2696 
2697    { NULL, 0, -1 }
2698 };
2699 
2700 const struct function gles31_functions_possible[] = {
2701    { "glDispatchCompute", 31, -1 },
2702    { "glDispatchComputeIndirect", 31, -1 },
2703    { "glDrawArraysIndirect", 31, -1 },
2704    { "glDrawElementsIndirect", 31, -1 },
2705 
2706    { "glFramebufferParameteri", 31, -1 },
2707    { "glGetFramebufferParameteriv", 31, -1 },
2708 
2709    { "glGetProgramInterfaceiv", 31, -1 },
2710    { "glGetProgramResourceIndex", 31, -1 },
2711    { "glGetProgramResourceName", 31, -1 },
2712    { "glGetProgramResourceiv", 31, -1 },
2713    { "glGetProgramResourceLocation", 31, -1 },
2714 
2715    // We check for the aliased EXT versions in GLES 2
2716    // { "glUseProgramStages", 31, -1 },
2717    // { "glActiveShaderProgram", 31, -1 },
2718    // { "glCreateShaderProgramv", 31, -1 },
2719    // { "glBindProgramPipeline", 31, -1 },
2720    // { "glDeleteProgramPipelines", 31, -1 },
2721    // { "glGenProgramPipelines", 31, -1 },
2722    // { "glIsProgramPipeline", 31, -1 },
2723    // { "glGetProgramPipelineiv", 31, -1 },
2724    // { "glProgramUniform1i", 31, -1 },
2725    // { "glProgramUniform2i", 31, -1 },
2726    // { "glProgramUniform3i", 31, -1 },
2727    // { "glProgramUniform4i", 31, -1 },
2728    // { "glProgramUniform1f", 31, -1 },
2729    // { "glProgramUniform2f", 31, -1 },
2730    // { "glProgramUniform3f", 31, -1 },
2731    // { "glProgramUniform4f", 31, -1 },
2732    // { "glProgramUniform1iv", 31, -1 },
2733    // { "glProgramUniform2iv", 31, -1 },
2734    // { "glProgramUniform3iv", 31, -1 },
2735    // { "glProgramUniform4iv", 31, -1 },
2736    // { "glProgramUniform1fv", 31, -1 },
2737    // { "glProgramUniform2fv", 31, -1 },
2738    // { "glProgramUniform3fv", 31, -1 },
2739    // { "glProgramUniform4fv", 31, -1 },
2740    // { "glProgramUniformMatrix2fv", 31, -1 },
2741    // { "glProgramUniformMatrix3fv", 31, -1 },
2742    // { "glProgramUniformMatrix4fv", 31, -1 },
2743    // { "glProgramUniformMatrix2x3fv", 31, -1 },
2744    // { "glProgramUniformMatrix3x2fv", 31, -1 },
2745    // { "glProgramUniformMatrix2x4fv", 31, -1 },
2746    // { "glProgramUniformMatrix4x2fv", 31, -1 },
2747    // { "glProgramUniformMatrix3x4fv", 31, -1 },
2748    // { "glProgramUniformMatrix4x3fv", 31, -1 },
2749    // { "glValidateProgramPipeline", 31, -1 },
2750    // { "glGetProgramPipelineInfoLog", 31, -1 },
2751 
2752    // We check for the aliased EXT versions in GLES 3
2753    // { "glProgramUniform1ui", 31, -1 },
2754    // { "glProgramUniform2ui", 31, -1 },
2755    // { "glProgramUniform3ui", 31, -1 },
2756    // { "glProgramUniform4ui", 31, -1 },
2757    // { "glProgramUniform1uiv", 31, -1 },
2758    // { "glProgramUniform2uiv", 31, -1 },
2759    // { "glProgramUniform3uiv", 31, -1 },
2760    // { "glProgramUniform4uiv", 31, -1 },
2761 
2762    { "glBindImageTexture", 31, -1 },
2763    { "glGetBooleani_v", 31, -1 },
2764    { "glMemoryBarrier", 31, -1 },
2765 
2766    { "glMemoryBarrierByRegion", 31, -1 },
2767 
2768    { "glTexStorage2DMultisample", 31, -1 },
2769    { "glGetMultisamplefv", 31, -1 },
2770    { "glSampleMaski", 31, -1 },
2771    { "glGetTexLevelParameteriv", 31, -1 },
2772    { "glGetTexLevelParameterfv", 31, -1 },
2773    { "glBindVertexBuffer", 31, -1 },
2774    { "glVertexAttribFormat", 31, -1 },
2775    { "glVertexAttribIFormat", 31, -1 },
2776    { "glVertexAttribBinding", 31, -1 },
2777    { "glVertexBindingDivisor", 31, -1 },
2778 
2779    /* GL_OES_texture_storage_multisample_2d_array */
2780    { "glTexStorage3DMultisampleOES", 31, -1 },
2781 
2782    /* GL_OES_texture_view */
2783    { "glTextureViewOES", 31, -1 },
2784 
2785    /* GL_EXT_buffer_storage */
2786    { "glBufferStorageEXT", 31, -1 },
2787 
2788    /* GL_EXT_blend_func_extended */
2789    { "glGetProgramResourceLocationIndexEXT", 31, -1 },
2790 
2791    /* GL_OES_geometry_shader */
2792    { "glFramebufferTextureOES", 31, -1},
2793 
2794    /* GL_EXT_geometry_shader */
2795    // We check for the aliased OES version above
2796    // { "glFramebufferTextureEXT", 31, -1},
2797 
2798    /* GL_OES_tessellation_shader */
2799    { "glPatchParameteriOES", 31, -1 },
2800 
2801    /* GL_OES_primitive_bound_box */
2802    { "glPrimitiveBoundingBoxOES", 31, -1 },
2803 
2804    /* GL_OES_viewport_array */
2805    { "glViewportArrayvOES", 31, -1 },
2806    { "glViewportIndexedfOES", 31, -1 },
2807    { "glViewportIndexedfvOES", 31, -1 },
2808    { "glScissorArrayvOES", 31, -1 },
2809    { "glScissorIndexedOES", 31, -1 },
2810    { "glScissorIndexedvOES", 31, -1 },
2811    { "glDepthRangeArrayfvOES", 31, -1 },
2812    { "glDepthRangeIndexedfOES", 31, -1 },
2813    { "glGetFloati_vOES", 31, -1 },
2814 
2815    /* GL_ARB_sample_locations */
2816    { "glFramebufferSampleLocationsfvARB", 31, -1 },
2817    { "glNamedFramebufferSampleLocationsfvARB", 31, -1 },
2818    { "glEvaluateDepthValuesARB", 31, -1 },
2819 
2820    /* GL_NV_viewport_swizzle */
2821    { "glViewportSwizzleNV", 31, -1 },
2822 
2823    { NULL, 0, -1 },
2824  };
2825