6df90e966f1f72b7da4ac4be7aa2ee793cdf4c88
[mesa.git] / src / mesa / main / tests / dispatch_sanity.cpp
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 "main/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
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
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);
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 *
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
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
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
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
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
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
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
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
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
550 /* GL_NV_texture_barrier */
551 { "glTextureBarrierNV", 31, -1 },
552
553 /* GL_EXT_texture_integer */
554 { "glClearColorIiEXT", 31, -1 },
555 { "glClearColorIuiEXT", 31, -1 },
556
557 /* GL_OES_EGL_image */
558 { "glEGLImageTargetRenderbufferStorageOES", 31, -1 },
559 { "glEGLImageTargetTexture2DOES", 31, -1 },
560
561 /* GL 3.2 */
562 { "glGetInteger64i_v", 32, -1 },
563 { "glGetBufferParameteri64v", 32, -1 },
564 { "glFramebufferTexture", 32, -1 },
565 { "glProgramParameteri", 32, -1 },
566 { "glFramebufferTextureLayer", 32, -1 },
567
568 /* GL 3.3 */
569 { "glVertexAttribDivisor", 33, -1 },
570
571 /* GL 4.0 */
572 { "glMinSampleShading", 40, -1 },
573 { "glPatchParameteri", 40, -1 },
574 { "glPatchParameterfv", 40, -1 },
575 { "glBlendEquationi", 40, -1 },
576 { "glBlendEquationSeparatei", 40, -1 },
577 { "glBlendFunci", 40, -1 },
578 { "glBlendFuncSeparatei", 40, -1 },
579
580 { "glGetSubroutineUniformLocation", 40, -1 },
581 { "glGetSubroutineIndex", 40, -1 },
582 { "glGetActiveSubroutineUniformiv", 40, -1 },
583 { "glGetActiveSubroutineUniformName", 40, -1 },
584 { "glGetActiveSubroutineName", 40, -1 },
585 { "glUniformSubroutinesuiv", 40, -1 },
586 { "glGetUniformSubroutineuiv", 40, -1 },
587 { "glGetProgramStageiv", 40, -1 },
588
589 { "glUniform1d", 40, -1 },
590 { "glUniform2d", 40, -1 },
591 { "glUniform3d", 40, -1 },
592 { "glUniform4d", 40, -1 },
593 { "glUniform1dv", 40, -1 },
594 { "glUniform2dv", 40, -1 },
595 { "glUniform3dv", 40, -1 },
596 { "glUniform4dv", 40, -1 },
597 { "glUniformMatrix2dv", 40, -1 },
598 { "glUniformMatrix3dv", 40, -1 },
599 { "glUniformMatrix4dv", 40, -1 },
600 { "glUniformMatrix2x3dv", 40, -1 },
601 { "glUniformMatrix2x4dv", 40, -1 },
602 { "glUniformMatrix3x2dv", 40, -1 },
603 { "glUniformMatrix3x4dv", 40, -1 },
604 { "glUniformMatrix4x2dv", 40, -1 },
605 { "glUniformMatrix4x3dv", 40, -1 },
606 { "glGetUniformdv", 43, -1 },
607
608 /* GL 4.1 */
609 { "glVertexAttribL1d", 41, -1 },
610 { "glVertexAttribL2d", 41, -1 },
611 { "glVertexAttribL3d", 41, -1 },
612 { "glVertexAttribL4d", 41, -1 },
613 { "glVertexAttribL1dv", 41, -1 },
614 { "glVertexAttribL2dv", 41, -1 },
615 { "glVertexAttribL3dv", 41, -1 },
616 { "glVertexAttribL4dv", 41, -1 },
617 { "glVertexAttribLPointer", 41, -1 },
618 { "glGetVertexAttribLdv", 41, -1 },
619 { "glVertexArrayVertexAttribLOffsetEXT", 41, -1 },
620
621 /* GL 4.3 */
622 { "glIsRenderbuffer", 43, -1 },
623 { "glBindRenderbuffer", 43, -1 },
624 { "glDeleteRenderbuffers", 43, -1 },
625 { "glGenRenderbuffers", 43, -1 },
626 { "glRenderbufferStorage", 43, -1 },
627 { "glGetRenderbufferParameteriv", 43, -1 },
628 { "glIsFramebuffer", 43, -1 },
629 { "glBindFramebuffer", 43, -1 },
630 { "glDeleteFramebuffers", 43, -1 },
631 { "glGenFramebuffers", 43, -1 },
632 { "glCheckFramebufferStatus", 43, -1 },
633 { "glFramebufferTexture1D", 43, -1 },
634 { "glFramebufferTexture2D", 43, -1 },
635 { "glFramebufferTexture3D", 43, -1 },
636 { "glFramebufferRenderbuffer", 43, -1 },
637 { "glGetFramebufferAttachmentParameteriv", 43, -1 },
638 { "glGenerateMipmap", 43, -1 },
639 { "glBlitFramebuffer", 43, -1 },
640 { "glRenderbufferStorageMultisample", 43, -1 },
641 { "glFramebufferTextureLayer", 43, -1 },
642 { "glMapBufferRange", 43, -1 },
643 { "glFlushMappedBufferRange", 43, -1 },
644 { "glBindVertexArray", 43, -1 },
645 { "glDeleteVertexArrays", 43, -1 },
646 { "glGenVertexArrays", 43, -1 },
647 { "glIsVertexArray", 43, -1 },
648 { "glGetUniformIndices", 43, -1 },
649 { "glGetActiveUniformsiv", 43, -1 },
650 { "glGetActiveUniformName", 43, -1 },
651 { "glGetUniformBlockIndex", 43, -1 },
652 { "glGetActiveUniformBlockiv", 43, -1 },
653 { "glGetActiveUniformBlockName", 43, -1 },
654 { "glUniformBlockBinding", 43, -1 },
655 { "glCopyBufferSubData", 43, -1 },
656 { "glDrawElementsBaseVertex", 43, -1 },
657 { "glDrawRangeElementsBaseVertex", 43, -1 },
658 { "glDrawElementsInstancedBaseVertex", 43, -1 },
659 { "glMultiDrawElementsBaseVertex", 43, -1 },
660 { "glProvokingVertex", 43, -1 },
661 { "glFenceSync", 43, -1 },
662 { "glIsSync", 43, -1 },
663 { "glDeleteSync", 43, -1 },
664 { "glClientWaitSync", 43, -1 },
665 { "glWaitSync", 43, -1 },
666 { "glGetInteger64v", 43, -1 },
667 { "glGetSynciv", 43, -1 },
668 { "glTexImage2DMultisample", 43, -1 },
669 { "glTexImage3DMultisample", 43, -1 },
670 { "glGetMultisamplefv", 43, -1 },
671 { "glSampleMaski", 43, -1 },
672 { "glBlendEquationiARB", 43, -1 },
673 { "glBlendEquationSeparateiARB", 43, -1 },
674 { "glBlendFunciARB", 43, -1 },
675 { "glBlendFuncSeparateiARB", 43, -1 },
676 { "glMinSampleShadingARB", 43, -1 }, // XXX: Add to xml
677 // { "glNamedStringARB", 43, -1 }, // XXX: Add to xml
678 // { "glDeleteNamedStringARB", 43, -1 }, // XXX: Add to xml
679 // { "glCompileShaderIncludeARB", 43, -1 }, // XXX: Add to xml
680 // { "glIsNamedStringARB", 43, -1 }, // XXX: Add to xml
681 // { "glGetNamedStringARB", 43, -1 }, // XXX: Add to xml
682 // { "glGetNamedStringivARB", 43, -1 }, // XXX: Add to xml
683 { "glBindFragDataLocationIndexed", 43, -1 },
684 { "glGetFragDataIndex", 43, -1 },
685 { "glGenSamplers", 43, -1 },
686 { "glDeleteSamplers", 43, -1 },
687 { "glIsSampler", 43, -1 },
688 { "glBindSampler", 43, -1 },
689 { "glSamplerParameteri", 43, -1 },
690 { "glSamplerParameteriv", 43, -1 },
691 { "glSamplerParameterf", 43, -1 },
692 { "glSamplerParameterfv", 43, -1 },
693 { "glSamplerParameterIiv", 43, -1 },
694 { "glSamplerParameterIuiv", 43, -1 },
695 { "glGetSamplerParameteriv", 43, -1 },
696 { "glGetSamplerParameterIiv", 43, -1 },
697 { "glGetSamplerParameterfv", 43, -1 },
698 { "glGetSamplerParameterIuiv", 43, -1 },
699 { "glQueryCounter", 43, -1 },
700 { "glGetQueryObjecti64v", 43, -1 },
701 { "glGetQueryObjectui64v", 43, -1 },
702 { "glVertexP2ui", 43, -1 },
703 { "glVertexP2uiv", 43, -1 },
704 { "glVertexP3ui", 43, -1 },
705 { "glVertexP3uiv", 43, -1 },
706 { "glVertexP4ui", 43, -1 },
707 { "glVertexP4uiv", 43, -1 },
708 { "glTexCoordP1ui", 43, -1 },
709 { "glTexCoordP1uiv", 43, -1 },
710 { "glTexCoordP2ui", 43, -1 },
711 { "glTexCoordP2uiv", 43, -1 },
712 { "glTexCoordP3ui", 43, -1 },
713 { "glTexCoordP3uiv", 43, -1 },
714 { "glTexCoordP4ui", 43, -1 },
715 { "glTexCoordP4uiv", 43, -1 },
716 { "glMultiTexCoordP1ui", 43, -1 },
717 { "glMultiTexCoordP1uiv", 43, -1 },
718 { "glMultiTexCoordP2ui", 43, -1 },
719 { "glMultiTexCoordP2uiv", 43, -1 },
720 { "glMultiTexCoordP3ui", 43, -1 },
721 { "glMultiTexCoordP3uiv", 43, -1 },
722 { "glMultiTexCoordP4ui", 43, -1 },
723 { "glMultiTexCoordP4uiv", 43, -1 },
724 { "glNormalP3ui", 43, -1 },
725 { "glNormalP3uiv", 43, -1 },
726 { "glColorP3ui", 43, -1 },
727 { "glColorP3uiv", 43, -1 },
728 { "glColorP4ui", 43, -1 },
729 { "glColorP4uiv", 43, -1 },
730 { "glSecondaryColorP3ui", 43, -1 },
731 { "glSecondaryColorP3uiv", 43, -1 },
732 { "glVertexAttribP1ui", 43, -1 },
733 { "glVertexAttribP1uiv", 43, -1 },
734 { "glVertexAttribP2ui", 43, -1 },
735 { "glVertexAttribP2uiv", 43, -1 },
736 { "glVertexAttribP3ui", 43, -1 },
737 { "glVertexAttribP3uiv", 43, -1 },
738 { "glVertexAttribP4ui", 43, -1 },
739 { "glVertexAttribP4uiv", 43, -1 },
740 { "glDrawArraysIndirect", 43, -1 },
741 { "glDrawElementsIndirect", 43, -1 },
742 { "glBindTransformFeedback", 43, -1 },
743 { "glDeleteTransformFeedbacks", 43, -1 },
744 { "glGenTransformFeedbacks", 43, -1 },
745 { "glIsTransformFeedback", 43, -1 },
746 { "glPauseTransformFeedback", 43, -1 },
747 { "glResumeTransformFeedback", 43, -1 },
748 { "glDrawTransformFeedback", 43, -1 },
749 { "glDrawTransformFeedbackStream", 43, -1 },
750 { "glBeginQueryIndexed", 43, -1 },
751 { "glEndQueryIndexed", 43, -1 },
752 { "glGetQueryIndexediv", 43, -1 },
753 { "glReleaseShaderCompiler", 43, -1 },
754 { "glShaderBinary", 43, -1 },
755 { "glGetShaderPrecisionFormat", 43, -1 },
756 { "glDepthRangef", 43, -1 },
757 { "glClearDepthf", 43, -1 },
758 { "glGetProgramBinary", 43, -1 },
759 { "glProgramBinary", 43, -1 },
760 { "glProgramParameteri", 43, -1 },
761 { "glUseProgramStages", 43, -1 },
762 { "glActiveShaderProgram", 43, -1 },
763 { "glCreateShaderProgramv", 43, -1 },
764 { "glBindProgramPipeline", 43, -1 },
765 { "glDeleteProgramPipelines", 43, -1 },
766 { "glGenProgramPipelines", 43, -1 },
767 { "glIsProgramPipeline", 43, -1 },
768 { "glGetProgramPipelineiv", 43, -1 },
769 { "glProgramUniform1d", 43, -1 },
770 { "glProgramUniform1dv", 43, -1 },
771 { "glProgramUniform1i", 43, -1 },
772 { "glProgramUniform1iv", 43, -1 },
773 { "glProgramUniform1f", 43, -1 },
774 { "glProgramUniform1fv", 43, -1 },
775 { "glProgramUniform1ui", 43, -1 },
776 { "glProgramUniform1uiv", 43, -1 },
777 { "glProgramUniform2i", 43, -1 },
778 { "glProgramUniform2iv", 43, -1 },
779 { "glProgramUniform2f", 43, -1 },
780 { "glProgramUniform2fv", 43, -1 },
781 { "glProgramUniform2d", 40, -1 },
782 { "glProgramUniform2dv", 40, -1 },
783 { "glProgramUniform2ui", 43, -1 },
784 { "glProgramUniform2uiv", 43, -1 },
785 { "glProgramUniform3i", 43, -1 },
786 { "glProgramUniform3iv", 43, -1 },
787 { "glProgramUniform3f", 43, -1 },
788 { "glProgramUniform3fv", 43, -1 },
789 { "glProgramUniform3d", 40, -1 },
790 { "glProgramUniform3dv", 40, -1 },
791 { "glProgramUniform3ui", 43, -1 },
792 { "glProgramUniform3uiv", 43, -1 },
793 { "glProgramUniform4i", 43, -1 },
794 { "glProgramUniform4iv", 43, -1 },
795 { "glProgramUniform4d", 43, -1 },
796 { "glProgramUniform4dv", 43, -1 },
797 { "glProgramUniform4f", 43, -1 },
798 { "glProgramUniform4fv", 43, -1 },
799 { "glProgramUniform4ui", 43, -1 },
800 { "glProgramUniform4uiv", 43, -1 },
801 { "glProgramUniformMatrix2dv", 43, -1 },
802 { "glProgramUniformMatrix2fv", 43, -1 },
803 { "glProgramUniformMatrix3dv", 43, -1 },
804 { "glProgramUniformMatrix3fv", 43, -1 },
805 { "glProgramUniformMatrix4dv", 43, -1 },
806 { "glProgramUniformMatrix4fv", 43, -1 },
807 { "glProgramUniformMatrix2x3dv", 43, -1 },
808 { "glProgramUniformMatrix2x3fv", 43, -1 },
809 { "glProgramUniformMatrix3x2dv", 43, -1 },
810 { "glProgramUniformMatrix3x2fv", 43, -1 },
811 { "glProgramUniformMatrix2x4dv", 43, -1 },
812 { "glProgramUniformMatrix2x4fv", 43, -1 },
813 { "glProgramUniformMatrix4x2dv", 43, -1 },
814 { "glProgramUniformMatrix4x2fv", 43, -1 },
815 { "glProgramUniformMatrix3x4dv", 43, -1 },
816 { "glProgramUniformMatrix3x4fv", 43, -1 },
817 { "glProgramUniformMatrix4x3dv", 43, -1 },
818 { "glProgramUniformMatrix4x3fv", 43, -1 },
819 { "glValidateProgramPipeline", 43, -1 },
820 { "glGetProgramPipelineInfoLog", 43, -1 },
821 { "glGetFloati_v", 43, -1 },
822 { "glGetDoublei_v", 43, -1 },
823 // { "glCreateSyncFromCLeventARB", 43, -1 }, // XXX: Add to xml
824 { "glGetGraphicsResetStatusARB", 43, -1 },
825 { "glGetnMapdvARB", 43, -1 },
826 { "glGetnMapfvARB", 43, -1 },
827 { "glGetnMapivARB", 43, -1 },
828 { "glGetnPixelMapfvARB", 43, -1 },
829 { "glGetnPixelMapuivARB", 43, -1 },
830 { "glGetnPixelMapusvARB", 43, -1 },
831 { "glGetnPolygonStippleARB", 43, -1 },
832 { "glGetnColorTableARB", 43, -1 },
833 { "glGetnConvolutionFilterARB", 43, -1 },
834 { "glGetnSeparableFilterARB", 43, -1 },
835 { "glGetnHistogramARB", 43, -1 },
836 { "glGetnMinmaxARB", 43, -1 },
837 { "glGetnTexImageARB", 43, -1 },
838 { "glReadnPixelsARB", 43, -1 },
839 { "glGetnCompressedTexImageARB", 43, -1 },
840 { "glGetnUniformfvARB", 43, -1 },
841 { "glGetnUniformivARB", 43, -1 },
842 { "glGetnUniformuivARB", 43, -1 },
843 { "glGetnUniformdvARB", 43, -1 },
844 { "glDrawArraysInstancedBaseInstance", 43, -1 },
845 { "glDrawElementsInstancedBaseInstance", 43, -1 },
846 { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
847 { "glDrawTransformFeedbackInstanced", 43, -1 },
848 { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
849 // { "glGetInternalformativ", 43, -1 }, // XXX: Add to xml
850 { "glGetActiveAtomicCounterBufferiv", 43, -1 },
851 { "glBindImageTexture", 43, -1 },
852 { "glMemoryBarrier", 43, -1 },
853 { "glTexStorage1D", 43, -1 },
854 { "glTexStorage2D", 43, -1 },
855 { "glTexStorage3D", 43, -1 },
856 { "glTextureStorage1DEXT", 43, -1 },
857 { "glTextureStorage2DEXT", 43, -1 },
858 { "glTextureStorage3DEXT", 43, -1 },
859 { "glClearBufferData", 43, -1 },
860 { "glClearBufferSubData", 43, -1 },
861 // { "glClearNamedBufferDataEXT", 43, -1 }, // XXX: Add to xml
862 // { "glClearNamedBufferSubDataEXT", 43, -1 }, // XXX: Add to xml
863 { "glCopyImageSubData", 43, -1 },
864 { "glTextureView", 43, -1 },
865 { "glBindVertexBuffer", 43, -1 },
866 { "glVertexAttribFormat", 43, -1 },
867 { "glVertexAttribIFormat", 43, -1 },
868 { "glVertexAttribLFormat", 43, -1 },
869 { "glVertexAttribBinding", 43, -1 },
870 { "glVertexBindingDivisor", 43, -1 },
871 // { "glVertexArrayBindVertexBufferEXT", 43, -1 }, // XXX: Add to xml
872 // { "glVertexArrayVertexAttribFormatEXT", 43, -1 }, // XXX: Add to xml
873 // { "glVertexArrayVertexAttribIFormatEXT", 43, -1 }, // XXX: Add to xml
874 // { "glVertexArrayVertexAttribBindingEXT", 43, -1 }, // XXX: Add to xml
875 // { "glVertexArrayVertexBindingDivisorEXT", 43, -1 }, // XXX: Add to xml
876 { "glFramebufferParameteri", 43, -1 },
877 { "glGetFramebufferParameteriv", 43, -1 },
878 { "glNamedFramebufferParameteriEXT", 43, -1 },
879 { "glGetNamedFramebufferParameterivEXT", 43, -1 },
880 // { "glGetInternalformati64v", 43, -1 }, // XXX: Add to xml
881 { "glInvalidateTexSubImage", 43, -1 },
882 { "glInvalidateTexImage", 43, -1 },
883 { "glInvalidateBufferSubData", 43, -1 },
884 { "glInvalidateBufferData", 43, -1 },
885 { "glInvalidateFramebuffer", 43, -1 },
886 { "glInvalidateSubFramebuffer", 43, -1 },
887 { "glMultiDrawArraysIndirect", 43, -1 },
888 { "glMultiDrawElementsIndirect", 43, -1 },
889 { "glGetProgramInterfaceiv", 43, -1 },
890 { "glGetProgramResourceIndex", 43, -1 },
891 { "glGetProgramResourceName", 43, -1 },
892 { "glGetProgramResourceiv", 43, -1 },
893 { "glGetProgramResourceLocation", 43, -1 },
894 { "glGetProgramResourceLocationIndex", 43, -1 },
895 { "glShaderStorageBlockBinding", 43, -1 },
896 // { "glTextureBufferRangeEXT", 43, -1 }, // XXX: Add to xml
897 { "glTexStorage2DMultisample", 43, -1 },
898 { "glTexStorage3DMultisample", 43, -1 },
899 // { "glTextureStorage2DMultisampleEXT", 43, -1 }, // XXX: Add to xml
900 // { "glTextureStorage3DMultisampleEXT", 43, -1 }, // XXX: Add to xml
901
902 { "glViewportArrayv", 43, -1 },
903 { "glViewportIndexedf", 43, -1 },
904 { "glViewportIndexedfv", 43, -1 },
905 { "glScissorArrayv", 43, -1 },
906 { "glScissorIndexed", 43, -1 },
907 { "glScissorIndexedv", 43, -1 },
908 { "glDepthRangeArrayv", 43, -1 },
909 { "glDepthRangeIndexed", 43, -1 },
910
911 /* GL 4.5 */
912 /* aliased versions checked above */
913 //{ "glGetGraphicsResetStatus", 45, -1 },
914 //{ "glReadnPixels", 45, -1 },
915 //{ "glGetnUniformfv", 45, -1 },
916 //{ "glGetnUniformiv", 45, -1 },
917 //{ "glGetnUniformuiv", 45, -1 },
918 { "glMemoryBarrierByRegion", 45, -1 },
919
920 /* GL_ARB_direct_state_access */
921 { "glCreateTransformFeedbacks", 45, -1 },
922 { "glTransformFeedbackBufferBase", 45, -1 },
923 { "glTransformFeedbackBufferRange", 45, -1 },
924 { "glGetTransformFeedbackiv", 45, -1 },
925 { "glGetTransformFeedbacki_v", 45, -1 },
926 { "glGetTransformFeedbacki64_v", 45, -1 },
927 { "glCreateBuffers", 45, -1 },
928 { "glNamedBufferStorage", 45, -1 },
929 { "glNamedBufferData", 45, -1 },
930 { "glNamedBufferSubData", 45, -1 },
931 { "glCopyNamedBufferSubData", 45, -1 },
932 { "glClearNamedBufferData", 45, -1 },
933 { "glClearNamedBufferSubData", 45, -1 },
934 { "glMapNamedBuffer", 45, -1 },
935 { "glMapNamedBufferRange", 45, -1 },
936 { "glFlushMappedNamedBufferRange", 45, -1 },
937 { "glGetNamedBufferParameteriv", 45, -1 },
938 { "glGetNamedBufferParameteri64v", 45, -1 },
939 { "glGetNamedBufferPointerv", 45, -1 },
940 { "glGetNamedBufferSubData", 45, -1 },
941 { "glCreateFramebuffers", 45, -1 },
942 { "glNamedFramebufferRenderbuffer", 45, -1 },
943 { "glNamedFramebufferParameteri", 45, -1 },
944 { "glNamedFramebufferTexture", 45, -1 },
945 { "glNamedFramebufferTextureLayer", 45, -1 },
946 { "glNamedFramebufferDrawBuffer", 45, -1 },
947 { "glNamedFramebufferDrawBuffers", 45, -1 },
948 { "glNamedFramebufferReadBuffer", 45, -1 },
949 { "glInvalidateNamedFramebufferSubData", 45, -1 },
950 { "glInvalidateNamedFramebufferData", 45, -1 },
951 { "glClearNamedFramebufferiv", 45, -1 },
952 { "glClearNamedFramebufferuiv", 45, -1 },
953 { "glClearNamedFramebufferfv", 45, -1 },
954 { "glClearNamedFramebufferfi", 45, -1 },
955 { "glBlitNamedFramebuffer", 45, -1 },
956 { "glCheckNamedFramebufferStatus", 45, -1 },
957 { "glGetNamedFramebufferParameteriv", 45, -1 },
958 { "glGetNamedFramebufferAttachmentParameteriv", 45, -1 },
959 { "glCreateRenderbuffers", 45, -1 },
960 { "glNamedRenderbufferStorage", 45, -1 },
961 { "glNamedRenderbufferStorageMultisample", 45, -1 },
962 { "glGetNamedRenderbufferParameteriv", 45, -1 },
963 { "glCreateTextures", 45, -1 },
964 { "glTextureStorage1D", 45, -1 },
965 { "glTextureStorage2D", 45, -1 },
966 { "glTextureStorage3D", 45, -1 },
967 { "glTextureSubImage1D", 45, -1 },
968 { "glTextureSubImage2D", 45, -1 },
969 { "glTextureSubImage3D", 45, -1 },
970 { "glBindTextureUnit", 45, -1 },
971 { "glTextureParameterf", 45, -1 },
972 { "glTextureParameterfv", 45, -1 },
973 { "glTextureParameteri", 45, -1 },
974 { "glTextureParameterIiv", 45, -1 },
975 { "glTextureParameterIuiv", 45, -1 },
976 { "glTextureParameteriv", 45, -1 },
977 { "glGetTextureLevelParameterfv", 45, -1 },
978 { "glGetTextureLevelParameteriv", 45, -1 },
979 { "glGetTextureParameterfv", 45, -1 },
980 { "glGetTextureParameterIiv", 45, -1 },
981 { "glGetTextureParameterIuiv", 45, -1 },
982 { "glGetTextureParameteriv", 45, -1 },
983 { "glCopyTextureSubImage1D", 45, -1 },
984 { "glCopyTextureSubImage2D", 45, -1 },
985 { "glCopyTextureSubImage3D", 45, -1 },
986 { "glGetTextureImage", 45, -1 },
987 { "glGetCompressedTextureImage", 45, -1 },
988 { "glCompressedTextureSubImage1D", 45, -1 },
989 { "glCompressedTextureSubImage2D", 45, -1 },
990 { "glCompressedTextureSubImage3D", 45, -1 },
991 { "glGenerateTextureMipmap", 45, -1 },
992 { "glTextureStorage2DMultisample", 45, -1 },
993 { "glTextureStorage3DMultisample", 45, -1 },
994 { "glTextureBuffer", 45, -1 },
995 { "glTextureBufferRange", 45, -1 },
996 { "glCreateVertexArrays", 45, -1 },
997 { "glDisableVertexArrayAttrib", 45, -1 },
998 { "glEnableVertexArrayAttrib", 45, -1 },
999 { "glVertexArrayElementBuffer", 45, -1 },
1000 { "glVertexArrayVertexBuffer", 45, -1 },
1001 { "glVertexArrayVertexBuffers", 45, -1 },
1002 { "glVertexArrayAttribFormat", 45, -1 },
1003 { "glVertexArrayAttribIFormat", 45, -1 },
1004 { "glVertexArrayAttribLFormat", 45, -1 },
1005 { "glVertexArrayAttribBinding", 45, -1 },
1006 { "glVertexArrayBindingDivisor", 45, -1 },
1007 { "glGetVertexArrayiv", 45, -1 },
1008 { "glGetVertexArrayIndexediv", 45, -1 },
1009 { "glGetVertexArrayIndexed64iv", 45, -1 },
1010 { "glCreateSamplers", 45, -1 },
1011 { "glCreateProgramPipelines", 45, -1 },
1012 { "glCreateQueries", 45, -1 },
1013 { "glGetQueryBufferObjectiv", 45, -1 },
1014 { "glGetQueryBufferObjectuiv", 45, -1 },
1015 { "glGetQueryBufferObjecti64v", 45, -1 },
1016 { "glGetQueryBufferObjectui64v", 45, -1 },
1017
1018 /* GL_EXT_direct_state_access - GL 1.0 */
1019 { "glMatrixLoadfEXT", 10, -1 },
1020 { "glMatrixLoaddEXT", 10, -1 },
1021 { "glMatrixMultfEXT", 10, -1 },
1022 { "glMatrixMultdEXT", 10, -1 },
1023 { "glMatrixLoadIdentityEXT", 10, -1 },
1024 { "glMatrixRotatefEXT", 10, -1 },
1025 { "glMatrixRotatedEXT", 10, -1 },
1026 { "glMatrixScalefEXT", 10, -1 },
1027 { "glMatrixScaledEXT", 10, -1 },
1028 { "glMatrixTranslatefEXT", 10, -1 },
1029 { "glMatrixTranslatedEXT", 10, -1 },
1030 { "glMatrixOrthoEXT", 10, -1 },
1031 { "glMatrixFrustumEXT", 10, -1 },
1032 { "glMatrixPushEXT", 10, -1 },
1033 { "glMatrixPopEXT", 10, -1 },
1034 /* GL_EXT_direct_state_access - GL 1.1 */
1035 { "glClientAttribDefaultEXT", 11, -1 },
1036 { "glPushClientAttribDefaultEXT", 11, -1 },
1037 { "glTextureParameteriEXT", 11, -1 },
1038 { "glTextureParameterivEXT", 11, -1 },
1039 { "glTextureParameterfEXT", 11, -1 },
1040 { "glTextureParameterfvEXT", 11, -1 },
1041 { "glTextureImage1DEXT", 11, -1 },
1042 { "glTextureImage2DEXT", 11, -1 },
1043 { "glTextureSubImage1DEXT", 11, -1 },
1044 { "glTextureSubImage2DEXT", 11, -1 },
1045 { "glCopyTextureImage1DEXT", 11, -1 },
1046 { "glCopyTextureImage2DEXT", 11, -1 },
1047 { "glCopyTextureSubImage1DEXT", 11, -1 },
1048 { "glCopyTextureSubImage2DEXT", 11, -1 },
1049 { "glGetTextureImageEXT", 11, -1 },
1050 { "glGetTextureParameterfvEXT", 11, -1 },
1051 { "glGetTextureParameterivEXT", 11, -1 },
1052 { "glGetTextureLevelParameterfvEXT", 11, -1 },
1053 { "glGetTextureLevelParameterivEXT", 11, -1 },
1054 /* GL_EXT_direct_state_access - GL 1.2 */
1055 { "glTextureImage3DEXT", 12, -1 },
1056 { "glTextureSubImage3DEXT", 12, -1 },
1057 { "glCopyTextureSubImage3DEXT", 12, -1 },
1058 /* GL_EXT_direct_state_access - GL 1.2.1 */
1059 { "glBindMultiTextureEXT", 12, -1 },
1060 { "glMultiTexCoordPointerEXT", 12, -1 },
1061 { "glMultiTexEnvfEXT", 12, -1 },
1062 { "glMultiTexEnvfvEXT", 12, -1 },
1063 { "glMultiTexEnviEXT", 12, -1 },
1064 { "glMultiTexEnvivEXT", 12, -1 },
1065 { "glMultiTexGendEXT", 12, -1 },
1066 { "glMultiTexGendvEXT", 12, -1 },
1067 { "glMultiTexGenfEXT", 12, -1 },
1068 { "glMultiTexGenfvEXT", 12, -1 },
1069 { "glMultiTexGeniEXT", 12, -1 },
1070 { "glMultiTexGenivEXT", 12, -1 },
1071 { "glGetMultiTexEnvfvEXT", 12, -1 },
1072 { "glGetMultiTexEnvivEXT", 12, -1 },
1073 { "glGetMultiTexGendvEXT", 12, -1 },
1074 { "glGetMultiTexGenfvEXT", 12, -1 },
1075 { "glGetMultiTexGenivEXT", 12, -1 },
1076 { "glMultiTexParameterfEXT", 12, -1 },
1077 { "glMultiTexParameterfvEXT", 12, -1 },
1078 { "glMultiTexParameteriEXT", 12, -1 },
1079 { "glMultiTexParameterivEXT", 12, -1 },
1080 { "glMultiTexImage1DEXT", 12, -1 },
1081 { "glMultiTexImage2DEXT", 12, -1 },
1082 { "glMultiTexSubImage1DEXT", 12, -1 },
1083 { "glMultiTexSubImage2DEXT", 12, -1 },
1084 { "glCopyMultiTexImage1DEXT", 12, -1 },
1085 { "glCopyMultiTexImage2DEXT", 12, -1 },
1086 { "glCopyMultiTexSubImage1DEXT", 12, -1 },
1087 { "glCopyMultiTexSubImage2DEXT", 12, -1 },
1088 { "glGetMultiTexImageEXT", 12, -1 },
1089 { "glGetMultiTexParameterfvEXT", 12, -1 },
1090 { "glGetMultiTexParameterivEXT", 12, -1 },
1091 { "glGetMultiTexLevelParameterfvEXT", 12, -1 },
1092 { "glGetMultiTexLevelParameterivEXT", 12, -1 },
1093 { "glMultiTexImage3DEXT", 12, -1 },
1094 { "glMultiTexSubImage3DEXT", 12, -1 },
1095 { "glCopyMultiTexSubImage3DEXT", 12, -1 },
1096 { "glEnableClientStateIndexedEXT", 12, -1 },
1097 { "glDisableClientStateIndexedEXT", 12, -1 },
1098 { "glGetPointerIndexedvEXT", 12, -1 },
1099 /* GL_EXT_direct_state_access - ARB_vertex_program */
1100 { "glNamedProgramStringEXT", 10, -1 },
1101 { "glNamedProgramLocalParameter4dEXT", 10, -1 },
1102 { "glNamedProgramLocalParameter4dvEXT", 10, -1 },
1103 { "glNamedProgramLocalParameter4fEXT", 10, -1 },
1104 { "glNamedProgramLocalParameter4fvEXT", 10, -1 },
1105 { "glGetNamedProgramLocalParameterdvEXT", 10, -1 },
1106 { "glGetNamedProgramLocalParameterfvEXT", 10, -1 },
1107 { "glGetNamedProgramivEXT", 10, -1 },
1108 { "glGetNamedProgramStringEXT", 10, -1 },
1109 /* GL_EXT_direct_state_access - GL 1.3 */
1110 { "glCompressedTextureImage1DEXT", 13, -1 },
1111 { "glCompressedTextureImage2DEXT", 13, -1 },
1112 { "glCompressedTextureImage3DEXT", 13, -1 },
1113 { "glCompressedTextureSubImage1DEXT", 13, -1 },
1114 { "glCompressedTextureSubImage2DEXT", 13, -1 },
1115 { "glCompressedTextureSubImage3DEXT", 13, -1 },
1116 { "glGetCompressedTextureImageEXT", 13, -1 },
1117 { "glCompressedMultiTexImage1DEXT", 13, -1 },
1118 { "glCompressedMultiTexImage2DEXT", 13, -1 },
1119 { "glCompressedMultiTexImage3DEXT", 13, -1 },
1120 { "glCompressedMultiTexSubImage1DEXT", 13, -1 },
1121 { "glCompressedMultiTexSubImage2DEXT", 13, -1 },
1122 { "glCompressedMultiTexSubImage3DEXT", 13, -1 },
1123 { "glGetCompressedMultiTexImageEXT", 13, -1 },
1124 { "glMatrixLoadTransposefEXT", 13, -1 },
1125 { "glMatrixLoadTransposedEXT", 13, -1 },
1126 { "glMatrixMultTransposefEXT", 13, -1 },
1127 { "glMatrixMultTransposedEXT", 13, -1 },
1128 /* GL_EXT_direct_state_access - GL 1.5 */
1129 { "glNamedBufferDataEXT", 15, -1 },
1130 { "glNamedBufferSubDataEXT", 15, -1 },
1131 { "glMapNamedBufferEXT", 15, -1 },
1132 { "glUnmapNamedBufferEXT", 15, -1 },
1133 { "glGetNamedBufferParameterivEXT", 15, -1 },
1134 { "glGetNamedBufferPointervEXT", 15, -1 },
1135 { "glGetNamedBufferSubDataEXT", 15, -1 },
1136 /* GL_EXT_direct_state_access - GL 2.0 */
1137 /* Added glProgramUniform*EXT functions are aliases */
1138 /* GL_EXT_direct_state_access - GL 2.1 */
1139 /* Added glProgramUniformMAtrix*EXT functions are aliases */
1140 /* GL_EXT_direct_state_access - EXT_texture_buffer_object */
1141 { "glTextureBufferEXT", 10, -1 },
1142 { "glMultiTexBufferEXT", 10, -1 },
1143 /* GL_EXT_direct_state_access - EXT_texture_integer */
1144 { "glTextureParameterIivEXT", 10, -1 },
1145 { "glTextureParameterIuivEXT", 10, -1 },
1146 { "glGetTextureParameterIivEXT", 10, -1 },
1147 { "glGetTextureParameterIuivEXT", 10, -1 },
1148 { "glMultiTexParameterIivEXT", 10, -1 },
1149 { "glMultiTexParameterIuivEXT", 10, -1 },
1150 { "glGetMultiTexParameterIivEXT", 10, -1 },
1151 { "glGetMultiTexParameterIuivEXT", 10, -1 },
1152 /* GL_EXT_direct_state_access - EXT_gpu_shader4 */
1153 /* Added glProgramUniform*u*EXT functions are aliases */
1154 /* GL_EXT_direct_state_access - EXT_gpu_program_parameters */
1155 { "glNamedProgramLocalParameters4fvEXT", 10, -1 },
1156 /* GL_EXT_direct_state_access - GL 3.0 */
1157 { "glNamedRenderbufferStorageEXT", 30, -1 },
1158 { "glGetNamedRenderbufferParameterivEXT", 30, -1 },
1159 { "glNamedRenderbufferStorageMultisampleEXT", 30, -1 },
1160 { "glCheckNamedFramebufferStatusEXT", 30, -1 },
1161 { "glNamedFramebufferTexture1DEXT", 30, -1 },
1162 { "glNamedFramebufferTexture2DEXT", 30, -1 },
1163 { "glNamedFramebufferTexture3DEXT", 30, -1 },
1164 { "glNamedFramebufferRenderbufferEXT", 30, -1 },
1165 { "glGetNamedFramebufferAttachmentParameterivEXT", 30, -1 },
1166 { "glGenerateTextureMipmapEXT", 30, -1 },
1167 { "glGenerateMultiTexMipmapEXT", 30, -1 },
1168 { "glFramebufferDrawBufferEXT", 30, -1 },
1169 { "glFramebufferDrawBuffersEXT", 30, -1 },
1170 { "glFramebufferReadBufferEXT", 30, -1 },
1171 { "glGetFramebufferParameterivEXT", 30, -1 },
1172 { "glNamedCopyBufferSubDataEXT", 30, -1 },
1173 { "glVertexArrayVertexOffsetEXT", 30, -1 },
1174 { "glVertexArrayColorOffsetEXT", 30, -1 },
1175 { "glVertexArrayEdgeFlagOffsetEXT", 30, -1 },
1176 { "glVertexArrayIndexOffsetEXT", 30, -1 },
1177 { "glVertexArrayNormalOffsetEXT", 30, -1 },
1178 { "glVertexArrayTexCoordOffsetEXT", 30, -1 },
1179 { "glVertexArrayMultiTexCoordOffsetEXT", 30, -1 },
1180 { "glVertexArrayFogCoordOffsetEXT", 30, -1 },
1181 { "glVertexArraySecondaryColorOffsetEXT", 30, -1 },
1182 { "glVertexArrayVertexAttribOffsetEXT", 30, -1 },
1183 { "glVertexArrayVertexAttribIOffsetEXT", 30, -1 },
1184 { "glEnableVertexArrayEXT", 30, -1 },
1185 { "glDisableVertexArrayEXT", 30, -1 },
1186 { "glEnableVertexArrayAttribEXT", 30, -1 },
1187 { "glDisableVertexArrayAttribEXT", 30, -1 },
1188 { "glGetVertexArrayIntegervEXT", 30, -1 },
1189 { "glGetVertexArrayPointervEXT", 30, -1 },
1190 { "glGetVertexArrayIntegeri_vEXT", 30, -1 },
1191 { "glGetVertexArrayPointeri_vEXT", 30, -1 },
1192 { "glMapNamedBufferRangeEXT", 30, -1 },
1193 { "glFlushMappedNamedBufferRangeEXT", 30, -1 },
1194
1195 /* GL_ARB_internalformat_query */
1196 { "glGetInternalformativ", 30, -1 },
1197
1198 /* GL_ARB_internalformat_query */
1199 { "glGetInternalformati64v", 30, -1 },
1200
1201 /* GL_ARB_multi_bind */
1202 { "glBindBuffersBase", 44, -1 },
1203 { "glBindBuffersRange", 44, -1 },
1204 { "glBindTextures", 44, -1 },
1205 { "glBindSamplers", 44, -1 },
1206 { "glBindImageTextures", 44, -1 },
1207 { "glBindVertexBuffers", 44, -1 },
1208
1209 /* GL_KHR_debug/GL_ARB_debug_output */
1210 { "glPushDebugGroup", 11, -1 },
1211 { "glPopDebugGroup", 11, -1 },
1212 { "glDebugMessageCallback", 11, -1 },
1213 { "glDebugMessageControl", 11, -1 },
1214 { "glDebugMessageInsert", 11, -1 },
1215 { "glGetDebugMessageLog", 11, -1 },
1216 { "glGetObjectLabel", 11, -1 },
1217 { "glGetObjectPtrLabel", 11, -1 },
1218 { "glObjectLabel", 11, -1 },
1219 { "glObjectPtrLabel", 11, -1 },
1220 /* aliased versions checked above */
1221 //{ "glDebugMessageControlARB", 11, -1 },
1222 //{ "glDebugMessageInsertARB", 11, -1 },
1223 //{ "glDebugMessageCallbackARB", 11, -1 },
1224 //{ "glGetDebugMessageLogARB", 11, -1 },
1225
1226 /* GL_AMD_performance_monitor */
1227 { "glGetPerfMonitorGroupsAMD", 11, -1 },
1228 { "glGetPerfMonitorCountersAMD", 11, -1 },
1229 { "glGetPerfMonitorGroupStringAMD", 11, -1 },
1230 { "glGetPerfMonitorCounterStringAMD", 11, -1 },
1231 { "glGetPerfMonitorCounterInfoAMD", 11, -1 },
1232 { "glGenPerfMonitorsAMD", 11, -1 },
1233 { "glDeletePerfMonitorsAMD", 11, -1 },
1234 { "glSelectPerfMonitorCountersAMD", 11, -1 },
1235 { "glBeginPerfMonitorAMD", 11, -1 },
1236 { "glEndPerfMonitorAMD", 11, -1 },
1237 { "glGetPerfMonitorCounterDataAMD", 11, -1 },
1238
1239 /* GL_INTEL_performance_query */
1240 { "glGetFirstPerfQueryIdINTEL", 30, -1 },
1241 { "glGetNextPerfQueryIdINTEL", 30, -1 },
1242 { "glGetPerfQueryIdByNameINTEL", 30, -1 },
1243 { "glGetPerfQueryInfoINTEL", 30, -1 },
1244 { "glGetPerfCounterInfoINTEL", 30, -1 },
1245 { "glCreatePerfQueryINTEL", 30, -1 },
1246 { "glDeletePerfQueryINTEL", 30, -1 },
1247 { "glBeginPerfQueryINTEL", 30, -1 },
1248 { "glEndPerfQueryINTEL", 30, -1 },
1249 { "glGetPerfQueryDataINTEL", 30, -1 },
1250
1251 /* GL_NV_vdpau_interop */
1252 { "glVDPAUInitNV", 11, -1 },
1253 { "glVDPAUFiniNV", 11, -1 },
1254 { "glVDPAURegisterVideoSurfaceNV", 11, -1 },
1255 { "glVDPAURegisterOutputSurfaceNV", 11, -1 },
1256 { "glVDPAUIsSurfaceNV", 11, -1 },
1257 { "glVDPAUUnregisterSurfaceNV", 11, -1 },
1258 { "glVDPAUGetSurfaceivNV", 11, -1 },
1259 { "glVDPAUSurfaceAccessNV", 11, -1 },
1260 { "glVDPAUMapSurfacesNV", 11, -1 },
1261 { "glVDPAUUnmapSurfacesNV", 11, -1 },
1262
1263 /* GL_ARB_buffer_storage */
1264 { "glBufferStorage", 43, -1 },
1265 { "glNamedBufferStorageEXT", 43, -1 },
1266
1267 /* GL_ARB_clear_texture */
1268 { "glClearTexImage", 13, -1 },
1269 { "glClearTexSubImage", 13, -1 },
1270
1271 /* GL_ARB_clip_control */
1272 { "glClipControl", 45, -1 },
1273
1274 /* GL_ARB_compute_shader */
1275 { "glDispatchCompute", 43, -1 },
1276 { "glDispatchComputeIndirect", 43, -1 },
1277
1278 /* GL_ARB_compute_variable_group_size */
1279 { "glDispatchComputeGroupSizeARB", 43, -1 },
1280
1281 /* GL_EXT_polygon_offset_clamp */
1282 { "glPolygonOffsetClampEXT", 11, -1 },
1283
1284 /* GL_ARB_get_texture_sub_image */
1285 { "glGetTextureSubImage", 20, -1 },
1286 { "glGetCompressedTextureSubImage", 20, -1 },
1287
1288 /* GL_GREMEDY_string_marker */
1289 { "glStringMarkerGREMEDY", 15, -1 },
1290
1291 /* GL_EXT_window_rectangles */
1292 { "glWindowRectanglesEXT", 30, -1 },
1293
1294 /* GL_KHR_blend_equation_advanced */
1295 { "glBlendBarrierKHR", 20, -1 },
1296
1297 /* GL_ARB_sparse_buffer */
1298 { "glBufferPageCommitmentARB", 43, -1 },
1299 { "glNamedBufferPageCommitmentARB", 43, -1 },
1300
1301 /* GL_ARB_bindless_texture */
1302 { "glGetTextureHandleARB", 40, -1 },
1303 { "glGetTextureSamplerHandleARB", 40, -1 },
1304 { "glMakeTextureHandleResidentARB", 40, -1 },
1305 { "glMakeTextureHandleNonResidentARB", 40, -1 },
1306 { "glIsTextureHandleResidentARB", 40, -1 },
1307 { "glGetImageHandleARB", 40, -1 },
1308 { "glMakeImageHandleResidentARB", 40, -1 },
1309 { "glMakeImageHandleNonResidentARB", 40, -1 },
1310 { "glIsImageHandleResidentARB", 40, -1 },
1311 { "glUniformHandleui64ARB", 40, -1 },
1312 { "glUniformHandleui64vARB", 40, -1 },
1313 { "glProgramUniformHandleui64ARB", 40, -1 },
1314 { "glProgramUniformHandleui64vARB", 40, -1 },
1315 { "glVertexAttribL1ui64ARB", 40, -1 },
1316 { "glVertexAttribL1ui64vARB", 40, -1 },
1317 { "glGetVertexAttribLui64vARB", 40, -1 },
1318
1319 /* GL_EXT_external_objects */
1320 { "glGetUnsignedBytevEXT", 45, -1 },
1321 { "glGetUnsignedBytei_vEXT", 45, -1 },
1322 { "glDeleteMemoryObjectsEXT", 45, -1 },
1323 { "glIsMemoryObjectEXT", 45, -1 },
1324 { "glCreateMemoryObjectsEXT", 45, -1 },
1325 { "glMemoryObjectParameterivEXT", 45, -1 },
1326 { "glGetMemoryObjectParameterivEXT", 45, -1 },
1327 { "glTexStorageMem2DEXT", 45, -1 },
1328 { "glTexStorageMem2DMultisampleEXT", 45, -1 },
1329 { "glTexStorageMem3DEXT", 45, -1 },
1330 { "glTexStorageMem3DMultisampleEXT", 45, -1 },
1331 { "glBufferStorageMemEXT", 45, -1 },
1332 { "glTextureStorageMem2DEXT", 45, -1 },
1333 { "glTextureStorageMem2DMultisampleEXT", 45, -1 },
1334 { "glTextureStorageMem3DEXT", 45, -1 },
1335 { "glTextureStorageMem3DMultisampleEXT", 45, -1 },
1336 { "glNamedBufferStorageMemEXT", 45, -1 },
1337 { "glTexStorageMem1DEXT", 45, -1 },
1338 { "glTextureStorageMem1DEXT", 45, -1 },
1339 { "glGenSemaphoresEXT", 45, -1 },
1340 { "glDeleteSemaphoresEXT", 45, -1 },
1341 { "glIsSemaphoreEXT", 45, -1 },
1342 { "glSemaphoreParameterui64vEXT", 45, -1 },
1343 { "glGetSemaphoreParameterui64vEXT", 45, -1 },
1344 { "glWaitSemaphoreEXT", 45, -1 },
1345 { "glSignalSemaphoreEXT", 45, -1 },
1346
1347 /* GL_EXT_external_objects_fd */
1348 { "glImportMemoryFdEXT", 45, -1 },
1349 { "glImportSemaphoreFdEXT", 45, -1 },
1350
1351 /* GL_ARB_gl_spirv */
1352 { "glSpecializeShaderARB", 45, -1 },
1353
1354 /* GL_EXT_shader_framebuffer_fetch_non_coherent */
1355 { "glFramebufferFetchBarrierEXT", 20, -1 },
1356
1357 /* GL_NV_conservative_raster */
1358 { "glSubpixelPrecisionBiasNV", 10, -1 },
1359
1360 /* GL_NV_conservative_raster_dilate */
1361 { "glConservativeRasterParameterfNV", 10, -1 },
1362
1363 /* GL_NV_conservative_raster_pre_snap_triangles */
1364 { "glConservativeRasterParameteriNV", 10, -1 },
1365
1366 /* GL_ARB_sample_locations */
1367 { "glFramebufferSampleLocationsfvARB", 30, -1 },
1368 { "glNamedFramebufferSampleLocationsfvARB", 30, -1 },
1369 { "glEvaluateDepthValuesARB", 30, -1 },
1370
1371 /* GL_ARB_indirect_parameters */
1372 { "glMultiDrawArraysIndirectCountARB", 11, -1 },
1373 { "glMultiDrawElementsIndirectCountARB", 11, -1 },
1374
1375 /* GL_AMD_framebuffer_multisample_advanced */
1376 { "glRenderbufferStorageMultisampleAdvancedAMD", 11, -1 },
1377 { "glNamedRenderbufferStorageMultisampleAdvancedAMD", 11, -1 },
1378
1379 { "glMaxShaderCompilerThreadsKHR", 11, -1 },
1380
1381 /* GL_EXT_shader_image_load_store */
1382 { "glBindImageTextureEXT", 30, -1 },
1383
1384 /* GL_MESA_framebuffer_flip_y */
1385 { "glFramebufferParameteriMESA", 43, -1 },
1386 { "glGetFramebufferParameterivMESA", 43, -1 },
1387
1388 /* GL_ARB_gpu_shader_int64 */
1389 { "glUniform1i64ARB", 40, -1 },
1390 { "glUniform2i64ARB", 40, -1 },
1391 { "glUniform3i64ARB", 40, -1 },
1392 { "glUniform4i64ARB", 40, -1 },
1393 { "glUniform1ui64ARB", 40, -1 },
1394 { "glUniform2ui64ARB", 40, -1 },
1395 { "glUniform3ui64ARB", 40, -1 },
1396 { "glUniform4ui64ARB", 40, -1 },
1397 { "glUniform1i64vARB", 40, -1 },
1398 { "glUniform2i64vARB", 40, -1 },
1399 { "glUniform3i64vARB", 40, -1 },
1400 { "glUniform4i64vARB", 40, -1 },
1401 { "glUniform1ui64vARB", 40, -1 },
1402 { "glUniform2ui64vARB", 40, -1 },
1403 { "glUniform3ui64vARB", 40, -1 },
1404 { "glUniform4ui64vARB", 40, -1 },
1405 { "glGetUniformi64vARB", 40, -1 },
1406 { "glGetUniformui64vARB", 40, -1 },
1407 { "glGetnUniformi64vARB", 40, -1 },
1408 { "glGetnUniformui64vARB", 40, -1 },
1409 { "glProgramUniform1i64ARB", 40, -1 },
1410 { "glProgramUniform2i64ARB", 40, -1 },
1411 { "glProgramUniform3i64ARB", 40, -1 },
1412 { "glProgramUniform4i64ARB", 40, -1 },
1413 { "glProgramUniform1ui64ARB", 40, -1 },
1414 { "glProgramUniform2ui64ARB", 40, -1 },
1415 { "glProgramUniform3ui64ARB", 40, -1 },
1416 { "glProgramUniform4ui64ARB", 40, -1 },
1417 { "glProgramUniform1i64vARB", 40, -1 },
1418 { "glProgramUniform2i64vARB", 40, -1 },
1419 { "glProgramUniform3i64vARB", 40, -1 },
1420 { "glProgramUniform4i64vARB", 40, -1 },
1421 { "glProgramUniform1ui64vARB", 40, -1 },
1422 { "glProgramUniform2ui64vARB", 40, -1 },
1423 { "glProgramUniform3ui64vARB", 40, -1 },
1424 { "glProgramUniform4ui64vARB", 40, -1 },
1425
1426 { NULL, 0, -1 }
1427 };
1428
1429 const struct function gl_compatibility_functions_possible[] = {
1430 { "glNewList", 10, _gloffset_NewList },
1431 { "glEndList", 10, _gloffset_EndList },
1432 { "glCallList", 10, _gloffset_CallList },
1433 { "glCallLists", 10, _gloffset_CallLists },
1434 { "glDeleteLists", 10, _gloffset_DeleteLists },
1435 { "glGenLists", 10, _gloffset_GenLists },
1436 { "glListBase", 10, _gloffset_ListBase },
1437 { "glBegin", 10, _gloffset_Begin },
1438 { "glBitmap", 10, _gloffset_Bitmap },
1439 { "glColor3b", 10, _gloffset_Color3b },
1440 { "glColor3bv", 10, _gloffset_Color3bv },
1441 { "glColor3d", 10, _gloffset_Color3d },
1442 { "glColor3dv", 10, _gloffset_Color3dv },
1443 { "glColor3f", 10, _gloffset_Color3f },
1444 { "glColor3fv", 10, _gloffset_Color3fv },
1445 { "glColor3i", 10, _gloffset_Color3i },
1446 { "glColor3iv", 10, _gloffset_Color3iv },
1447 { "glColor3s", 10, _gloffset_Color3s },
1448 { "glColor3sv", 10, _gloffset_Color3sv },
1449 { "glColor3ub", 10, _gloffset_Color3ub },
1450 { "glColor3ubv", 10, _gloffset_Color3ubv },
1451 { "glColor3ui", 10, _gloffset_Color3ui },
1452 { "glColor3uiv", 10, _gloffset_Color3uiv },
1453 { "glColor3us", 10, _gloffset_Color3us },
1454 { "glColor3usv", 10, _gloffset_Color3usv },
1455 { "glColor4b", 10, _gloffset_Color4b },
1456 { "glColor4bv", 10, _gloffset_Color4bv },
1457 { "glColor4d", 10, _gloffset_Color4d },
1458 { "glColor4dv", 10, _gloffset_Color4dv },
1459 { "glColor4f", 10, _gloffset_Color4f },
1460 { "glColor4fv", 10, _gloffset_Color4fv },
1461 { "glColor4i", 10, _gloffset_Color4i },
1462 { "glColor4iv", 10, _gloffset_Color4iv },
1463 { "glColor4s", 10, _gloffset_Color4s },
1464 { "glColor4sv", 10, _gloffset_Color4sv },
1465 { "glColor4ub", 10, _gloffset_Color4ub },
1466 { "glColor4ubv", 10, _gloffset_Color4ubv },
1467 { "glColor4ui", 10, _gloffset_Color4ui },
1468 { "glColor4uiv", 10, _gloffset_Color4uiv },
1469 { "glColor4us", 10, _gloffset_Color4us },
1470 { "glColor4usv", 10, _gloffset_Color4usv },
1471 { "glEdgeFlag", 10, _gloffset_EdgeFlag },
1472 { "glEdgeFlagv", 10, _gloffset_EdgeFlagv },
1473 { "glEnd", 10, _gloffset_End },
1474 { "glIndexd", 10, _gloffset_Indexd },
1475 { "glIndexdv", 10, _gloffset_Indexdv },
1476 { "glIndexf", 10, _gloffset_Indexf },
1477 { "glIndexfv", 10, _gloffset_Indexfv },
1478 { "glIndexi", 10, _gloffset_Indexi },
1479 { "glIndexiv", 10, _gloffset_Indexiv },
1480 { "glIndexs", 10, _gloffset_Indexs },
1481 { "glIndexsv", 10, _gloffset_Indexsv },
1482 { "glNormal3b", 10, _gloffset_Normal3b },
1483 { "glNormal3bv", 10, _gloffset_Normal3bv },
1484 { "glNormal3d", 10, _gloffset_Normal3d },
1485 { "glNormal3dv", 10, _gloffset_Normal3dv },
1486 { "glNormal3f", 10, _gloffset_Normal3f },
1487 { "glNormal3fv", 10, _gloffset_Normal3fv },
1488 { "glNormal3i", 10, _gloffset_Normal3i },
1489 { "glNormal3iv", 10, _gloffset_Normal3iv },
1490 { "glNormal3s", 10, _gloffset_Normal3s },
1491 { "glNormal3sv", 10, _gloffset_Normal3sv },
1492 { "glRasterPos2d", 10, _gloffset_RasterPos2d },
1493 { "glRasterPos2dv", 10, _gloffset_RasterPos2dv },
1494 { "glRasterPos2f", 10, _gloffset_RasterPos2f },
1495 { "glRasterPos2fv", 10, _gloffset_RasterPos2fv },
1496 { "glRasterPos2i", 10, _gloffset_RasterPos2i },
1497 { "glRasterPos2iv", 10, _gloffset_RasterPos2iv },
1498 { "glRasterPos2s", 10, _gloffset_RasterPos2s },
1499 { "glRasterPos2sv", 10, _gloffset_RasterPos2sv },
1500 { "glRasterPos3d", 10, _gloffset_RasterPos3d },
1501 { "glRasterPos3dv", 10, _gloffset_RasterPos3dv },
1502 { "glRasterPos3f", 10, _gloffset_RasterPos3f },
1503 { "glRasterPos3fv", 10, _gloffset_RasterPos3fv },
1504 { "glRasterPos3i", 10, _gloffset_RasterPos3i },
1505 { "glRasterPos3iv", 10, _gloffset_RasterPos3iv },
1506 { "glRasterPos3s", 10, _gloffset_RasterPos3s },
1507 { "glRasterPos3sv", 10, _gloffset_RasterPos3sv },
1508 { "glRasterPos4d", 10, _gloffset_RasterPos4d },
1509 { "glRasterPos4dv", 10, _gloffset_RasterPos4dv },
1510 { "glRasterPos4f", 10, _gloffset_RasterPos4f },
1511 { "glRasterPos4fv", 10, _gloffset_RasterPos4fv },
1512 { "glRasterPos4i", 10, _gloffset_RasterPos4i },
1513 { "glRasterPos4iv", 10, _gloffset_RasterPos4iv },
1514 { "glRasterPos4s", 10, _gloffset_RasterPos4s },
1515 { "glRasterPos4sv", 10, _gloffset_RasterPos4sv },
1516 { "glRectd", 10, _gloffset_Rectd },
1517 { "glRectdv", 10, _gloffset_Rectdv },
1518 { "glRectf", 10, _gloffset_Rectf },
1519 { "glRectfv", 10, _gloffset_Rectfv },
1520 { "glRecti", 10, _gloffset_Recti },
1521 { "glRectiv", 10, _gloffset_Rectiv },
1522 { "glRects", 10, _gloffset_Rects },
1523 { "glRectsv", 10, _gloffset_Rectsv },
1524 { "glTexCoord1d", 10, _gloffset_TexCoord1d },
1525 { "glTexCoord1dv", 10, _gloffset_TexCoord1dv },
1526 { "glTexCoord1f", 10, _gloffset_TexCoord1f },
1527 { "glTexCoord1fv", 10, _gloffset_TexCoord1fv },
1528 { "glTexCoord1i", 10, _gloffset_TexCoord1i },
1529 { "glTexCoord1iv", 10, _gloffset_TexCoord1iv },
1530 { "glTexCoord1s", 10, _gloffset_TexCoord1s },
1531 { "glTexCoord1sv", 10, _gloffset_TexCoord1sv },
1532 { "glTexCoord2d", 10, _gloffset_TexCoord2d },
1533 { "glTexCoord2dv", 10, _gloffset_TexCoord2dv },
1534 { "glTexCoord2f", 10, _gloffset_TexCoord2f },
1535 { "glTexCoord2fv", 10, _gloffset_TexCoord2fv },
1536 { "glTexCoord2i", 10, _gloffset_TexCoord2i },
1537 { "glTexCoord2iv", 10, _gloffset_TexCoord2iv },
1538 { "glTexCoord2s", 10, _gloffset_TexCoord2s },
1539 { "glTexCoord2sv", 10, _gloffset_TexCoord2sv },
1540 { "glTexCoord3d", 10, _gloffset_TexCoord3d },
1541 { "glTexCoord3dv", 10, _gloffset_TexCoord3dv },
1542 { "glTexCoord3f", 10, _gloffset_TexCoord3f },
1543 { "glTexCoord3fv", 10, _gloffset_TexCoord3fv },
1544 { "glTexCoord3i", 10, _gloffset_TexCoord3i },
1545 { "glTexCoord3iv", 10, _gloffset_TexCoord3iv },
1546 { "glTexCoord3s", 10, _gloffset_TexCoord3s },
1547 { "glTexCoord3sv", 10, _gloffset_TexCoord3sv },
1548 { "glTexCoord4d", 10, _gloffset_TexCoord4d },
1549 { "glTexCoord4dv", 10, _gloffset_TexCoord4dv },
1550 { "glTexCoord4f", 10, _gloffset_TexCoord4f },
1551 { "glTexCoord4fv", 10, _gloffset_TexCoord4fv },
1552 { "glTexCoord4i", 10, _gloffset_TexCoord4i },
1553 { "glTexCoord4iv", 10, _gloffset_TexCoord4iv },
1554 { "glTexCoord4s", 10, _gloffset_TexCoord4s },
1555 { "glTexCoord4sv", 10, _gloffset_TexCoord4sv },
1556 { "glVertex2d", 10, _gloffset_Vertex2d },
1557 { "glVertex2dv", 10, _gloffset_Vertex2dv },
1558 { "glVertex2f", 10, _gloffset_Vertex2f },
1559 { "glVertex2fv", 10, _gloffset_Vertex2fv },
1560 { "glVertex2i", 10, _gloffset_Vertex2i },
1561 { "glVertex2iv", 10, _gloffset_Vertex2iv },
1562 { "glVertex2s", 10, _gloffset_Vertex2s },
1563 { "glVertex2sv", 10, _gloffset_Vertex2sv },
1564 { "glVertex3d", 10, _gloffset_Vertex3d },
1565 { "glVertex3dv", 10, _gloffset_Vertex3dv },
1566 { "glVertex3f", 10, _gloffset_Vertex3f },
1567 { "glVertex3fv", 10, _gloffset_Vertex3fv },
1568 { "glVertex3i", 10, _gloffset_Vertex3i },
1569 { "glVertex3iv", 10, _gloffset_Vertex3iv },
1570 { "glVertex3s", 10, _gloffset_Vertex3s },
1571 { "glVertex3sv", 10, _gloffset_Vertex3sv },
1572 { "glVertex4d", 10, _gloffset_Vertex4d },
1573 { "glVertex4dv", 10, _gloffset_Vertex4dv },
1574 { "glVertex4f", 10, _gloffset_Vertex4f },
1575 { "glVertex4fv", 10, _gloffset_Vertex4fv },
1576 { "glVertex4i", 10, _gloffset_Vertex4i },
1577 { "glVertex4iv", 10, _gloffset_Vertex4iv },
1578 { "glVertex4s", 10, _gloffset_Vertex4s },
1579 { "glVertex4sv", 10, _gloffset_Vertex4sv },
1580 { "glClipPlane", 10, _gloffset_ClipPlane },
1581 { "glColorMaterial", 10, _gloffset_ColorMaterial },
1582 { "glFogf", 10, _gloffset_Fogf },
1583 { "glFogfv", 10, _gloffset_Fogfv },
1584 { "glFogi", 10, _gloffset_Fogi },
1585 { "glFogiv", 10, _gloffset_Fogiv },
1586 { "glLightf", 10, _gloffset_Lightf },
1587 { "glLightfv", 10, _gloffset_Lightfv },
1588 { "glLighti", 10, _gloffset_Lighti },
1589 { "glLightiv", 10, _gloffset_Lightiv },
1590 { "glLightModelf", 10, _gloffset_LightModelf },
1591 { "glLightModelfv", 10, _gloffset_LightModelfv },
1592 { "glLightModeli", 10, _gloffset_LightModeli },
1593 { "glLightModeliv", 10, _gloffset_LightModeliv },
1594 { "glLineStipple", 10, _gloffset_LineStipple },
1595 { "glMaterialf", 10, _gloffset_Materialf },
1596 { "glMaterialfv", 10, _gloffset_Materialfv },
1597 { "glMateriali", 10, _gloffset_Materiali },
1598 { "glMaterialiv", 10, _gloffset_Materialiv },
1599 { "glPolygonStipple", 10, _gloffset_PolygonStipple },
1600 { "glShadeModel", 10, _gloffset_ShadeModel },
1601 { "glTexEnvf", 10, _gloffset_TexEnvf },
1602 { "glTexEnvfv", 10, _gloffset_TexEnvfv },
1603 { "glTexEnvi", 10, _gloffset_TexEnvi },
1604 { "glTexEnviv", 10, _gloffset_TexEnviv },
1605 { "glTexGend", 10, _gloffset_TexGend },
1606 { "glTexGendv", 10, _gloffset_TexGendv },
1607 { "glTexGenf", 10, _gloffset_TexGenf },
1608 { "glTexGenfv", 10, _gloffset_TexGenfv },
1609 { "glTexGeni", 10, _gloffset_TexGeni },
1610 { "glTexGeniv", 10, _gloffset_TexGeniv },
1611 { "glFeedbackBuffer", 10, _gloffset_FeedbackBuffer },
1612 { "glSelectBuffer", 10, _gloffset_SelectBuffer },
1613 { "glRenderMode", 10, _gloffset_RenderMode },
1614 { "glInitNames", 10, _gloffset_InitNames },
1615 { "glLoadName", 10, _gloffset_LoadName },
1616 { "glPassThrough", 10, _gloffset_PassThrough },
1617 { "glPopName", 10, _gloffset_PopName },
1618 { "glPushName", 10, _gloffset_PushName },
1619 { "glClearAccum", 10, _gloffset_ClearAccum },
1620 { "glClearIndex", 10, _gloffset_ClearIndex },
1621 { "glIndexMask", 10, _gloffset_IndexMask },
1622 { "glAccum", 10, _gloffset_Accum },
1623 { "glPopAttrib", 10, _gloffset_PopAttrib },
1624 { "glPushAttrib", 10, _gloffset_PushAttrib },
1625 { "glMap1d", 10, _gloffset_Map1d },
1626 { "glMap1f", 10, _gloffset_Map1f },
1627 { "glMap2d", 10, _gloffset_Map2d },
1628 { "glMap2f", 10, _gloffset_Map2f },
1629 { "glMapGrid1d", 10, _gloffset_MapGrid1d },
1630 { "glMapGrid1f", 10, _gloffset_MapGrid1f },
1631 { "glMapGrid2d", 10, _gloffset_MapGrid2d },
1632 { "glMapGrid2f", 10, _gloffset_MapGrid2f },
1633 { "glEvalCoord1d", 10, _gloffset_EvalCoord1d },
1634 { "glEvalCoord1dv", 10, _gloffset_EvalCoord1dv },
1635 { "glEvalCoord1f", 10, _gloffset_EvalCoord1f },
1636 { "glEvalCoord1fv", 10, _gloffset_EvalCoord1fv },
1637 { "glEvalCoord2d", 10, _gloffset_EvalCoord2d },
1638 { "glEvalCoord2dv", 10, _gloffset_EvalCoord2dv },
1639 { "glEvalCoord2f", 10, _gloffset_EvalCoord2f },
1640 { "glEvalCoord2fv", 10, _gloffset_EvalCoord2fv },
1641 { "glEvalMesh1", 10, _gloffset_EvalMesh1 },
1642 { "glEvalPoint1", 10, _gloffset_EvalPoint1 },
1643 { "glEvalMesh2", 10, _gloffset_EvalMesh2 },
1644 { "glEvalPoint2", 10, _gloffset_EvalPoint2 },
1645 { "glAlphaFunc", 10, _gloffset_AlphaFunc },
1646 { "glPixelZoom", 10, _gloffset_PixelZoom },
1647 { "glPixelTransferf", 10, _gloffset_PixelTransferf },
1648 { "glPixelTransferi", 10, _gloffset_PixelTransferi },
1649 { "glPixelMapfv", 10, _gloffset_PixelMapfv },
1650 { "glPixelMapuiv", 10, _gloffset_PixelMapuiv },
1651 { "glPixelMapusv", 10, _gloffset_PixelMapusv },
1652 { "glCopyPixels", 10, _gloffset_CopyPixels },
1653 { "glDrawPixels", 10, _gloffset_DrawPixels },
1654 { "glGetClipPlane", 10, _gloffset_GetClipPlane },
1655 { "glGetLightfv", 10, _gloffset_GetLightfv },
1656 { "glGetLightiv", 10, _gloffset_GetLightiv },
1657 { "glGetMapdv", 10, _gloffset_GetMapdv },
1658 { "glGetMapfv", 10, _gloffset_GetMapfv },
1659 { "glGetMapiv", 10, _gloffset_GetMapiv },
1660 { "glGetMaterialfv", 10, _gloffset_GetMaterialfv },
1661 { "glGetMaterialiv", 10, _gloffset_GetMaterialiv },
1662 { "glGetPixelMapfv", 10, _gloffset_GetPixelMapfv },
1663 { "glGetPixelMapuiv", 10, _gloffset_GetPixelMapuiv },
1664 { "glGetPixelMapusv", 10, _gloffset_GetPixelMapusv },
1665 { "glGetPolygonStipple", 10, _gloffset_GetPolygonStipple },
1666 { "glGetTexEnvfv", 10, _gloffset_GetTexEnvfv },
1667 { "glGetTexEnviv", 10, _gloffset_GetTexEnviv },
1668 { "glGetTexGendv", 10, _gloffset_GetTexGendv },
1669 { "glGetTexGenfv", 10, _gloffset_GetTexGenfv },
1670 { "glGetTexGeniv", 10, _gloffset_GetTexGeniv },
1671 { "glIsList", 10, _gloffset_IsList },
1672 { "glFrustum", 10, _gloffset_Frustum },
1673 { "glLoadIdentity", 10, _gloffset_LoadIdentity },
1674 { "glLoadMatrixf", 10, _gloffset_LoadMatrixf },
1675 { "glLoadMatrixd", 10, _gloffset_LoadMatrixd },
1676 { "glMatrixMode", 10, _gloffset_MatrixMode },
1677 { "glMultMatrixf", 10, _gloffset_MultMatrixf },
1678 { "glMultMatrixd", 10, _gloffset_MultMatrixd },
1679 { "glOrtho", 10, _gloffset_Ortho },
1680 { "glPopMatrix", 10, _gloffset_PopMatrix },
1681 { "glPushMatrix", 10, _gloffset_PushMatrix },
1682 { "glRotated", 10, _gloffset_Rotated },
1683 { "glRotatef", 10, _gloffset_Rotatef },
1684 { "glScaled", 10, _gloffset_Scaled },
1685 { "glScalef", 10, _gloffset_Scalef },
1686 { "glTranslated", 10, _gloffset_Translated },
1687 { "glTranslatef", 10, _gloffset_Translatef },
1688 { "glArrayElement", 10, _gloffset_ArrayElement },
1689 { "glColorPointer", 10, _gloffset_ColorPointer },
1690 { "glDisableClientState", 10, _gloffset_DisableClientState },
1691 { "glEdgeFlagPointer", 10, _gloffset_EdgeFlagPointer },
1692 { "glEnableClientState", 10, _gloffset_EnableClientState },
1693 { "glIndexPointer", 10, _gloffset_IndexPointer },
1694 { "glInterleavedArrays", 10, _gloffset_InterleavedArrays },
1695 { "glNormalPointer", 10, _gloffset_NormalPointer },
1696 { "glTexCoordPointer", 10, _gloffset_TexCoordPointer },
1697 { "glVertexPointer", 10, _gloffset_VertexPointer },
1698 { "glAreTexturesResident", 10, _gloffset_AreTexturesResident },
1699 { "glPrioritizeTextures", 10, _gloffset_PrioritizeTextures },
1700 { "glIndexub", 10, _gloffset_Indexub },
1701 { "glIndexubv", 10, _gloffset_Indexubv },
1702 { "glPopClientAttrib", 10, _gloffset_PopClientAttrib },
1703 { "glPushClientAttrib", 10, _gloffset_PushClientAttrib },
1704 { "glColorTable", 10, _gloffset_ColorTable },
1705 { "glColorTableParameterfv", 10, _gloffset_ColorTableParameterfv },
1706 { "glColorTableParameteriv", 10, _gloffset_ColorTableParameteriv },
1707 { "glCopyColorTable", 10, _gloffset_CopyColorTable },
1708 { "glGetColorTable", 10, _gloffset_GetColorTable },
1709 { "glGetColorTableParameterfv", 10, _gloffset_GetColorTableParameterfv },
1710 { "glGetColorTableParameteriv", 10, _gloffset_GetColorTableParameteriv },
1711 { "glColorSubTable", 10, _gloffset_ColorSubTable },
1712 { "glCopyColorSubTable", 10, _gloffset_CopyColorSubTable },
1713 { "glConvolutionFilter1D", 10, _gloffset_ConvolutionFilter1D },
1714 { "glConvolutionFilter2D", 10, _gloffset_ConvolutionFilter2D },
1715 { "glConvolutionParameterf", 10, _gloffset_ConvolutionParameterf },
1716 { "glConvolutionParameterfv", 10, _gloffset_ConvolutionParameterfv },
1717 { "glConvolutionParameteri", 10, _gloffset_ConvolutionParameteri },
1718 { "glConvolutionParameteriv", 10, _gloffset_ConvolutionParameteriv },
1719 { "glCopyConvolutionFilter1D", 10, _gloffset_CopyConvolutionFilter1D },
1720 { "glCopyConvolutionFilter2D", 10, _gloffset_CopyConvolutionFilter2D },
1721 { "glGetConvolutionFilter", 10, _gloffset_GetConvolutionFilter },
1722 { "glGetConvolutionParameterfv", 10, _gloffset_GetConvolutionParameterfv },
1723 { "glGetConvolutionParameteriv", 10, _gloffset_GetConvolutionParameteriv },
1724 { "glGetSeparableFilter", 10, _gloffset_GetSeparableFilter },
1725 { "glSeparableFilter2D", 10, _gloffset_SeparableFilter2D },
1726 { "glGetHistogram", 10, _gloffset_GetHistogram },
1727 { "glGetHistogramParameterfv", 10, _gloffset_GetHistogramParameterfv },
1728 { "glGetHistogramParameteriv", 10, _gloffset_GetHistogramParameteriv },
1729 { "glGetMinmax", 10, _gloffset_GetMinmax },
1730 { "glGetMinmaxParameterfv", 10, _gloffset_GetMinmaxParameterfv },
1731 { "glGetMinmaxParameteriv", 10, _gloffset_GetMinmaxParameteriv },
1732 { "glHistogram", 10, _gloffset_Histogram },
1733 { "glMinmax", 10, _gloffset_Minmax },
1734 { "glResetHistogram", 10, _gloffset_ResetHistogram },
1735 { "glResetMinmax", 10, _gloffset_ResetMinmax },
1736 { "glClientActiveTexture", 10, _gloffset_ClientActiveTexture },
1737 { "glMultiTexCoord1d", 10, _gloffset_MultiTexCoord1d },
1738 { "glMultiTexCoord1dv", 10, _gloffset_MultiTexCoord1dv },
1739 { "glMultiTexCoord1f", 10, _gloffset_MultiTexCoord1fARB },
1740 { "glMultiTexCoord1fv", 10, _gloffset_MultiTexCoord1fvARB },
1741 { "glMultiTexCoord1i", 10, _gloffset_MultiTexCoord1i },
1742 { "glMultiTexCoord1iv", 10, _gloffset_MultiTexCoord1iv },
1743 { "glMultiTexCoord1s", 10, _gloffset_MultiTexCoord1s },
1744 { "glMultiTexCoord1sv", 10, _gloffset_MultiTexCoord1sv },
1745 { "glMultiTexCoord2d", 10, _gloffset_MultiTexCoord2d },
1746 { "glMultiTexCoord2dv", 10, _gloffset_MultiTexCoord2dv },
1747 { "glMultiTexCoord2f", 10, _gloffset_MultiTexCoord2fARB },
1748 { "glMultiTexCoord2fv", 10, _gloffset_MultiTexCoord2fvARB },
1749 { "glMultiTexCoord2i", 10, _gloffset_MultiTexCoord2i },
1750 { "glMultiTexCoord2iv", 10, _gloffset_MultiTexCoord2iv },
1751 { "glMultiTexCoord2s", 10, _gloffset_MultiTexCoord2s },
1752 { "glMultiTexCoord2sv", 10, _gloffset_MultiTexCoord2sv },
1753 { "glMultiTexCoord3d", 10, _gloffset_MultiTexCoord3d },
1754 { "glMultiTexCoord3dv", 10, _gloffset_MultiTexCoord3dv },
1755 { "glMultiTexCoord3f", 10, _gloffset_MultiTexCoord3fARB },
1756 { "glMultiTexCoord3fv", 10, _gloffset_MultiTexCoord3fvARB },
1757 { "glMultiTexCoord3i", 10, _gloffset_MultiTexCoord3i },
1758 { "glMultiTexCoord3iv", 10, _gloffset_MultiTexCoord3iv },
1759 { "glMultiTexCoord3s", 10, _gloffset_MultiTexCoord3s },
1760 { "glMultiTexCoord3sv", 10, _gloffset_MultiTexCoord3sv },
1761 { "glMultiTexCoord4d", 10, _gloffset_MultiTexCoord4d },
1762 { "glMultiTexCoord4dv", 10, _gloffset_MultiTexCoord4dv },
1763 { "glMultiTexCoord4f", 10, _gloffset_MultiTexCoord4fARB },
1764 { "glMultiTexCoord4fv", 10, _gloffset_MultiTexCoord4fvARB },
1765 { "glMultiTexCoord4i", 10, _gloffset_MultiTexCoord4i },
1766 { "glMultiTexCoord4iv", 10, _gloffset_MultiTexCoord4iv },
1767 { "glMultiTexCoord4s", 10, _gloffset_MultiTexCoord4s },
1768 { "glMultiTexCoord4sv", 10, _gloffset_MultiTexCoord4sv },
1769 { "glLoadTransposeMatrixf", 10, -1 },
1770 { "glLoadTransposeMatrixd", 10, -1 },
1771 { "glMultTransposeMatrixf", 10, -1 },
1772 { "glMultTransposeMatrixd", 10, -1 },
1773 { "glFogCoordf", 10, -1 },
1774 { "glFogCoordfv", 10, -1 },
1775 { "glFogCoordd", 10, -1 },
1776 { "glFogCoorddv", 10, -1 },
1777 { "glFogCoordPointer", 10, -1 },
1778 { "glSecondaryColor3b", 10, -1 },
1779 { "glSecondaryColor3bv", 10, -1 },
1780 { "glSecondaryColor3d", 10, -1 },
1781 { "glSecondaryColor3dv", 10, -1 },
1782 { "glSecondaryColor3f", 10, -1 },
1783 { "glSecondaryColor3fv", 10, -1 },
1784 { "glSecondaryColor3i", 10, -1 },
1785 { "glSecondaryColor3iv", 10, -1 },
1786 { "glSecondaryColor3s", 10, -1 },
1787 { "glSecondaryColor3sv", 10, -1 },
1788 { "glSecondaryColor3ub", 10, -1 },
1789 { "glSecondaryColor3ubv", 10, -1 },
1790 { "glSecondaryColor3ui", 10, -1 },
1791 { "glSecondaryColor3uiv", 10, -1 },
1792 { "glSecondaryColor3us", 10, -1 },
1793 { "glSecondaryColor3usv", 10, -1 },
1794 { "glSecondaryColorPointer", 10, -1 },
1795 { "glWindowPos2d", 10, -1 },
1796 { "glWindowPos2dv", 10, -1 },
1797 { "glWindowPos2f", 10, -1 },
1798 { "glWindowPos2fv", 10, -1 },
1799 { "glWindowPos2i", 10, -1 },
1800 { "glWindowPos2iv", 10, -1 },
1801 { "glWindowPos2s", 10, -1 },
1802 { "glWindowPos2sv", 10, -1 },
1803 { "glWindowPos3d", 10, -1 },
1804 { "glWindowPos3dv", 10, -1 },
1805 { "glWindowPos3f", 10, -1 },
1806 { "glWindowPos3fv", 10, -1 },
1807 { "glWindowPos3i", 10, -1 },
1808 { "glWindowPos3iv", 10, -1 },
1809 { "glWindowPos3s", 10, -1 },
1810 { "glWindowPos3sv", 10, -1 },
1811 { "glProgramStringARB", 10, -1 },
1812 { "glProgramEnvParameter4dARB", 10, -1 },
1813 { "glProgramEnvParameter4dvARB", 10, -1 },
1814 { "glProgramEnvParameter4fARB", 10, -1 },
1815 { "glProgramEnvParameter4fvARB", 10, -1 },
1816 { "glProgramLocalParameter4dARB", 10, -1 },
1817 { "glProgramLocalParameter4dvARB", 10, -1 },
1818 { "glProgramLocalParameter4fARB", 10, -1 },
1819 { "glProgramLocalParameter4fvARB", 10, -1 },
1820 { "glGetProgramEnvParameterdvARB", 10, -1 },
1821 { "glGetProgramEnvParameterfvARB", 10, -1 },
1822 { "glGetProgramLocalParameterdvARB", 10, -1 },
1823 { "glGetProgramLocalParameterfvARB", 10, -1 },
1824 { "glGetProgramivARB", 10, -1 },
1825 { "glGetProgramStringARB", 10, -1 },
1826 { "glColorPointerEXT", 10, -1 },
1827 { "glEdgeFlagPointerEXT", 10, -1 },
1828 { "glIndexPointerEXT", 10, -1 },
1829 { "glNormalPointerEXT", 10, -1 },
1830 { "glTexCoordPointerEXT", 10, -1 },
1831 { "glVertexPointerEXT", 10, -1 },
1832 { "glLockArraysEXT", 10, -1 },
1833 { "glUnlockArraysEXT", 10, -1 },
1834 { "glWindowPos4dMESA", 10, -1 },
1835 { "glWindowPos4dvMESA", 10, -1 },
1836 { "glWindowPos4fMESA", 10, -1 },
1837 { "glWindowPos4fvMESA", 10, -1 },
1838 { "glWindowPos4iMESA", 10, -1 },
1839 { "glWindowPos4ivMESA", 10, -1 },
1840 { "glWindowPos4sMESA", 10, -1 },
1841 { "glWindowPos4svMESA", 10, -1 },
1842 { "glBindProgramNV", 10, -1 },
1843 { "glDeleteProgramsNV", 10, -1 },
1844 { "glGenProgramsNV", 10, -1 },
1845 { "glIsProgramNV", 10, -1 },
1846 { "glVertexAttrib1sNV", 10, -1 },
1847 { "glVertexAttrib1svNV", 10, -1 },
1848 { "glVertexAttrib2sNV", 10, -1 },
1849 { "glVertexAttrib2svNV", 10, -1 },
1850 { "glVertexAttrib3sNV", 10, -1 },
1851 { "glVertexAttrib3svNV", 10, -1 },
1852 { "glVertexAttrib4sNV", 10, -1 },
1853 { "glVertexAttrib4svNV", 10, -1 },
1854 { "glVertexAttrib1fNV", 10, -1 },
1855 { "glVertexAttrib1fvNV", 10, -1 },
1856 { "glVertexAttrib2fNV", 10, -1 },
1857 { "glVertexAttrib2fvNV", 10, -1 },
1858 { "glVertexAttrib3fNV", 10, -1 },
1859 { "glVertexAttrib3fvNV", 10, -1 },
1860 { "glVertexAttrib4fNV", 10, -1 },
1861 { "glVertexAttrib4fvNV", 10, -1 },
1862 { "glVertexAttrib1dNV", 10, -1 },
1863 { "glVertexAttrib1dvNV", 10, -1 },
1864 { "glVertexAttrib2dNV", 10, -1 },
1865 { "glVertexAttrib2dvNV", 10, -1 },
1866 { "glVertexAttrib3dNV", 10, -1 },
1867 { "glVertexAttrib3dvNV", 10, -1 },
1868 { "glVertexAttrib4dNV", 10, -1 },
1869 { "glVertexAttrib4dvNV", 10, -1 },
1870 { "glVertexAttrib4ubNV", 10, -1 },
1871 { "glVertexAttrib4ubvNV", 10, -1 },
1872 { "glVertexAttribs1svNV", 10, -1 },
1873 { "glVertexAttribs2svNV", 10, -1 },
1874 { "glVertexAttribs3svNV", 10, -1 },
1875 { "glVertexAttribs4svNV", 10, -1 },
1876 { "glVertexAttribs1fvNV", 10, -1 },
1877 { "glVertexAttribs2fvNV", 10, -1 },
1878 { "glVertexAttribs3fvNV", 10, -1 },
1879 { "glVertexAttribs4fvNV", 10, -1 },
1880 { "glVertexAttribs1dvNV", 10, -1 },
1881 { "glVertexAttribs2dvNV", 10, -1 },
1882 { "glVertexAttribs3dvNV", 10, -1 },
1883 { "glVertexAttribs4dvNV", 10, -1 },
1884 { "glVertexAttribs4ubvNV", 10, -1 },
1885 { "glGenFragmentShadersATI", 10, -1 },
1886 { "glBindFragmentShaderATI", 10, -1 },
1887 { "glDeleteFragmentShaderATI", 10, -1 },
1888 { "glBeginFragmentShaderATI", 10, -1 },
1889 { "glEndFragmentShaderATI", 10, -1 },
1890 { "glPassTexCoordATI", 10, -1 },
1891 { "glSampleMapATI", 10, -1 },
1892 { "glColorFragmentOp1ATI", 10, -1 },
1893 { "glColorFragmentOp2ATI", 10, -1 },
1894 { "glColorFragmentOp3ATI", 10, -1 },
1895 { "glAlphaFragmentOp1ATI", 10, -1 },
1896 { "glAlphaFragmentOp2ATI", 10, -1 },
1897 { "glAlphaFragmentOp3ATI", 10, -1 },
1898 { "glSetFragmentShaderConstantATI", 10, -1 },
1899 { "glActiveStencilFaceEXT", 10, -1 },
1900 { "glStencilFuncSeparateATI", 10, -1 },
1901 { "glProgramEnvParameters4fvEXT", 10, -1 },
1902 { "glProgramLocalParameters4fvEXT", 10, -1 },
1903 { "glPrimitiveRestartNV", 10, -1 },
1904
1905 { NULL, 0, -1 }
1906 };
1907
1908 const struct function gl_core_functions_possible[] = {
1909 /* GL_ARB_ES3_2_compatibility */
1910 { "glPrimitiveBoundingBoxARB", 45, -1 },
1911
1912 /* GL_ARB_gl_spirv */
1913 { "glSpecializeShaderARB", 45, -1 },
1914
1915 { NULL, 0, -1 }
1916 };
1917
1918 const struct function gles11_functions_possible[] = {
1919 { "glActiveTexture", 11, _gloffset_ActiveTexture },
1920 { "glAlphaFunc", 11, _gloffset_AlphaFunc },
1921 { "glAlphaFuncx", 11, -1 },
1922 { "glBindBuffer", 11, -1 },
1923 { "glBindFramebufferOES", 11, -1 },
1924 { "glBindRenderbufferOES", 11, -1 },
1925 { "glBindTexture", 11, _gloffset_BindTexture },
1926 { "glBlendEquationOES", 11, _gloffset_BlendEquation },
1927 { "glBlendEquationSeparateOES", 11, -1 },
1928 { "glBlendFunc", 11, _gloffset_BlendFunc },
1929 { "glBlendFuncSeparateOES", 11, -1 },
1930 { "glBufferData", 11, -1 },
1931 { "glBufferSubData", 11, -1 },
1932 { "glCheckFramebufferStatusOES", 11, -1 },
1933 { "glClear", 11, _gloffset_Clear },
1934 { "glClearColor", 11, _gloffset_ClearColor },
1935 { "glClearColorx", 11, -1 },
1936 { "glClearDepthf", 11, -1 },
1937 { "glClearDepthx", 11, -1 },
1938 { "glClearStencil", 11, _gloffset_ClearStencil },
1939 { "glClientActiveTexture", 11, _gloffset_ClientActiveTexture },
1940 { "glClipPlanef", 11, -1 },
1941 { "glClipPlanex", 11, -1 },
1942 { "glColor4f", 11, _gloffset_Color4f },
1943 { "glColor4ub", 11, _gloffset_Color4ub },
1944 { "glColor4x", 11, -1 },
1945 { "glColorMask", 11, _gloffset_ColorMask },
1946 { "glColorPointer", 11, _gloffset_ColorPointer },
1947 { "glCompressedTexImage2D", 11, -1 },
1948 { "glCompressedTexSubImage2D", 11, -1 },
1949 { "glCopyTexImage2D", 11, _gloffset_CopyTexImage2D },
1950 { "glCopyTexSubImage2D", 11, _gloffset_CopyTexSubImage2D },
1951 { "glCullFace", 11, _gloffset_CullFace },
1952 { "glDeleteBuffers", 11, -1 },
1953 { "glDeleteFramebuffersOES", 11, -1 },
1954 { "glDeleteRenderbuffersOES", 11, -1 },
1955 { "glDeleteTextures", 11, _gloffset_DeleteTextures },
1956 { "glDepthFunc", 11, _gloffset_DepthFunc },
1957 { "glDepthMask", 11, _gloffset_DepthMask },
1958 { "glDepthRangef", 11, -1 },
1959 { "glDepthRangex", 11, -1 },
1960 { "glDisable", 11, _gloffset_Disable },
1961 { "glDiscardFramebufferEXT", 11, -1 },
1962 { "glDisableClientState", 11, _gloffset_DisableClientState },
1963 { "glDrawArrays", 11, _gloffset_DrawArrays },
1964 { "glDrawElements", 11, _gloffset_DrawElements },
1965 { "glDrawTexfOES", 11, -1 },
1966 { "glDrawTexfvOES", 11, -1 },
1967 { "glDrawTexiOES", 11, -1 },
1968 { "glDrawTexivOES", 11, -1 },
1969 { "glDrawTexsOES", 11, -1 },
1970 { "glDrawTexsvOES", 11, -1 },
1971 { "glDrawTexxOES", 11, -1 },
1972 { "glDrawTexxvOES", 11, -1 },
1973 { "glEGLImageTargetRenderbufferStorageOES", 11, -1 },
1974 { "glEGLImageTargetTexture2DOES", 11, -1 },
1975 { "glEnable", 11, _gloffset_Enable },
1976 { "glEnableClientState", 11, _gloffset_EnableClientState },
1977 { "glFinish", 11, _gloffset_Finish },
1978 { "glFlush", 11, _gloffset_Flush },
1979 { "glFlushMappedBufferRangeEXT", 11, -1 },
1980 { "glFogf", 11, _gloffset_Fogf },
1981 { "glFogfv", 11, _gloffset_Fogfv },
1982 { "glFogx", 11, -1 },
1983 { "glFogxv", 11, -1 },
1984 { "glFramebufferRenderbufferOES", 11, -1 },
1985 { "glFramebufferTexture2DOES", 11, -1 },
1986 { "glFrontFace", 11, _gloffset_FrontFace },
1987 { "glFrustumf", 11, -1 },
1988 { "glFrustumx", 11, -1 },
1989 { "glGenBuffers", 11, -1 },
1990 { "glGenFramebuffersOES", 11, -1 },
1991 { "glGenRenderbuffersOES", 11, -1 },
1992 { "glGenTextures", 11, _gloffset_GenTextures },
1993 { "glGenerateMipmapOES", 11, -1 },
1994 { "glGetBooleanv", 11, _gloffset_GetBooleanv },
1995 { "glGetBufferParameteriv", 11, -1 },
1996 { "glGetBufferPointervOES", 11, -1 },
1997 { "glGetClipPlanef", 11, -1 },
1998 { "glGetClipPlanex", 11, -1 },
1999 { "glGetError", 11, _gloffset_GetError },
2000 { "glGetFixedv", 11, -1 },
2001 { "glGetFloatv", 11, _gloffset_GetFloatv },
2002 { "glGetFramebufferAttachmentParameterivOES", 11, -1 },
2003 { "glGetIntegerv", 11, _gloffset_GetIntegerv },
2004 { "glGetLightfv", 11, _gloffset_GetLightfv },
2005 { "glGetLightxv", 11, -1 },
2006 { "glGetMaterialfv", 11, _gloffset_GetMaterialfv },
2007 { "glGetMaterialxv", 11, -1 },
2008 // We check for the aliased -KHR version in GLES 1.1
2009 // { "glGetPointerv", 11, _gloffset_GetPointerv },
2010 { "glGetRenderbufferParameterivOES", 11, -1 },
2011 { "glGetString", 11, _gloffset_GetString },
2012 { "glGetTexEnvfv", 11, _gloffset_GetTexEnvfv },
2013 { "glGetTexEnviv", 11, _gloffset_GetTexEnviv },
2014 { "glGetTexEnvxv", 11, -1 },
2015 { "glGetTexGenfvOES", 11, _gloffset_GetTexGenfv },
2016 { "glGetTexGenivOES", 11, _gloffset_GetTexGeniv },
2017 { "glGetTexGenxvOES", 11, -1 },
2018 { "glGetTexParameterfv", 11, _gloffset_GetTexParameterfv },
2019 { "glGetTexParameteriv", 11, _gloffset_GetTexParameteriv },
2020 { "glGetTexParameterxv", 11, -1 },
2021 { "glHint", 11, _gloffset_Hint },
2022 { "glIsBuffer", 11, -1 },
2023 { "glIsEnabled", 11, _gloffset_IsEnabled },
2024 { "glIsFramebufferOES", 11, -1 },
2025 { "glIsRenderbufferOES", 11, -1 },
2026 { "glIsTexture", 11, _gloffset_IsTexture },
2027 { "glLightModelf", 11, _gloffset_LightModelf },
2028 { "glLightModelfv", 11, _gloffset_LightModelfv },
2029 { "glLightModelx", 11, -1 },
2030 { "glLightModelxv", 11, -1 },
2031 { "glLightf", 11, _gloffset_Lightf },
2032 { "glLightfv", 11, _gloffset_Lightfv },
2033 { "glLightx", 11, -1 },
2034 { "glLightxv", 11, -1 },
2035 { "glLineWidth", 11, _gloffset_LineWidth },
2036 { "glLineWidthx", 11, -1 },
2037 { "glLoadIdentity", 11, _gloffset_LoadIdentity },
2038 { "glLoadMatrixf", 11, _gloffset_LoadMatrixf },
2039 { "glLoadMatrixx", 11, -1 },
2040 { "glLogicOp", 11, _gloffset_LogicOp },
2041 { "glMapBufferOES", 11, -1 },
2042 { "glMapBufferRangeEXT", 11, -1 },
2043 { "glMaterialf", 11, _gloffset_Materialf },
2044 { "glMaterialfv", 11, _gloffset_Materialfv },
2045 { "glMaterialx", 11, -1 },
2046 { "glMaterialxv", 11, -1 },
2047 { "glMatrixMode", 11, _gloffset_MatrixMode },
2048 { "glMultMatrixf", 11, _gloffset_MultMatrixf },
2049 { "glMultMatrixx", 11, -1 },
2050 { "glMultiDrawArraysEXT", 11, -1 },
2051 { "glMultiDrawElementsEXT", 11, -1 },
2052 { "glMultiTexCoord4f", 11, _gloffset_MultiTexCoord4fARB },
2053 { "glMultiTexCoord4x", 11, -1 },
2054 { "glNormal3f", 11, _gloffset_Normal3f },
2055 { "glNormal3x", 11, -1 },
2056 { "glNormalPointer", 11, _gloffset_NormalPointer },
2057 { "glOrthof", 11, -1 },
2058 { "glOrthox", 11, -1 },
2059 { "glPixelStorei", 11, _gloffset_PixelStorei },
2060 { "glPointParameterf", 11, -1 },
2061 { "glPointParameterfv", 11, -1 },
2062 { "glPointParameterx", 11, -1 },
2063 { "glPointParameterxv", 11, -1 },
2064 { "glPointSize", 11, _gloffset_PointSize },
2065 { "glPointSizePointerOES", 11, -1 },
2066 { "glPointSizex", 11, -1 },
2067 { "glPolygonOffset", 11, _gloffset_PolygonOffset },
2068 { "glPolygonOffsetx", 11, -1 },
2069 { "glPopMatrix", 11, _gloffset_PopMatrix },
2070 { "glPushMatrix", 11, _gloffset_PushMatrix },
2071 { "glQueryMatrixxOES", 11, -1 },
2072 { "glReadPixels", 11, _gloffset_ReadPixels },
2073 { "glRenderbufferStorageOES", 11, -1 },
2074 { "glRotatef", 11, _gloffset_Rotatef },
2075 { "glRotatex", 11, -1 },
2076 { "glSampleCoverage", 11, -1 },
2077 { "glSampleCoveragex", 11, -1 },
2078 { "glScalef", 11, _gloffset_Scalef },
2079 { "glScalex", 11, -1 },
2080 { "glScissor", 11, _gloffset_Scissor },
2081 { "glShadeModel", 11, _gloffset_ShadeModel },
2082 { "glStencilFunc", 11, _gloffset_StencilFunc },
2083 { "glStencilMask", 11, _gloffset_StencilMask },
2084 { "glStencilOp", 11, _gloffset_StencilOp },
2085 { "glTexCoordPointer", 11, _gloffset_TexCoordPointer },
2086 { "glTexEnvf", 11, _gloffset_TexEnvf },
2087 { "glTexEnvfv", 11, _gloffset_TexEnvfv },
2088 { "glTexEnvi", 11, _gloffset_TexEnvi },
2089 { "glTexEnviv", 11, _gloffset_TexEnviv },
2090 { "glTexEnvx", 11, -1 },
2091 { "glTexEnvxv", 11, -1 },
2092 { "glTexGenfOES", 11, _gloffset_TexGenf },
2093 { "glTexGenfvOES", 11, _gloffset_TexGenfv },
2094 { "glTexGeniOES", 11, _gloffset_TexGeni },
2095 { "glTexGenivOES", 11, _gloffset_TexGeniv },
2096 { "glTexGenxOES", 11, -1 },
2097 { "glTexGenxvOES", 11, -1 },
2098 { "glTexImage2D", 11, _gloffset_TexImage2D },
2099 { "glTexParameterf", 11, _gloffset_TexParameterf },
2100 { "glTexParameterfv", 11, _gloffset_TexParameterfv },
2101 { "glTexParameteri", 11, _gloffset_TexParameteri },
2102 { "glTexParameteriv", 11, _gloffset_TexParameteriv },
2103 { "glTexParameterx", 11, -1 },
2104 { "glTexParameterxv", 11, -1 },
2105 { "glTexSubImage2D", 11, _gloffset_TexSubImage2D },
2106 { "glTranslatef", 11, _gloffset_Translatef },
2107 { "glTranslatex", 11, -1 },
2108 { "glUnmapBufferOES", 11, -1 },
2109 { "glVertexPointer", 11, _gloffset_VertexPointer },
2110 { "glViewport", 11, _gloffset_Viewport },
2111
2112 /* GL_KHR_debug */
2113 { "glPushDebugGroupKHR", 11, -1 },
2114 { "glPopDebugGroupKHR", 11, -1 },
2115 { "glDebugMessageCallbackKHR", 11, -1 },
2116 { "glDebugMessageControlKHR", 11, -1 },
2117 { "glDebugMessageInsertKHR", 11, -1 },
2118 { "glGetDebugMessageLogKHR", 11, -1 },
2119 { "glGetObjectLabelKHR", 11, -1 },
2120 { "glGetObjectPtrLabelKHR", 11, -1 },
2121 { "glGetPointervKHR", 11, _gloffset_GetPointerv },
2122 { "glObjectLabelKHR", 11, -1 },
2123 { "glObjectPtrLabelKHR", 11, -1 },
2124
2125 /* GL_EXT_polygon_offset_clamp */
2126 { "glPolygonOffsetClampEXT", 11, -1 },
2127
2128 /* GL_NV_conservative_raster */
2129 { "glSubpixelPrecisionBiasNV", 20, -1 },
2130
2131 /* GL_NV_conservative_raster_dilate */
2132 { "glConservativeRasterParameterfNV", 20, -1 },
2133
2134 /* GL_NV_conservative_raster_pre_snap_triangles */
2135 { "glConservativeRasterParameteriNV", 20, -1 },
2136
2137 { NULL, 0, -1 }
2138 };
2139
2140 const struct function gles2_functions_possible[] = {
2141 { "glActiveTexture", 20, _gloffset_ActiveTexture },
2142 { "glAttachShader", 20, -1 },
2143 { "glBindAttribLocation", 20, -1 },
2144 { "glBindBuffer", 20, -1 },
2145 { "glBindFramebuffer", 20, -1 },
2146 { "glBindRenderbuffer", 20, -1 },
2147 { "glBindTexture", 20, _gloffset_BindTexture },
2148 { "glBindVertexArrayOES", 20, -1 },
2149 { "glBlendColor", 20, _gloffset_BlendColor },
2150 { "glBlendEquation", 20, _gloffset_BlendEquation },
2151 { "glBlendEquationSeparate", 20, -1 },
2152 { "glBlendFunc", 20, _gloffset_BlendFunc },
2153 { "glBlendFuncSeparate", 20, -1 },
2154 { "glBufferData", 20, -1 },
2155 { "glBufferSubData", 20, -1 },
2156 { "glCheckFramebufferStatus", 20, -1 },
2157 { "glClear", 20, _gloffset_Clear },
2158 { "glClearColor", 20, _gloffset_ClearColor },
2159 { "glClearDepthf", 20, -1 },
2160 { "glClearStencil", 20, _gloffset_ClearStencil },
2161 { "glColorMask", 20, _gloffset_ColorMask },
2162 { "glCompileShader", 20, -1 },
2163 { "glCompressedTexImage2D", 20, -1 },
2164 { "glCompressedTexImage3DOES", 20, -1 },
2165 { "glCompressedTexSubImage2D", 20, -1 },
2166 { "glCompressedTexSubImage3DOES", 20, -1 },
2167 { "glCopyTexImage2D", 20, _gloffset_CopyTexImage2D },
2168 { "glCopyTexSubImage2D", 20, _gloffset_CopyTexSubImage2D },
2169 { "glCopyTexSubImage3DOES", 20, _gloffset_CopyTexSubImage3D },
2170 { "glCreateProgram", 20, -1 },
2171 { "glCreateShader", 20, -1 },
2172 { "glCullFace", 20, _gloffset_CullFace },
2173 { "glDeleteBuffers", 20, -1 },
2174 { "glDeleteFramebuffers", 20, -1 },
2175 { "glDeleteProgram", 20, -1 },
2176 { "glDeleteRenderbuffers", 20, -1 },
2177 { "glDeleteShader", 20, -1 },
2178 { "glDeleteTextures", 20, _gloffset_DeleteTextures },
2179 { "glDeleteVertexArraysOES", 20, -1 },
2180 { "glDepthFunc", 20, _gloffset_DepthFunc },
2181 { "glDepthMask", 20, _gloffset_DepthMask },
2182 { "glDepthRangef", 20, -1 },
2183 { "glDetachShader", 20, -1 },
2184 { "glDisable", 20, _gloffset_Disable },
2185 { "glDiscardFramebufferEXT", 20, -1 },
2186 { "glDisableVertexAttribArray", 20, -1 },
2187 { "glDrawArrays", 20, _gloffset_DrawArrays },
2188 { "glDrawBuffersNV", 20, -1 },
2189 { "glDrawElements", 20, _gloffset_DrawElements },
2190 { "glEGLImageTargetRenderbufferStorageOES", 20, -1 },
2191 { "glEGLImageTargetTexture2DOES", 20, -1 },
2192 { "glEnable", 20, _gloffset_Enable },
2193 { "glEnableVertexAttribArray", 20, -1 },
2194 { "glFinish", 20, _gloffset_Finish },
2195 { "glFlush", 20, _gloffset_Flush },
2196 { "glFlushMappedBufferRangeEXT", 20, -1 },
2197 { "glFramebufferRenderbuffer", 20, -1 },
2198 { "glFramebufferTexture2D", 20, -1 },
2199 { "glFramebufferTexture3DOES", 20, -1 },
2200 { "glFrontFace", 20, _gloffset_FrontFace },
2201 { "glGenBuffers", 20, -1 },
2202 { "glGenFramebuffers", 20, -1 },
2203 { "glGenRenderbuffers", 20, -1 },
2204 { "glGenTextures", 20, _gloffset_GenTextures },
2205 { "glGenVertexArraysOES", 20, -1 },
2206 { "glGenerateMipmap", 20, -1 },
2207 { "glGetActiveAttrib", 20, -1 },
2208 { "glGetActiveUniform", 20, -1 },
2209 { "glGetAttachedShaders", 20, -1 },
2210 { "glGetAttribLocation", 20, -1 },
2211 { "glGetBooleanv", 20, _gloffset_GetBooleanv },
2212 { "glGetBufferParameteriv", 20, -1 },
2213 { "glGetBufferPointervOES", 20, -1 },
2214 { "glGetError", 20, _gloffset_GetError },
2215 { "glGetFloatv", 20, _gloffset_GetFloatv },
2216 { "glGetFramebufferAttachmentParameteriv", 20, -1 },
2217 { "glGetIntegerv", 20, _gloffset_GetIntegerv },
2218 { "glGetProgramInfoLog", 20, -1 },
2219 { "glGetProgramiv", 20, -1 },
2220 { "glGetRenderbufferParameteriv", 20, -1 },
2221 { "glGetShaderInfoLog", 20, -1 },
2222 { "glGetShaderPrecisionFormat", 20, -1 },
2223 { "glGetShaderSource", 20, -1 },
2224 { "glGetShaderiv", 20, -1 },
2225 { "glGetString", 20, _gloffset_GetString },
2226 { "glGetTexParameterfv", 20, _gloffset_GetTexParameterfv },
2227 { "glGetTexParameteriv", 20, _gloffset_GetTexParameteriv },
2228 { "glGetUniformLocation", 20, -1 },
2229 { "glGetUniformfv", 20, -1 },
2230 { "glGetUniformiv", 20, -1 },
2231 { "glGetVertexAttribPointerv", 20, -1 },
2232 { "glGetVertexAttribfv", 20, -1 },
2233 { "glGetVertexAttribiv", 20, -1 },
2234 { "glHint", 20, _gloffset_Hint },
2235 { "glIsBuffer", 20, -1 },
2236 { "glIsEnabled", 20, _gloffset_IsEnabled },
2237 { "glIsFramebuffer", 20, -1 },
2238 { "glIsProgram", 20, -1 },
2239 { "glIsRenderbuffer", 20, -1 },
2240 { "glIsShader", 20, -1 },
2241 { "glIsTexture", 20, _gloffset_IsTexture },
2242 { "glIsVertexArrayOES", 20, -1 },
2243 { "glLineWidth", 20, _gloffset_LineWidth },
2244 { "glLinkProgram", 20, -1 },
2245 { "glMapBufferOES", 20, -1 },
2246 { "glMapBufferRangeEXT", 20, -1 },
2247 { "glMultiDrawArraysEXT", 20, -1 },
2248 { "glMultiDrawElementsEXT", 20, -1 },
2249 { "glPixelStorei", 20, _gloffset_PixelStorei },
2250 { "glPolygonOffset", 20, _gloffset_PolygonOffset },
2251 { "glReadBufferNV", 20, _gloffset_ReadBuffer },
2252 { "glReadPixels", 20, _gloffset_ReadPixels },
2253 { "glReleaseShaderCompiler", 20, -1 },
2254 { "glRenderbufferStorage", 20, -1 },
2255 { "glSampleCoverage", 20, -1 },
2256 { "glScissor", 20, _gloffset_Scissor },
2257 { "glShaderBinary", 20, -1 },
2258 { "glShaderSource", 20, -1 },
2259 { "glStencilFunc", 20, _gloffset_StencilFunc },
2260 { "glStencilFuncSeparate", 20, -1 },
2261 { "glStencilMask", 20, _gloffset_StencilMask },
2262 { "glStencilMaskSeparate", 20, -1 },
2263 { "glStencilOp", 20, _gloffset_StencilOp },
2264 { "glStencilOpSeparate", 20, -1 },
2265 { "glTexImage2D", 20, _gloffset_TexImage2D },
2266 { "glTexImage3DOES", 20, _gloffset_TexImage3D },
2267 { "glTexParameterf", 20, _gloffset_TexParameterf },
2268 { "glTexParameterfv", 20, _gloffset_TexParameterfv },
2269 { "glTexParameteri", 20, _gloffset_TexParameteri },
2270 { "glTexParameteriv", 20, _gloffset_TexParameteriv },
2271 { "glTexSubImage2D", 20, _gloffset_TexSubImage2D },
2272 { "glTexSubImage3DOES", 20, _gloffset_TexSubImage3D },
2273 { "glUniform1f", 20, -1 },
2274 { "glUniform1fv", 20, -1 },
2275 { "glUniform1i", 20, -1 },
2276 { "glUniform1iv", 20, -1 },
2277 { "glUniform2f", 20, -1 },
2278 { "glUniform2fv", 20, -1 },
2279 { "glUniform2i", 20, -1 },
2280 { "glUniform2iv", 20, -1 },
2281 { "glUniform3f", 20, -1 },
2282 { "glUniform3fv", 20, -1 },
2283 { "glUniform3i", 20, -1 },
2284 { "glUniform3iv", 20, -1 },
2285 { "glUniform4f", 20, -1 },
2286 { "glUniform4fv", 20, -1 },
2287 { "glUniform4i", 20, -1 },
2288 { "glUniform4iv", 20, -1 },
2289 { "glUniformMatrix2fv", 20, -1 },
2290 { "glUniformMatrix3fv", 20, -1 },
2291 { "glUniformMatrix4fv", 20, -1 },
2292 { "glUnmapBufferOES", 20, -1 },
2293 { "glUseProgram", 20, -1 },
2294 { "glValidateProgram", 20, -1 },
2295 { "glVertexAttrib1f", 20, -1 },
2296 { "glVertexAttrib1fv", 20, -1 },
2297 { "glVertexAttrib2f", 20, -1 },
2298 { "glVertexAttrib2fv", 20, -1 },
2299 { "glVertexAttrib3f", 20, -1 },
2300 { "glVertexAttrib3fv", 20, -1 },
2301 { "glVertexAttrib4f", 20, -1 },
2302 { "glVertexAttrib4fv", 20, -1 },
2303 { "glVertexAttribPointer", 20, -1 },
2304 { "glViewport", 20, _gloffset_Viewport },
2305
2306 /* GL_OES_get_program_binary - Also part of OpenGL ES 3.0. */
2307 { "glGetProgramBinaryOES", 20, -1 },
2308 { "glProgramBinaryOES", 20, -1 },
2309
2310 /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
2311 { "glProgramParameteriEXT", 20, -1 },
2312 { "glUseProgramStagesEXT", 20, -1 },
2313 { "glActiveShaderProgramEXT", 20, -1 },
2314 { "glCreateShaderProgramvEXT", 20, -1 },
2315 { "glBindProgramPipelineEXT", 20, -1 },
2316 { "glDeleteProgramPipelinesEXT", 20, -1 },
2317 { "glGenProgramPipelinesEXT", 20, -1 },
2318 { "glIsProgramPipelineEXT", 20, -1 },
2319 { "glGetProgramPipelineivEXT", 20, -1 },
2320 { "glProgramUniform1iEXT", 20, -1 },
2321 { "glProgramUniform1ivEXT", 20, -1 },
2322 { "glProgramUniform1fEXT", 20, -1 },
2323 { "glProgramUniform1fvEXT", 20, -1 },
2324 { "glProgramUniform2iEXT", 20, -1 },
2325 { "glProgramUniform2ivEXT", 20, -1 },
2326 { "glProgramUniform2fEXT", 20, -1 },
2327 { "glProgramUniform2fvEXT", 20, -1 },
2328 { "glProgramUniform3iEXT", 20, -1 },
2329 { "glProgramUniform3ivEXT", 20, -1 },
2330 { "glProgramUniform3fEXT", 20, -1 },
2331 { "glProgramUniform3fvEXT", 20, -1 },
2332 { "glProgramUniform4iEXT", 20, -1 },
2333 { "glProgramUniform4ivEXT", 20, -1 },
2334 { "glProgramUniform4fEXT", 20, -1 },
2335 { "glProgramUniform4fvEXT", 20, -1 },
2336 { "glProgramUniformMatrix2fvEXT", 20, -1 },
2337 { "glProgramUniformMatrix3fvEXT", 20, -1 },
2338 { "glProgramUniformMatrix4fvEXT", 20, -1 },
2339 { "glProgramUniformMatrix2x3fvEXT", 20, -1 },
2340 { "glProgramUniformMatrix3x2fvEXT", 20, -1 },
2341 { "glProgramUniformMatrix2x4fvEXT", 20, -1 },
2342 { "glProgramUniformMatrix4x2fvEXT", 20, -1 },
2343 { "glProgramUniformMatrix3x4fvEXT", 20, -1 },
2344 { "glProgramUniformMatrix4x3fvEXT", 20, -1 },
2345 { "glValidateProgramPipelineEXT", 20, -1 },
2346 { "glGetProgramPipelineInfoLogEXT", 20, -1 },
2347
2348 /* GL_AMD_performance_monitor */
2349 { "glGetPerfMonitorGroupsAMD", 20, -1 },
2350 { "glGetPerfMonitorCountersAMD", 20, -1 },
2351 { "glGetPerfMonitorGroupStringAMD", 20, -1 },
2352 { "glGetPerfMonitorCounterStringAMD", 20, -1 },
2353 { "glGetPerfMonitorCounterInfoAMD", 20, -1 },
2354 { "glGenPerfMonitorsAMD", 20, -1 },
2355 { "glDeletePerfMonitorsAMD", 20, -1 },
2356 { "glSelectPerfMonitorCountersAMD", 20, -1 },
2357 { "glBeginPerfMonitorAMD", 20, -1 },
2358 { "glEndPerfMonitorAMD", 20, -1 },
2359 { "glGetPerfMonitorCounterDataAMD", 20, -1 },
2360
2361 /* GL_INTEL_performance_query */
2362 { "glGetFirstPerfQueryIdINTEL", 20, -1 },
2363 { "glGetNextPerfQueryIdINTEL", 20, -1 },
2364 { "glGetPerfQueryIdByNameINTEL", 20, -1 },
2365 { "glGetPerfQueryInfoINTEL", 20, -1 },
2366 { "glGetPerfCounterInfoINTEL", 20, -1 },
2367 { "glCreatePerfQueryINTEL", 20, -1 },
2368 { "glDeletePerfQueryINTEL", 20, -1 },
2369 { "glBeginPerfQueryINTEL", 20, -1 },
2370 { "glEndPerfQueryINTEL", 20, -1 },
2371 { "glGetPerfQueryDataINTEL", 20, -1 },
2372
2373 /* GL_KHR_debug */
2374 { "glPushDebugGroupKHR", 20, -1 },
2375 { "glPopDebugGroupKHR", 20, -1 },
2376 { "glDebugMessageCallbackKHR", 20, -1 },
2377 { "glDebugMessageControlKHR", 20, -1 },
2378 { "glDebugMessageInsertKHR", 20, -1 },
2379 { "glGetDebugMessageLogKHR", 20, -1 },
2380 { "glGetObjectLabelKHR", 20, -1 },
2381 { "glGetObjectPtrLabelKHR", 20, -1 },
2382 { "glGetPointervKHR", 20, -1 },
2383 { "glObjectLabelKHR", 20, -1 },
2384 { "glObjectPtrLabelKHR", 20, -1 },
2385
2386 /* GL_EXT_polygon_offset_clamp */
2387 { "glPolygonOffsetClampEXT", 11, -1 },
2388
2389 /* GL_KHR_robustness */
2390 { "glGetGraphicsResetStatusKHR", 20, -1 },
2391 { "glReadnPixelsKHR", 20, -1 },
2392 { "glGetnUniformfvKHR", 20, -1 },
2393 { "glGetnUniformivKHR", 20, -1 },
2394 { "glGetnUniformuivKHR", 20, -1 },
2395
2396 /* GL_KHR_blend_equation_advanced */
2397 { "glBlendBarrierKHR", 20, -1 },
2398
2399 /* GL_EXT_occlusion_query_boolean */
2400 { "glGenQueriesEXT", 20, -1 },
2401 { "glDeleteQueriesEXT", 20, -1 },
2402 { "glIsQueryEXT", 20, -1 },
2403 { "glBeginQueryEXT", 20, -1 },
2404 { "glEndQueryEXT", 20, -1 },
2405 { "glGetQueryivEXT", 20, -1 },
2406 { "glGetQueryObjectivEXT", 20, -1 },
2407 { "glGetQueryObjectuivEXT", 20, -1 },
2408
2409 /* GL_EXT_clip_control */
2410 { "glClipControlEXT", 20, -1 },
2411
2412 /* GL_EXT_disjoint_timer_query */
2413 { "glGetQueryObjecti64vEXT", 20, -1 },
2414 { "glGetQueryObjectui64vEXT", 20, -1 },
2415 { "glQueryCounterEXT", 20, -1 },
2416
2417 /* GL_EXT_shader_framebuffer_fetch_non_coherent */
2418 { "glFramebufferFetchBarrierEXT", 20, -1 },
2419
2420 /* GL_NV_conditional_render */