main: Added entry point for BindTextureUnit.
[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 extern "C" {
45 #include "GL/gl.h"
46 #include "GL/glext.h"
47 #include "main/compiler.h"
48 #include "main/api_exec.h"
49 #include "main/context.h"
50 #include "main/remap.h"
51 #include "main/vtxfmt.h"
52 #include "glapi/glapi.h"
53 #include "drivers/common/driverfuncs.h"
54
55 #include "swrast/swrast.h"
56 #include "vbo/vbo.h"
57 #include "tnl/tnl.h"
58 #include "swrast_setup/swrast_setup.h"
59
60 #ifndef GLAPIENTRYP
61 #define GLAPIENTRYP GL_APIENTRYP
62 #endif
63
64 #include "main/dispatch.h"
65 }
66
67 struct function {
68 const char *name;
69 unsigned int Version;
70 int offset;
71 };
72
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
78 class DispatchSanity_test : public ::testing::Test {
79 public:
80 virtual void SetUp();
81 void SetUpCtx(gl_api api, unsigned int version);
82
83 struct gl_config visual;
84 struct dd_function_table driver_functions;
85 struct gl_context share_list;
86 struct gl_context ctx;
87 };
88
89 void
90 DispatchSanity_test::SetUp()
91 {
92 memset(&visual, 0, sizeof(visual));
93 memset(&driver_functions, 0, sizeof(driver_functions));
94 memset(&share_list, 0, sizeof(share_list));
95 memset(&ctx, 0, sizeof(ctx));
96
97 _mesa_init_driver_functions(&driver_functions);
98 }
99
100 void
101 DispatchSanity_test::SetUpCtx(gl_api api, unsigned int version)
102 {
103 _mesa_initialize_context(&ctx,
104 api,
105 &visual,
106 NULL, // share_list
107 &driver_functions);
108 _vbo_CreateContext(&ctx);
109
110 ctx.Version = version;
111
112 _mesa_initialize_dispatch_tables(&ctx);
113 _mesa_initialize_vbo_vtxfmt(&ctx);
114 }
115
116 static const char *
117 offset_to_proc_name_safe(unsigned offset)
118 {
119 const char *name = _glapi_get_proc_name(offset);
120 return name ? name : "???";
121 }
122
123 /* Scan through the dispatch table and check that all the functions in
124 * _glapi_proc *table exist. When found, set their pointers in the table
125 * to _mesa_generic_nop. */
126 static void
127 validate_functions(struct gl_context *ctx, const struct function *function_table)
128 {
129 _glapi_proc *table = (_glapi_proc *) ctx->Exec;
130
131 for (unsigned i = 0; function_table[i].name != NULL; i++) {
132 /* The context version is >= the GL version where the
133 function was introduced. Therefore, the function cannot
134 be set to the nop function.
135 */
136 bool cant_be_nop = ctx->Version >= function_table[i].Version;
137
138 const int offset = (function_table[i].offset != -1)
139 ? function_table[i].offset
140 : _glapi_get_proc_offset(function_table[i].name);
141
142 ASSERT_NE(-1, offset)
143 << "Function: " << function_table[i].name;
144 ASSERT_EQ(offset,
145 _glapi_get_proc_offset(function_table[i].name))
146 << "Function: " << function_table[i].name;
147 if (cant_be_nop) {
148 EXPECT_NE((_glapi_proc) _mesa_generic_nop, table[offset])
149 << "Function: " << function_table[i].name
150 << " at offset " << offset;
151 }
152
153 table[offset] = (_glapi_proc) _mesa_generic_nop;
154 }
155 }
156
157 /* Scan through the table and ensure that there is nothing except
158 * _mesa_generic_nop (as set by validate_functions(). */
159 static void
160 validate_nops(struct gl_context *ctx)
161 {
162 _glapi_proc *table = (_glapi_proc *) ctx->Exec;
163
164 const unsigned size = _glapi_get_dispatch_table_size();
165 for (unsigned i = 0; i < size; i++) {
166 EXPECT_EQ((_glapi_proc) _mesa_generic_nop, table[i])
167 << "i = " << i << " (" << offset_to_proc_name_safe(i) << ")";
168 }
169 }
170
171 TEST_F(DispatchSanity_test, GL31_CORE)
172 {
173 SetUpCtx(API_OPENGL_CORE, 31);
174 validate_functions(&ctx, gl_core_functions_possible);
175 validate_nops(&ctx);
176 }
177
178 TEST_F(DispatchSanity_test, GLES11)
179 {
180 SetUpCtx(API_OPENGLES, 11);
181 validate_functions(&ctx, gles11_functions_possible);
182 validate_nops(&ctx);
183 }
184
185 TEST_F(DispatchSanity_test, GLES2)
186 {
187 SetUpCtx(API_OPENGLES2, 20);
188 validate_functions(&ctx, gles2_functions_possible);
189 validate_nops(&ctx);
190 }
191
192 TEST_F(DispatchSanity_test, GLES3)
193 {
194 SetUpCtx(API_OPENGLES2, 30);
195 validate_functions(&ctx, gles2_functions_possible);
196 validate_functions(&ctx, gles3_functions_possible);
197 validate_nops(&ctx);
198 }
199
200 const struct function gl_core_functions_possible[] = {
201 { "glCullFace", 10, -1 },
202 { "glFrontFace", 10, -1 },
203 { "glHint", 10, -1 },
204 { "glLineWidth", 10, -1 },
205 { "glPointSize", 10, -1 },
206 { "glPolygonMode", 10, -1 },
207 { "glScissor", 10, -1 },
208 { "glTexParameterf", 10, -1 },
209 { "glTexParameterfv", 10, -1 },
210 { "glTexParameteri", 10, -1 },
211 { "glTexParameteriv", 10, -1 },
212 { "glTexImage1D", 10, -1 },
213 { "glTexImage2D", 10, -1 },
214 { "glDrawBuffer", 10, -1 },
215 { "glClear", 10, -1 },
216 { "glClearColor", 10, -1 },
217 { "glClearStencil", 10, -1 },
218 { "glClearDepth", 10, -1 },
219 { "glStencilMask", 10, -1 },
220 { "glColorMask", 10, -1 },
221 { "glDepthMask", 10, -1 },
222 { "glDisable", 10, -1 },
223 { "glEnable", 10, -1 },
224 { "glFinish", 10, -1 },
225 { "glFlush", 10, -1 },
226 { "glBlendFunc", 10, -1 },
227 { "glLogicOp", 10, -1 },
228 { "glStencilFunc", 10, -1 },
229 { "glStencilOp", 10, -1 },
230 { "glDepthFunc", 10, -1 },
231 { "glPixelStoref", 10, -1 },
232 { "glPixelStorei", 10, -1 },
233 { "glReadBuffer", 10, -1 },
234 { "glReadPixels", 10, -1 },
235 { "glGetBooleanv", 10, -1 },
236 { "glGetDoublev", 10, -1 },
237 { "glGetError", 10, -1 },
238 { "glGetFloatv", 10, -1 },
239 { "glGetIntegerv", 10, -1 },
240 { "glGetString", 10, -1 },
241 { "glGetTexImage", 10, -1 },
242 { "glGetTexParameterfv", 10, -1 },
243 { "glGetTexParameteriv", 10, -1 },
244 { "glGetTexLevelParameterfv", 10, -1 },
245 { "glGetTexLevelParameteriv", 10, -1 },
246 { "glIsEnabled", 10, -1 },
247 { "glDepthRange", 10, -1 },
248 { "glViewport", 10, -1 },
249
250 /* GL 1.1 */
251 { "glDrawArrays", 11, -1 },
252 { "glDrawElements", 11, -1 },
253 { "glGetPointerv", 11, -1 },
254 { "glPolygonOffset", 11, -1 },
255 { "glCopyTexImage1D", 11, -1 },
256 { "glCopyTexImage2D", 11, -1 },
257 { "glCopyTexSubImage1D", 11, -1 },
258 { "glCopyTexSubImage2D", 11, -1 },
259 { "glTexSubImage1D", 11, -1 },
260 { "glTexSubImage2D", 11, -1 },
261 { "glBindTexture", 11, -1 },
262 { "glDeleteTextures", 11, -1 },
263 { "glGenTextures", 11, -1 },
264 { "glIsTexture", 11, -1 },
265
266 /* GL 1.2 */
267 { "glBlendColor", 12, -1 },
268 { "glBlendEquation", 12, -1 },
269 { "glDrawRangeElements", 12, -1 },
270 { "glTexImage3D", 12, -1 },
271 { "glTexSubImage3D", 12, -1 },
272 { "glCopyTexSubImage3D", 12, -1 },
273
274 /* GL 1.3 */
275 { "glActiveTexture", 13, -1 },
276 { "glSampleCoverage", 13, -1 },
277 { "glCompressedTexImage3D", 13, -1 },
278 { "glCompressedTexImage2D", 13, -1 },
279 { "glCompressedTexImage1D", 13, -1 },
280 { "glCompressedTexSubImage3D", 13, -1 },
281 { "glCompressedTexSubImage2D", 13, -1 },
282 { "glCompressedTexSubImage1D", 13, -1 },
283 { "glGetCompressedTexImage", 13, -1 },
284
285 /* GL 1.4 */
286 { "glBlendFuncSeparate", 14, -1 },
287 { "glMultiDrawArrays", 14, -1 },
288 { "glMultiDrawElements", 14, -1 },
289 { "glPointParameterf", 14, -1 },
290 { "glPointParameterfv", 14, -1 },
291 { "glPointParameteri", 14, -1 },
292 { "glPointParameteriv", 14, -1 },
293
294 /* GL 1.5 */
295 { "glGenQueries", 15, -1 },
296 { "glDeleteQueries", 15, -1 },
297 { "glIsQuery", 15, -1 },
298 { "glBeginQuery", 15, -1 },
299 { "glEndQuery", 15, -1 },
300 { "glGetQueryiv", 15, -1 },
301 { "glGetQueryObjectiv", 15, -1 },
302 { "glGetQueryObjectuiv", 15, -1 },
303 { "glBindBuffer", 15, -1 },
304 { "glDeleteBuffers", 15, -1 },
305 { "glGenBuffers", 15, -1 },
306 { "glIsBuffer", 15, -1 },
307 { "glBufferData", 15, -1 },
308 { "glBufferSubData", 15, -1 },
309 { "glGetBufferSubData", 15, -1 },
310 { "glMapBuffer", 15, -1 },
311 { "glUnmapBuffer", 15, -1 },
312 { "glGetBufferParameteriv", 15, -1 },
313 { "glGetBufferPointerv", 15, -1 },
314
315 /* GL 2.0 */
316 { "glBlendEquationSeparate", 20, -1 },
317 { "glDrawBuffers", 20, -1 },
318 { "glStencilOpSeparate", 20, -1 },
319 { "glStencilFuncSeparate", 20, -1 },
320 { "glStencilMaskSeparate", 20, -1 },
321 { "glAttachShader", 20, -1 },
322 { "glBindAttribLocation", 20, -1 },
323 { "glCompileShader", 20, -1 },
324 { "glCreateProgram", 20, -1 },
325 { "glCreateShader", 20, -1 },
326 { "glDeleteProgram", 20, -1 },
327 { "glDeleteShader", 20, -1 },
328 { "glDetachShader", 20, -1 },
329 { "glDisableVertexAttribArray", 20, -1 },
330 { "glEnableVertexAttribArray", 20, -1 },
331 { "glGetActiveAttrib", 20, -1 },
332 { "glGetActiveUniform", 20, -1 },
333 { "glGetAttachedShaders", 20, -1 },
334 { "glGetAttribLocation", 20, -1 },
335 { "glGetProgramiv", 20, -1 },
336 { "glGetProgramInfoLog", 20, -1 },
337 { "glGetShaderiv", 20, -1 },
338 { "glGetShaderInfoLog", 20, -1 },
339 { "glGetShaderSource", 20, -1 },
340 { "glGetUniformLocation", 20, -1 },
341 { "glGetUniformfv", 20, -1 },
342 { "glGetUniformiv", 20, -1 },
343 { "glGetVertexAttribdv", 20, -1 },
344 { "glGetVertexAttribfv", 20, -1 },
345 { "glGetVertexAttribiv", 20, -1 },
346 { "glGetVertexAttribPointerv", 20, -1 },
347 { "glIsProgram", 20, -1 },
348 { "glIsShader", 20, -1 },
349 { "glLinkProgram", 20, -1 },
350 { "glShaderSource", 20, -1 },
351 { "glUseProgram", 20, -1 },
352 { "glUniform1f", 20, -1 },
353 { "glUniform2f", 20, -1 },
354 { "glUniform3f", 20, -1 },
355 { "glUniform4f", 20, -1 },
356 { "glUniform1i", 20, -1 },
357 { "glUniform2i", 20, -1 },
358 { "glUniform3i", 20, -1 },
359 { "glUniform4i", 20, -1 },
360 { "glUniform1fv", 20, -1 },
361 { "glUniform2fv", 20, -1 },
362 { "glUniform3fv", 20, -1 },
363 { "glUniform4fv", 20, -1 },
364 { "glUniform1iv", 20, -1 },
365 { "glUniform2iv", 20, -1 },
366 { "glUniform3iv", 20, -1 },
367 { "glUniform4iv", 20, -1 },
368 { "glUniformMatrix2fv", 20, -1 },
369 { "glUniformMatrix3fv", 20, -1 },
370 { "glUniformMatrix4fv", 20, -1 },
371 { "glValidateProgram", 20, -1 },
372 { "glVertexAttrib1d", 20, -1 },
373 { "glVertexAttrib1dv", 20, -1 },
374 { "glVertexAttrib1f", 20, -1 },
375 { "glVertexAttrib1fv", 20, -1 },
376 { "glVertexAttrib1s", 20, -1 },
377 { "glVertexAttrib1sv", 20, -1 },
378 { "glVertexAttrib2d", 20, -1 },
379 { "glVertexAttrib2dv", 20, -1 },
380 { "glVertexAttrib2f", 20, -1 },
381 { "glVertexAttrib2fv", 20, -1 },
382 { "glVertexAttrib2s", 20, -1 },
383 { "glVertexAttrib2sv", 20, -1 },
384 { "glVertexAttrib3d", 20, -1 },
385 { "glVertexAttrib3dv", 20, -1 },
386 { "glVertexAttrib3f", 20, -1 },
387 { "glVertexAttrib3fv", 20, -1 },
388 { "glVertexAttrib3s", 20, -1 },
389 { "glVertexAttrib3sv", 20, -1 },
390 { "glVertexAttrib4Nbv", 20, -1 },
391 { "glVertexAttrib4Niv", 20, -1 },
392 { "glVertexAttrib4Nsv", 20, -1 },
393 { "glVertexAttrib4Nub", 20, -1 },
394 { "glVertexAttrib4Nubv", 20, -1 },
395 { "glVertexAttrib4Nuiv", 20, -1 },
396 { "glVertexAttrib4Nusv", 20, -1 },
397 { "glVertexAttrib4bv", 20, -1 },
398 { "glVertexAttrib4d", 20, -1 },
399 { "glVertexAttrib4dv", 20, -1 },
400 { "glVertexAttrib4f", 20, -1 },
401 { "glVertexAttrib4fv", 20, -1 },
402 { "glVertexAttrib4iv", 20, -1 },
403 { "glVertexAttrib4s", 20, -1 },
404 { "glVertexAttrib4sv", 20, -1 },
405 { "glVertexAttrib4ubv", 20, -1 },
406 { "glVertexAttrib4uiv", 20, -1 },
407 { "glVertexAttrib4usv", 20, -1 },
408 { "glVertexAttribPointer", 20, -1 },
409
410 /* GL 2.1 */
411 { "glUniformMatrix2x3fv", 21, -1 },
412 { "glUniformMatrix3x2fv", 21, -1 },
413 { "glUniformMatrix2x4fv", 21, -1 },
414 { "glUniformMatrix4x2fv", 21, -1 },
415 { "glUniformMatrix3x4fv", 21, -1 },
416 { "glUniformMatrix4x3fv", 21, -1 },
417
418 /* GL 3.0 */
419 { "glColorMaski", 30, -1 },
420 { "glGetBooleani_v", 30, -1 },
421 { "glGetIntegeri_v", 30, -1 },
422 { "glEnablei", 30, -1 },
423 { "glDisablei", 30, -1 },
424 { "glIsEnabledi", 30, -1 },
425 { "glBeginTransformFeedback", 30, -1 },
426 { "glEndTransformFeedback", 30, -1 },
427 { "glBindBufferRange", 30, -1 },
428 { "glBindBufferBase", 30, -1 },
429 { "glTransformFeedbackVaryings", 30, -1 },
430 { "glGetTransformFeedbackVarying", 30, -1 },
431 { "glClampColor", 30, -1 },
432 { "glBeginConditionalRender", 30, -1 },
433 { "glEndConditionalRender", 30, -1 },
434 { "glVertexAttribIPointer", 30, -1 },
435 { "glGetVertexAttribIiv", 30, -1 },
436 { "glGetVertexAttribIuiv", 30, -1 },
437 { "glVertexAttribI1i", 30, -1 },
438 { "glVertexAttribI2i", 30, -1 },
439 { "glVertexAttribI3i", 30, -1 },
440 { "glVertexAttribI4i", 30, -1 },
441 { "glVertexAttribI1ui", 30, -1 },
442 { "glVertexAttribI2ui", 30, -1 },
443 { "glVertexAttribI3ui", 30, -1 },
444 { "glVertexAttribI4ui", 30, -1 },
445 { "glVertexAttribI1iv", 30, -1 },
446 { "glVertexAttribI2iv", 30, -1 },
447 { "glVertexAttribI3iv", 30, -1 },
448 { "glVertexAttribI4iv", 30, -1 },
449 { "glVertexAttribI1uiv", 30, -1 },
450 { "glVertexAttribI2uiv", 30, -1 },
451 { "glVertexAttribI3uiv", 30, -1 },
452 { "glVertexAttribI4uiv", 30, -1 },
453 { "glVertexAttribI4bv", 30, -1 },
454 { "glVertexAttribI4sv", 30, -1 },
455 { "glVertexAttribI4ubv", 30, -1 },
456 { "glVertexAttribI4usv", 30, -1 },
457 { "glGetUniformuiv", 30, -1 },
458 { "glBindFragDataLocation", 30, -1 },
459 { "glGetFragDataLocation", 30, -1 },
460 { "glUniform1ui", 30, -1 },
461 { "glUniform2ui", 30, -1 },
462 { "glUniform3ui", 30, -1 },
463 { "glUniform4ui", 30, -1 },
464 { "glUniform1uiv", 30, -1 },
465 { "glUniform2uiv", 30, -1 },
466 { "glUniform3uiv", 30, -1 },
467 { "glUniform4uiv", 30, -1 },
468 { "glTexParameterIiv", 30, -1 },
469 { "glTexParameterIuiv", 30, -1 },
470 { "glGetTexParameterIiv", 30, -1 },
471 { "glGetTexParameterIuiv", 30, -1 },
472 { "glClearBufferiv", 30, -1 },
473 { "glClearBufferuiv", 30, -1 },
474 { "glClearBufferfv", 30, -1 },
475 { "glClearBufferfi", 30, -1 },
476 { "glGetStringi", 30, -1 },
477
478 /* GL 3.1 */
479 { "glDrawArraysInstanced", 31, -1 },
480 { "glDrawElementsInstanced", 31, -1 },
481 { "glTexBuffer", 31, -1 },
482 { "glPrimitiveRestartIndex", 31, -1 },
483
484 /* GL_ARB_shader_objects */
485 { "glDeleteObjectARB", 31, -1 },
486 { "glGetHandleARB", 31, -1 },
487 { "glDetachObjectARB", 31, -1 },
488 { "glCreateShaderObjectARB", 31, -1 },
489 { "glCreateProgramObjectARB", 31, -1 },
490 { "glAttachObjectARB", 31, -1 },
491 { "glGetObjectParameterfvARB", 31, -1 },
492 { "glGetObjectParameterivARB", 31, -1 },
493 { "glGetInfoLogARB", 31, -1 },
494 { "glGetAttachedObjectsARB", 31, -1 },
495
496 /* GL_ARB_get_program_binary */
497 { "glGetProgramBinary", 30, -1 },
498 { "glProgramBinary", 30, -1 },
499 { "glProgramParameteri", 30, -1 },
500
501 /* GL_EXT_transform_feedback */
502 { "glBindBufferOffsetEXT", 31, -1 },
503
504 /* GL_IBM_multimode_draw_arrays */
505 { "glMultiModeDrawArraysIBM", 31, -1 },
506 { "glMultiModeDrawElementsIBM", 31, -1 },
507
508 /* GL_EXT_depth_bounds_test */
509 { "glDepthBoundsEXT", 31, -1 },
510
511 /* GL_apple_object_purgeable */
512 { "glObjectPurgeableAPPLE", 31, -1 },
513 { "glObjectUnpurgeableAPPLE", 31, -1 },
514 { "glGetObjectParameterivAPPLE", 31, -1 },
515
516 /* GL_ARB_instanced_arrays */
517 { "glVertexAttribDivisorARB", 31, -1 },
518
519 /* GL_NV_texture_barrier */
520 { "glTextureBarrierNV", 31, -1 },
521
522 /* GL_EXT_texture_integer */
523 { "glClearColorIiEXT", 31, -1 },
524 { "glClearColorIuiEXT", 31, -1 },
525
526 /* GL_OES_EGL_image */
527 { "glEGLImageTargetRenderbufferStorageOES", 31, -1 },
528 { "glEGLImageTargetTexture2DOES", 31, -1 },
529
530 /* GL 3.2 */
531 { "glGetInteger64i_v", 32, -1 },
532 { "glGetBufferParameteri64v", 32, -1 },
533 { "glFramebufferTexture", 32, -1 },
534
535 /* GL_ARB_geometry_shader4 */
536 { "glProgramParameteriARB", 32, -1 },
537 { "glFramebufferTextureARB", 32, -1 },
538 { "glFramebufferTextureLayerARB", 32, -1 },
539 { "glFramebufferTextureFaceARB", 32, -1 },
540
541 /* GL 3.3 */
542 { "glVertexAttribDivisor", 33, -1 },
543
544 /* GL 4.0 */
545 { "glMinSampleShading", 40, -1 },
546 { "glBlendEquationi", 40, -1 },
547 { "glBlendEquationSeparatei", 40, -1 },
548 { "glBlendFunci", 40, -1 },
549 { "glBlendFuncSeparatei", 40, -1 },
550
551 /* GL 4.3 */
552 { "glIsRenderbuffer", 43, -1 },
553 { "glBindRenderbuffer", 43, -1 },
554 { "glDeleteRenderbuffers", 43, -1 },
555 { "glGenRenderbuffers", 43, -1 },
556 { "glRenderbufferStorage", 43, -1 },
557 { "glGetRenderbufferParameteriv", 43, -1 },
558 { "glIsFramebuffer", 43, -1 },
559 { "glBindFramebuffer", 43, -1 },
560 { "glDeleteFramebuffers", 43, -1 },
561 { "glGenFramebuffers", 43, -1 },
562 { "glCheckFramebufferStatus", 43, -1 },
563 { "glFramebufferTexture1D", 43, -1 },
564 { "glFramebufferTexture2D", 43, -1 },
565 { "glFramebufferTexture3D", 43, -1 },
566 { "glFramebufferRenderbuffer", 43, -1 },
567 { "glGetFramebufferAttachmentParameteriv", 43, -1 },
568 { "glGenerateMipmap", 43, -1 },
569 { "glBlitFramebuffer", 43, -1 },
570 { "glRenderbufferStorageMultisample", 43, -1 },
571 { "glFramebufferTextureLayer", 43, -1 },
572 { "glMapBufferRange", 43, -1 },
573 { "glFlushMappedBufferRange", 43, -1 },
574 { "glBindVertexArray", 43, -1 },
575 { "glDeleteVertexArrays", 43, -1 },
576 { "glGenVertexArrays", 43, -1 },
577 { "glIsVertexArray", 43, -1 },
578 { "glGetUniformIndices", 43, -1 },
579 { "glGetActiveUniformsiv", 43, -1 },
580 { "glGetActiveUniformName", 43, -1 },
581 { "glGetUniformBlockIndex", 43, -1 },
582 { "glGetActiveUniformBlockiv", 43, -1 },
583 { "glGetActiveUniformBlockName", 43, -1 },
584 { "glUniformBlockBinding", 43, -1 },
585 { "glCopyBufferSubData", 43, -1 },
586 { "glDrawElementsBaseVertex", 43, -1 },
587 { "glDrawRangeElementsBaseVertex", 43, -1 },
588 { "glDrawElementsInstancedBaseVertex", 43, -1 },
589 { "glMultiDrawElementsBaseVertex", 43, -1 },
590 { "glProvokingVertex", 43, -1 },
591 { "glFenceSync", 43, -1 },
592 { "glIsSync", 43, -1 },
593 { "glDeleteSync", 43, -1 },
594 { "glClientWaitSync", 43, -1 },
595 { "glWaitSync", 43, -1 },
596 { "glGetInteger64v", 43, -1 },
597 { "glGetSynciv", 43, -1 },
598 { "glTexImage2DMultisample", 43, -1 },
599 { "glTexImage3DMultisample", 43, -1 },
600 { "glGetMultisamplefv", 43, -1 },
601 { "glSampleMaski", 43, -1 },
602 { "glBlendEquationiARB", 43, -1 },
603 { "glBlendEquationSeparateiARB", 43, -1 },
604 { "glBlendFunciARB", 43, -1 },
605 { "glBlendFuncSeparateiARB", 43, -1 },
606 { "glMinSampleShadingARB", 43, -1 }, // XXX: Add to xml
607 // { "glNamedStringARB", 43, -1 }, // XXX: Add to xml
608 // { "glDeleteNamedStringARB", 43, -1 }, // XXX: Add to xml
609 // { "glCompileShaderIncludeARB", 43, -1 }, // XXX: Add to xml
610 // { "glIsNamedStringARB", 43, -1 }, // XXX: Add to xml
611 // { "glGetNamedStringARB", 43, -1 }, // XXX: Add to xml
612 // { "glGetNamedStringivARB", 43, -1 }, // XXX: Add to xml
613 { "glBindFragDataLocationIndexed", 43, -1 },
614 { "glGetFragDataIndex", 43, -1 },
615 { "glGenSamplers", 43, -1 },
616 { "glDeleteSamplers", 43, -1 },
617 { "glIsSampler", 43, -1 },
618 { "glBindSampler", 43, -1 },
619 { "glSamplerParameteri", 43, -1 },
620 { "glSamplerParameteriv", 43, -1 },
621 { "glSamplerParameterf", 43, -1 },
622 { "glSamplerParameterfv", 43, -1 },
623 { "glSamplerParameterIiv", 43, -1 },
624 { "glSamplerParameterIuiv", 43, -1 },
625 { "glGetSamplerParameteriv", 43, -1 },
626 { "glGetSamplerParameterIiv", 43, -1 },
627 { "glGetSamplerParameterfv", 43, -1 },
628 { "glGetSamplerParameterIuiv", 43, -1 },
629 { "glQueryCounter", 43, -1 },
630 { "glGetQueryObjecti64v", 43, -1 },
631 { "glGetQueryObjectui64v", 43, -1 },
632 { "glVertexP2ui", 43, -1 },
633 { "glVertexP2uiv", 43, -1 },
634 { "glVertexP3ui", 43, -1 },
635 { "glVertexP3uiv", 43, -1 },
636 { "glVertexP4ui", 43, -1 },
637 { "glVertexP4uiv", 43, -1 },
638 { "glTexCoordP1ui", 43, -1 },
639 { "glTexCoordP1uiv", 43, -1 },
640 { "glTexCoordP2ui", 43, -1 },
641 { "glTexCoordP2uiv", 43, -1 },
642 { "glTexCoordP3ui", 43, -1 },
643 { "glTexCoordP3uiv", 43, -1 },
644 { "glTexCoordP4ui", 43, -1 },
645 { "glTexCoordP4uiv", 43, -1 },
646 { "glMultiTexCoordP1ui", 43, -1 },
647 { "glMultiTexCoordP1uiv", 43, -1 },
648 { "glMultiTexCoordP2ui", 43, -1 },
649 { "glMultiTexCoordP2uiv", 43, -1 },
650 { "glMultiTexCoordP3ui", 43, -1 },
651 { "glMultiTexCoordP3uiv", 43, -1 },
652 { "glMultiTexCoordP4ui", 43, -1 },
653 { "glMultiTexCoordP4uiv", 43, -1 },
654 { "glNormalP3ui", 43, -1 },
655 { "glNormalP3uiv", 43, -1 },
656 { "glColorP3ui", 43, -1 },
657 { "glColorP3uiv", 43, -1 },
658 { "glColorP4ui", 43, -1 },
659 { "glColorP4uiv", 43, -1 },
660 { "glSecondaryColorP3ui", 43, -1 },
661 { "glSecondaryColorP3uiv", 43, -1 },
662 { "glVertexAttribP1ui", 43, -1 },
663 { "glVertexAttribP1uiv", 43, -1 },
664 { "glVertexAttribP2ui", 43, -1 },
665 { "glVertexAttribP2uiv", 43, -1 },
666 { "glVertexAttribP3ui", 43, -1 },
667 { "glVertexAttribP3uiv", 43, -1 },
668 { "glVertexAttribP4ui", 43, -1 },
669 { "glVertexAttribP4uiv", 43, -1 },
670 { "glDrawArraysIndirect", 43, -1 },
671 { "glDrawElementsIndirect", 43, -1 },
672 // { "glUniform1d", 43, -1 }, // XXX: Add to xml
673 // { "glUniform2d", 43, -1 }, // XXX: Add to xml
674 // { "glUniform3d", 43, -1 }, // XXX: Add to xml
675 // { "glUniform4d", 43, -1 }, // XXX: Add to xml
676 // { "glUniform1dv", 43, -1 }, // XXX: Add to xml
677 // { "glUniform2dv", 43, -1 }, // XXX: Add to xml
678 // { "glUniform3dv", 43, -1 }, // XXX: Add to xml
679 // { "glUniform4dv", 43, -1 }, // XXX: Add to xml
680 // { "glUniformMatrix2dv", 43, -1 }, // XXX: Add to xml
681 // { "glUniformMatrix3dv", 43, -1 }, // XXX: Add to xml
682 // { "glUniformMatrix4dv", 43, -1 }, // XXX: Add to xml
683 // { "glUniformMatrix2x3dv", 43, -1 }, // XXX: Add to xml
684 // { "glUniformMatrix2x4dv", 43, -1 }, // XXX: Add to xml
685 // { "glUniformMatrix3x2dv", 43, -1 }, // XXX: Add to xml
686 // { "glUniformMatrix3x4dv", 43, -1 }, // XXX: Add to xml
687 // { "glUniformMatrix4x2dv", 43, -1 }, // XXX: Add to xml
688 // { "glUniformMatrix4x3dv", 43, -1 }, // XXX: Add to xml
689 // { "glGetUniformdv", 43, -1 }, // XXX: Add to xml
690 // { "glGetSubroutineUniformLocation", 43, -1 }, // XXX: Add to xml
691 // { "glGetSubroutineIndex", 43, -1 }, // XXX: Add to xml
692 // { "glGetActiveSubroutineUniformiv", 43, -1 }, // XXX: Add to xml
693 // { "glGetActiveSubroutineUniformName", 43, -1 }, // XXX: Add to xml
694 // { "glGetActiveSubroutineName", 43, -1 }, // XXX: Add to xml
695 // { "glUniformSubroutinesuiv", 43, -1 }, // XXX: Add to xml
696 // { "glGetUniformSubroutineuiv", 43, -1 }, // XXX: Add to xml
697 // { "glGetProgramStageiv", 43, -1 }, // XXX: Add to xml
698 // { "glPatchParameteri", 43, -1 }, // XXX: Add to xml
699 // { "glPatchParameterfv", 43, -1 }, // XXX: Add to xml
700 { "glBindTransformFeedback", 43, -1 },
701 { "glDeleteTransformFeedbacks", 43, -1 },
702 { "glGenTransformFeedbacks", 43, -1 },
703 { "glIsTransformFeedback", 43, -1 },
704 { "glPauseTransformFeedback", 43, -1 },
705 { "glResumeTransformFeedback", 43, -1 },
706 { "glDrawTransformFeedback", 43, -1 },
707 { "glDrawTransformFeedbackStream", 43, -1 },
708 { "glBeginQueryIndexed", 43, -1 },
709 { "glEndQueryIndexed", 43, -1 },
710 { "glGetQueryIndexediv", 43, -1 },
711 { "glReleaseShaderCompiler", 43, -1 },
712 { "glShaderBinary", 43, -1 },
713 { "glGetShaderPrecisionFormat", 43, -1 },
714 { "glDepthRangef", 43, -1 },
715 { "glClearDepthf", 43, -1 },
716 { "glGetProgramBinary", 43, -1 },
717 { "glProgramBinary", 43, -1 },
718 { "glProgramParameteri", 43, -1 },
719 { "glUseProgramStages", 43, -1 },
720 { "glActiveShaderProgram", 43, -1 },
721 { "glCreateShaderProgramv", 43, -1 },
722 { "glBindProgramPipeline", 43, -1 },
723 { "glDeleteProgramPipelines", 43, -1 },
724 { "glGenProgramPipelines", 43, -1 },
725 { "glIsProgramPipeline", 43, -1 },
726 { "glGetProgramPipelineiv", 43, -1 },
727 { "glProgramUniform1i", 43, -1 },
728 { "glProgramUniform1iv", 43, -1 },
729 { "glProgramUniform1f", 43, -1 },
730 { "glProgramUniform1fv", 43, -1 },
731 // { "glProgramUniform1d", 43, -1 }, // XXX: Add to xml
732 // { "glProgramUniform1dv", 43, -1 }, // XXX: Add to xml
733 { "glProgramUniform1ui", 43, -1 },
734 { "glProgramUniform1uiv", 43, -1 },
735 { "glProgramUniform2i", 43, -1 },
736 { "glProgramUniform2iv", 43, -1 },
737 { "glProgramUniform2f", 43, -1 },
738 { "glProgramUniform2fv", 43, -1 },
739 // { "glProgramUniform2d", 43, -1 }, // XXX: Add to xml
740 // { "glProgramUniform2dv", 43, -1 }, // XXX: Add to xml
741 { "glProgramUniform2ui", 43, -1 },
742 { "glProgramUniform2uiv", 43, -1 },
743 { "glProgramUniform3i", 43, -1 },
744 { "glProgramUniform3iv", 43, -1 },
745 { "glProgramUniform3f", 43, -1 },
746 { "glProgramUniform3fv", 43, -1 },
747 // { "glProgramUniform3d", 43, -1 }, // XXX: Add to xml
748 // { "glProgramUniform3dv", 43, -1 }, // XXX: Add to xml
749 { "glProgramUniform3ui", 43, -1 },
750 { "glProgramUniform3uiv", 43, -1 },
751 { "glProgramUniform4i", 43, -1 },
752 { "glProgramUniform4iv", 43, -1 },
753 { "glProgramUniform4f", 43, -1 },
754 { "glProgramUniform4fv", 43, -1 },
755 // { "glProgramUniform4d", 43, -1 }, // XXX: Add to xml
756 // { "glProgramUniform4dv", 43, -1 }, // XXX: Add to xml
757 { "glProgramUniform4ui", 43, -1 },
758 { "glProgramUniform4uiv", 43, -1 },
759 { "glProgramUniformMatrix2fv", 43, -1 },
760 { "glProgramUniformMatrix3fv", 43, -1 },
761 { "glProgramUniformMatrix4fv", 43, -1 },
762 // { "glProgramUniformMatrix2dv", 43, -1 }, // XXX: Add to xml
763 // { "glProgramUniformMatrix3dv", 43, -1 }, // XXX: Add to xml
764 // { "glProgramUniformMatrix4dv", 43, -1 }, // XXX: Add to xml
765 { "glProgramUniformMatrix2x3fv", 43, -1 },
766 { "glProgramUniformMatrix3x2fv", 43, -1 },
767 { "glProgramUniformMatrix2x4fv", 43, -1 },
768 { "glProgramUniformMatrix4x2fv", 43, -1 },
769 { "glProgramUniformMatrix3x4fv", 43, -1 },
770 { "glProgramUniformMatrix4x3fv", 43, -1 },
771 // { "glProgramUniformMatrix2x3dv", 43, -1 }, // XXX: Add to xml
772 // { "glProgramUniformMatrix3x2dv", 43, -1 }, // XXX: Add to xml
773 // { "glProgramUniformMatrix2x4dv", 43, -1 }, // XXX: Add to xml
774 // { "glProgramUniformMatrix4x2dv", 43, -1 }, // XXX: Add to xml
775 // { "glProgramUniformMatrix3x4dv", 43, -1 }, // XXX: Add to xml
776 // { "glProgramUniformMatrix4x3dv", 43, -1 }, // XXX: Add to xml
777 { "glValidateProgramPipeline", 43, -1 },
778 { "glGetProgramPipelineInfoLog", 43, -1 },
779 // { "glVertexAttribL1d", 43, -1 }, // XXX: Add to xml
780 // { "glVertexAttribL2d", 43, -1 }, // XXX: Add to xml
781 // { "glVertexAttribL3d", 43, -1 }, // XXX: Add to xml
782 // { "glVertexAttribL4d", 43, -1 }, // XXX: Add to xml
783 // { "glVertexAttribL1dv", 43, -1 }, // XXX: Add to xml
784 // { "glVertexAttribL2dv", 43, -1 }, // XXX: Add to xml
785 // { "glVertexAttribL3dv", 43, -1 }, // XXX: Add to xml
786 // { "glVertexAttribL4dv", 43, -1 }, // XXX: Add to xml
787 // { "glVertexAttribLPointer", 43, -1 }, // XXX: Add to xml
788 // { "glGetVertexAttribLdv", 43, -1 }, // XXX: Add to xml
789 { "glViewportArrayv", 43, -1 },
790 { "glViewportIndexedf", 43, -1 },
791 { "glViewportIndexedfv", 43, -1 },
792 { "glScissorArrayv", 43, -1 },
793 { "glScissorIndexed", 43, -1 },
794 { "glScissorIndexedv", 43, -1 },
795 { "glDepthRangeArrayv", 43, -1 },
796 { "glDepthRangeIndexed", 43, -1 },
797 { "glGetFloati_v", 43, -1 },
798 { "glGetDoublei_v", 43, -1 },
799 // { "glCreateSyncFromCLeventARB", 43, -1 }, // XXX: Add to xml
800 { "glGetGraphicsResetStatusARB", 43, -1 },
801 { "glGetnMapdvARB", 43, -1 },
802 { "glGetnMapfvARB", 43, -1 },
803 { "glGetnMapivARB", 43, -1 },
804 { "glGetnPixelMapfvARB", 43, -1 },
805 { "glGetnPixelMapuivARB", 43, -1 },
806 { "glGetnPixelMapusvARB", 43, -1 },
807 { "glGetnPolygonStippleARB", 43, -1 },
808 { "glGetnColorTableARB", 43, -1 },
809 { "glGetnConvolutionFilterARB", 43, -1 },
810 { "glGetnSeparableFilterARB", 43, -1 },
811 { "glGetnHistogramARB", 43, -1 },
812 { "glGetnMinmaxARB", 43, -1 },
813 { "glGetnTexImageARB", 43, -1 },
814 { "glReadnPixelsARB", 43, -1 },
815 { "glGetnCompressedTexImageARB", 43, -1 },
816 { "glGetnUniformfvARB", 43, -1 },
817 { "glGetnUniformivARB", 43, -1 },
818 { "glGetnUniformuivARB", 43, -1 },
819 { "glGetnUniformdvARB", 43, -1 },
820 { "glDrawArraysInstancedBaseInstance", 43, -1 },
821 { "glDrawElementsInstancedBaseInstance", 43, -1 },
822 { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
823 { "glDrawTransformFeedbackInstanced", 43, -1 },
824 { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
825 // { "glGetInternalformativ", 43, -1 }, // XXX: Add to xml
826 { "glGetActiveAtomicCounterBufferiv", 43, -1 },
827 { "glBindImageTexture", 43, -1 },
828 { "glMemoryBarrier", 43, -1 },
829 { "glTexStorage1D", 43, -1 },
830 { "glTexStorage2D", 43, -1 },
831 { "glTexStorage3D", 43, -1 },
832 { "glTextureStorage1DEXT", 43, -1 },
833 { "glTextureStorage2DEXT", 43, -1 },
834 { "glTextureStorage3DEXT", 43, -1 },
835 { "glClearBufferData", 43, -1 },
836 { "glClearBufferSubData", 43, -1 },
837 // { "glClearNamedBufferDataEXT", 43, -1 }, // XXX: Add to xml
838 // { "glClearNamedBufferSubDataEXT", 43, -1 }, // XXX: Add to xml
839 { "glDispatchCompute", 43, -1 },
840 { "glDispatchComputeIndirect", 43, -1 },
841 { "glCopyImageSubData", 43, -1 },
842 { "glTextureView", 43, -1 },
843 { "glBindVertexBuffer", 43, -1 },
844 { "glVertexAttribFormat", 43, -1 },
845 { "glVertexAttribIFormat", 43, -1 },
846 { "glVertexAttribLFormat", 43, -1 },
847 { "glVertexAttribBinding", 43, -1 },
848 { "glVertexBindingDivisor", 43, -1 },
849 // { "glVertexArrayBindVertexBufferEXT", 43, -1 }, // XXX: Add to xml
850 // { "glVertexArrayVertexAttribFormatEXT", 43, -1 }, // XXX: Add to xml
851 // { "glVertexArrayVertexAttribIFormatEXT", 43, -1 }, // XXX: Add to xml
852 // { "glVertexArrayVertexAttribLFormatEXT", 43, -1 }, // XXX: Add to xml
853 // { "glVertexArrayVertexAttribBindingEXT", 43, -1 }, // XXX: Add to xml
854 // { "glVertexArrayVertexBindingDivisorEXT", 43, -1 }, // XXX: Add to xml
855 // { "glFramebufferParameteri", 43, -1 }, // XXX: Add to xml
856 // { "glGetFramebufferParameteriv", 43, -1 }, // XXX: Add to xml
857 // { "glNamedFramebufferParameteriEXT", 43, -1 }, // XXX: Add to xml
858 // { "glGetNamedFramebufferParameterivEXT", 43, -1 }, // XXX: Add to xml
859 // { "glGetInternalformati64v", 43, -1 }, // XXX: Add to xml
860 { "glInvalidateTexSubImage", 43, -1 },
861 { "glInvalidateTexImage", 43, -1 },
862 { "glInvalidateBufferSubData", 43, -1 },
863 { "glInvalidateBufferData", 43, -1 },
864 { "glInvalidateFramebuffer", 43, -1 },
865 { "glInvalidateSubFramebuffer", 43, -1 },
866 { "glMultiDrawArraysIndirect", 43, -1 },
867 { "glMultiDrawElementsIndirect", 43, -1 },
868 // { "glGetProgramInterfaceiv", 43, -1 }, // XXX: Add to xml
869 // { "glGetProgramResourceIndex", 43, -1 }, // XXX: Add to xml
870 // { "glGetProgramResourceName", 43, -1 }, // XXX: Add to xml
871 // { "glGetProgramResourceiv", 43, -1 }, // XXX: Add to xml
872 // { "glGetProgramResourceLocation", 43, -1 }, // XXX: Add to xml
873 // { "glGetProgramResourceLocationIndex", 43, -1 }, // XXX: Add to xml
874 // { "glShaderStorageBlockBinding", 43, -1 }, // XXX: Add to xml
875 { "glTexBufferRange", 43, -1 },
876 // { "glTextureBufferRangeEXT", 43, -1 }, // XXX: Add to xml
877 { "glTexStorage2DMultisample", 43, -1 },
878 { "glTexStorage3DMultisample", 43, -1 },
879 // { "glTextureStorage2DMultisampleEXT", 43, -1 }, // XXX: Add to xml
880 // { "glTextureStorage3DMultisampleEXT", 43, -1 }, // XXX: Add to xml
881
882 /* GL_ARB_internalformat_query */
883 { "glGetInternalformativ", 30, -1 },
884
885 /* GL_ARB_multi_bind */
886 { "glBindBuffersBase", 44, -1 },
887 { "glBindBuffersRange", 44, -1 },
888 { "glBindTextures", 44, -1 },
889 { "glBindSamplers", 44, -1 },
890 { "glBindImageTextures", 44, -1 },
891 { "glBindVertexBuffers", 44, -1 },
892
893 /* GL_KHR_debug/GL_ARB_debug_output */
894 { "glPushDebugGroup", 11, -1 },
895 { "glPopDebugGroup", 11, -1 },
896 { "glDebugMessageCallback", 11, -1 },
897 { "glDebugMessageControl", 11, -1 },
898 { "glDebugMessageInsert", 11, -1 },
899 { "glGetDebugMessageLog", 11, -1 },
900 { "glGetObjectLabel", 11, -1 },
901 { "glGetObjectPtrLabel", 11, -1 },
902 { "glObjectLabel", 11, -1 },
903 { "glObjectPtrLabel", 11, -1 },
904 /* aliased versions checked above */
905 //{ "glDebugMessageControlARB", 11, -1 },
906 //{ "glDebugMessageInsertARB", 11, -1 },
907 //{ "glDebugMessageCallbackARB", 11, -1 },
908 //{ "glGetDebugMessageLogARB", 11, -1 },
909
910 /* GL_AMD_performance_monitor */
911 { "glGetPerfMonitorGroupsAMD", 11, -1 },
912 { "glGetPerfMonitorCountersAMD", 11, -1 },
913 { "glGetPerfMonitorGroupStringAMD", 11, -1 },
914 { "glGetPerfMonitorCounterStringAMD", 11, -1 },
915 { "glGetPerfMonitorCounterInfoAMD", 11, -1 },
916 { "glGenPerfMonitorsAMD", 11, -1 },
917 { "glDeletePerfMonitorsAMD", 11, -1 },
918 { "glSelectPerfMonitorCountersAMD", 11, -1 },
919 { "glBeginPerfMonitorAMD", 11, -1 },
920 { "glEndPerfMonitorAMD", 11, -1 },
921 { "glGetPerfMonitorCounterDataAMD", 11, -1 },
922
923 /* GL_INTEL_performance_query */
924 { "glGetFirstPerfQueryIdINTEL", 30, -1 },
925 { "glGetNextPerfQueryIdINTEL", 30, -1 },
926 { "glGetPerfQueryIdByNameINTEL", 30, -1 },
927 { "glGetPerfQueryInfoINTEL", 30, -1 },
928 { "glGetPerfCounterInfoINTEL", 30, -1 },
929 { "glCreatePerfQueryINTEL", 30, -1 },
930 { "glDeletePerfQueryINTEL", 30, -1 },
931 { "glBeginPerfQueryINTEL", 30, -1 },
932 { "glEndPerfQueryINTEL", 30, -1 },
933 { "glGetPerfQueryDataINTEL", 30, -1 },
934
935 /* GL_NV_vdpau_interop */
936 { "glVDPAUInitNV", 11, -1 },
937 { "glVDPAUFiniNV", 11, -1 },
938 { "glVDPAURegisterVideoSurfaceNV", 11, -1 },
939 { "glVDPAURegisterOutputSurfaceNV", 11, -1 },
940 { "glVDPAUIsSurfaceNV", 11, -1 },
941 { "glVDPAUUnregisterSurfaceNV", 11, -1 },
942 { "glVDPAUGetSurfaceivNV", 11, -1 },
943 { "glVDPAUSurfaceAccessNV", 11, -1 },
944 { "glVDPAUMapSurfacesNV", 11, -1 },
945 { "glVDPAUUnmapSurfacesNV", 11, -1 },
946
947 /* GL_ARB_buffer_storage */
948 { "glBufferStorage", 43, -1 },
949
950 /* GL_ARB_clear_texture */
951 { "glClearTexImage", 13, -1 },
952 { "glClearTexSubImage", 13, -1 },
953
954 /* GL_ARB_clip_control */
955 { "glClipControl", 45, -1 },
956
957 /* GL_ARB_direct_state_access */
958 { "glCreateTextures", 45, -1 },
959 { "glTextureStorage1D", 45, -1 },
960 { "glTextureStorage2D", 45, -1 },
961 { "glTextureStorage3D", 45, -1 },
962 { "glTextureSubImage1D", 45, -1 },
963 { "glTextureSubImage2D", 45, -1 },
964 { "glTextureSubImage3D", 45, -1 },
965 { "glBindTextureUnit", 45, -1 },
966
967 { NULL, 0, -1 }
968 };
969
970 const struct function gles11_functions_possible[] = {
971 { "glActiveTexture", 11, _gloffset_ActiveTexture },
972 { "glAlphaFunc", 11, _gloffset_AlphaFunc },
973 { "glAlphaFuncx", 11, -1 },
974 { "glBindBuffer", 11, -1 },
975 { "glBindFramebufferOES", 11, -1 },
976 { "glBindRenderbufferOES", 11, -1 },
977 { "glBindTexture", 11, _gloffset_BindTexture },
978 { "glBlendEquationOES", 11, _gloffset_BlendEquation },
979 { "glBlendEquationSeparateOES", 11, -1 },
980 { "glBlendFunc", 11, _gloffset_BlendFunc },
981 { "glBlendFuncSeparateOES", 11, -1 },
982 { "glBufferData", 11, -1 },
983 { "glBufferSubData", 11, -1 },
984 { "glCheckFramebufferStatusOES", 11, -1 },
985 { "glClear", 11, _gloffset_Clear },
986 { "glClearColor", 11, _gloffset_ClearColor },
987 { "glClearColorx", 11, -1 },
988 { "glClearDepthf", 11, -1 },
989 { "glClearDepthx", 11, -1 },
990 { "glClearStencil", 11, _gloffset_ClearStencil },
991 { "glClientActiveTexture", 11, _gloffset_ClientActiveTexture },
992 { "glClipPlanef", 11, -1 },
993 { "glClipPlanex", 11, -1 },
994 { "glColor4f", 11, _gloffset_Color4f },
995 { "glColor4ub", 11, _gloffset_Color4ub },
996 { "glColor4x", 11, -1 },
997 { "glColorMask", 11, _gloffset_ColorMask },
998 { "glColorPointer", 11, _gloffset_ColorPointer },
999 { "glCompressedTexImage2D", 11, -1 },
1000 { "glCompressedTexSubImage2D", 11, -1 },
1001 { "glCopyTexImage2D", 11, _gloffset_CopyTexImage2D },
1002 { "glCopyTexSubImage2D", 11, _gloffset_CopyTexSubImage2D },
1003 { "glCullFace", 11, _gloffset_CullFace },
1004 { "glDeleteBuffers", 11, -1 },
1005 { "glDeleteFramebuffersOES", 11, -1 },
1006 { "glDeleteRenderbuffersOES", 11, -1 },
1007 { "glDeleteTextures", 11, _gloffset_DeleteTextures },
1008 { "glDepthFunc", 11, _gloffset_DepthFunc },
1009 { "glDepthMask", 11, _gloffset_DepthMask },
1010 { "glDepthRangef", 11, -1 },
1011 { "glDepthRangex", 11, -1 },
1012 { "glDisable", 11, _gloffset_Disable },
1013 { "glDiscardFramebufferEXT", 11, -1 },
1014 { "glDisableClientState", 11, _gloffset_DisableClientState },
1015 { "glDrawArrays", 11, _gloffset_DrawArrays },
1016 { "glDrawElements", 11, _gloffset_DrawElements },
1017 { "glDrawTexfOES", 11, -1 },
1018 { "glDrawTexfvOES", 11, -1 },
1019 { "glDrawTexiOES", 11, -1 },
1020 { "glDrawTexivOES", 11, -1 },
1021 { "glDrawTexsOES", 11, -1 },
1022 { "glDrawTexsvOES", 11, -1 },
1023 { "glDrawTexxOES", 11, -1 },
1024 { "glDrawTexxvOES", 11, -1 },
1025 { "glEGLImageTargetRenderbufferStorageOES", 11, -1 },
1026 { "glEGLImageTargetTexture2DOES", 11, -1 },
1027 { "glEnable", 11, _gloffset_Enable },
1028 { "glEnableClientState", 11, _gloffset_EnableClientState },
1029 { "glFinish", 11, _gloffset_Finish },
1030 { "glFlush", 11, _gloffset_Flush },
1031 { "glFlushMappedBufferRangeEXT", 11, -1 },
1032 { "glFogf", 11, _gloffset_Fogf },
1033 { "glFogfv", 11, _gloffset_Fogfv },
1034 { "glFogx", 11, -1 },
1035 { "glFogxv", 11, -1 },
1036 { "glFramebufferRenderbufferOES", 11, -1 },
1037 { "glFramebufferTexture2DOES", 11, -1 },
1038 { "glFrontFace", 11, _gloffset_FrontFace },
1039 { "glFrustumf", 11, -1 },
1040 { "glFrustumx", 11, -1 },
1041 { "glGenBuffers", 11, -1 },
1042 { "glGenFramebuffersOES", 11, -1 },
1043 { "glGenRenderbuffersOES", 11, -1 },
1044 { "glGenTextures", 11, _gloffset_GenTextures },
1045 { "glGenerateMipmapOES", 11, -1 },
1046 { "glGetBooleanv", 11, _gloffset_GetBooleanv },
1047 { "glGetBufferParameteriv", 11, -1 },
1048 { "glGetBufferPointervOES", 11, -1 },
1049 { "glGetClipPlanef", 11, -1 },
1050 { "glGetClipPlanex", 11, -1 },
1051 { "glGetError", 11, _gloffset_GetError },
1052 { "glGetFixedv", 11, -1 },
1053 { "glGetFloatv", 11, _gloffset_GetFloatv },
1054 { "glGetFramebufferAttachmentParameterivOES", 11, -1 },
1055 { "glGetIntegerv", 11, _gloffset_GetIntegerv },
1056 { "glGetLightfv", 11, _gloffset_GetLightfv },
1057 { "glGetLightxv", 11, -1 },
1058 { "glGetMaterialfv", 11, _gloffset_GetMaterialfv },
1059 { "glGetMaterialxv", 11, -1 },
1060 { "glGetPointerv", 11, _gloffset_GetPointerv },
1061 { "glGetRenderbufferParameterivOES", 11, -1 },
1062 { "glGetString", 11, _gloffset_GetString },
1063 { "glGetTexEnvfv", 11, _gloffset_GetTexEnvfv },
1064 { "glGetTexEnviv", 11, _gloffset_GetTexEnviv },
1065 { "glGetTexEnvxv", 11, -1 },
1066 { "glGetTexGenfvOES", 11, _gloffset_GetTexGenfv },
1067 { "glGetTexGenivOES", 11, _gloffset_GetTexGeniv },
1068 { "glGetTexGenxvOES", 11, -1 },
1069 { "glGetTexParameterfv", 11, _gloffset_GetTexParameterfv },
1070 { "glGetTexParameteriv", 11, _gloffset_GetTexParameteriv },
1071 { "glGetTexParameterxv", 11, -1 },
1072 { "glHint", 11, _gloffset_Hint },
1073 { "glIsBuffer", 11, -1 },
1074 { "glIsEnabled", 11, _gloffset_IsEnabled },
1075 { "glIsFramebufferOES", 11, -1 },
1076 { "glIsRenderbufferOES", 11, -1 },
1077 { "glIsTexture", 11, _gloffset_IsTexture },
1078 { "glLightModelf", 11, _gloffset_LightModelf },
1079 { "glLightModelfv", 11, _gloffset_LightModelfv },
1080 { "glLightModelx", 11, -1 },
1081 { "glLightModelxv", 11, -1 },
1082 { "glLightf", 11, _gloffset_Lightf },
1083 { "glLightfv", 11, _gloffset_Lightfv },
1084 { "glLightx", 11, -1 },
1085 { "glLightxv", 11, -1 },
1086 { "glLineWidth", 11, _gloffset_LineWidth },
1087 { "glLineWidthx", 11, -1 },
1088 { "glLoadIdentity", 11, _gloffset_LoadIdentity },
1089 { "glLoadMatrixf", 11, _gloffset_LoadMatrixf },
1090 { "glLoadMatrixx", 11, -1 },
1091 { "glLogicOp", 11, _gloffset_LogicOp },
1092 { "glMapBufferOES", 11, -1 },
1093 { "glMapBufferRangeEXT", 11, -1 },
1094 { "glMaterialf", 11, _gloffset_Materialf },
1095 { "glMaterialfv", 11, _gloffset_Materialfv },
1096 { "glMaterialx", 11, -1 },
1097 { "glMaterialxv", 11, -1 },
1098 { "glMatrixMode", 11, _gloffset_MatrixMode },
1099 { "glMultMatrixf", 11, _gloffset_MultMatrixf },
1100 { "glMultMatrixx", 11, -1 },
1101 { "glMultiDrawArraysEXT", 11, -1 },
1102 { "glMultiDrawElementsEXT", 11, -1 },
1103 { "glMultiTexCoord4f", 11, _gloffset_MultiTexCoord4fARB },
1104 { "glMultiTexCoord4x", 11, -1 },
1105 { "glNormal3f", 11, _gloffset_Normal3f },
1106 { "glNormal3x", 11, -1 },
1107 { "glNormalPointer", 11, _gloffset_NormalPointer },
1108 { "glOrthof", 11, -1 },
1109 { "glOrthox", 11, -1 },
1110 { "glPixelStorei", 11, _gloffset_PixelStorei },
1111 { "glPointParameterf", 11, -1 },
1112 { "glPointParameterfv", 11, -1 },
1113 { "glPointParameterx", 11, -1 },
1114 { "glPointParameterxv", 11, -1 },
1115 { "glPointSize", 11, _gloffset_PointSize },
1116 { "glPointSizePointerOES", 11, -1 },
1117 { "glPointSizex", 11, -1 },
1118 { "glPolygonOffset", 11, _gloffset_PolygonOffset },
1119 { "glPolygonOffsetx", 11, -1 },
1120 { "glPopMatrix", 11, _gloffset_PopMatrix },
1121 { "glPushMatrix", 11, _gloffset_PushMatrix },
1122 { "glQueryMatrixxOES", 11, -1 },
1123 { "glReadPixels", 11, _gloffset_ReadPixels },
1124 { "glRenderbufferStorageOES", 11, -1 },
1125 { "glRotatef", 11, _gloffset_Rotatef },
1126 { "glRotatex", 11, -1 },
1127 { "glSampleCoverage", 11, -1 },
1128 { "glSampleCoveragex", 11, -1 },
1129 { "glScalef", 11, _gloffset_Scalef },
1130 { "glScalex", 11, -1 },
1131 { "glScissor", 11, _gloffset_Scissor },
1132 { "glShadeModel", 11, _gloffset_ShadeModel },
1133 { "glStencilFunc", 11, _gloffset_StencilFunc },
1134 { "glStencilMask", 11, _gloffset_StencilMask },
1135 { "glStencilOp", 11, _gloffset_StencilOp },
1136 { "glTexCoordPointer", 11, _gloffset_TexCoordPointer },
1137 { "glTexEnvf", 11, _gloffset_TexEnvf },
1138 { "glTexEnvfv", 11, _gloffset_TexEnvfv },
1139 { "glTexEnvi", 11, _gloffset_TexEnvi },
1140 { "glTexEnviv", 11, _gloffset_TexEnviv },
1141 { "glTexEnvx", 11, -1 },
1142 { "glTexEnvxv", 11, -1 },
1143 { "glTexGenfOES", 11, _gloffset_TexGenf },
1144 { "glTexGenfvOES", 11, _gloffset_TexGenfv },
1145 { "glTexGeniOES", 11, _gloffset_TexGeni },
1146 { "glTexGenivOES", 11, _gloffset_TexGeniv },
1147 { "glTexGenxOES", 11, -1 },
1148 { "glTexGenxvOES", 11, -1 },
1149 { "glTexImage2D", 11, _gloffset_TexImage2D },
1150 { "glTexParameterf", 11, _gloffset_TexParameterf },
1151 { "glTexParameterfv", 11, _gloffset_TexParameterfv },
1152 { "glTexParameteri", 11, _gloffset_TexParameteri },
1153 { "glTexParameteriv", 11, _gloffset_TexParameteriv },
1154 { "glTexParameterx", 11, -1 },
1155 { "glTexParameterxv", 11, -1 },
1156 { "glTexSubImage2D", 11, _gloffset_TexSubImage2D },
1157 { "glTranslatef", 11, _gloffset_Translatef },
1158 { "glTranslatex", 11, -1 },
1159 { "glUnmapBufferOES", 11, -1 },
1160 { "glVertexPointer", 11, _gloffset_VertexPointer },
1161 { "glViewport", 11, _gloffset_Viewport },
1162 { NULL, 0, -1 }
1163 };
1164
1165 const struct function gles2_functions_possible[] = {
1166 { "glActiveTexture", 20, _gloffset_ActiveTexture },
1167 { "glAttachShader", 20, -1 },
1168 { "glBindAttribLocation", 20, -1 },
1169 { "glBindBuffer", 20, -1 },
1170 { "glBindFramebuffer", 20, -1 },
1171 { "glBindRenderbuffer", 20, -1 },
1172 { "glBindTexture", 20, _gloffset_BindTexture },
1173 { "glBindVertexArrayOES", 20, -1 },
1174 { "glBlendColor", 20, _gloffset_BlendColor },
1175 { "glBlendEquation", 20, _gloffset_BlendEquation },
1176 { "glBlendEquationSeparate", 20, -1 },
1177 { "glBlendFunc", 20, _gloffset_BlendFunc },
1178 { "glBlendFuncSeparate", 20, -1 },
1179 { "glBufferData", 20, -1 },
1180 { "glBufferSubData", 20, -1 },
1181 { "glCheckFramebufferStatus", 20, -1 },
1182 { "glClear", 20, _gloffset_Clear },
1183 { "glClearColor", 20, _gloffset_ClearColor },
1184 { "glClearDepthf", 20, -1 },
1185 { "glClearStencil", 20, _gloffset_ClearStencil },
1186 { "glColorMask", 20, _gloffset_ColorMask },
1187 { "glCompileShader", 20, -1 },
1188 { "glCompressedTexImage2D", 20, -1 },
1189 { "glCompressedTexImage3DOES", 20, -1 },
1190 { "glCompressedTexSubImage2D", 20, -1 },
1191 { "glCompressedTexSubImage3DOES", 20, -1 },
1192 { "glCopyTexImage2D", 20, _gloffset_CopyTexImage2D },
1193 { "glCopyTexSubImage2D", 20, _gloffset_CopyTexSubImage2D },
1194 { "glCopyTexSubImage3DOES", 20, _gloffset_CopyTexSubImage3D },
1195 { "glCreateProgram", 20, -1 },
1196 { "glCreateShader", 20, -1 },
1197 { "glCullFace", 20, _gloffset_CullFace },
1198 { "glDeleteBuffers", 20, -1 },
1199 { "glDeleteFramebuffers", 20, -1 },
1200 { "glDeleteProgram", 20, -1 },
1201 { "glDeleteRenderbuffers", 20, -1 },
1202 { "glDeleteShader", 20, -1 },
1203 { "glDeleteTextures", 20, _gloffset_DeleteTextures },
1204 { "glDeleteVertexArraysOES", 20, -1 },
1205 { "glDepthFunc", 20, _gloffset_DepthFunc },
1206 { "glDepthMask", 20, _gloffset_DepthMask },
1207 { "glDepthRangef", 20, -1 },
1208 { "glDetachShader", 20, -1 },
1209 { "glDisable", 20, _gloffset_Disable },
1210 { "glDiscardFramebufferEXT", 20, -1 },
1211 { "glDisableVertexAttribArray", 20, -1 },
1212 { "glDrawArrays", 20, _gloffset_DrawArrays },
1213 { "glDrawBuffersNV", 20, -1 },
1214 { "glDrawElements", 20, _gloffset_DrawElements },
1215 { "glEGLImageTargetRenderbufferStorageOES", 20, -1 },
1216 { "glEGLImageTargetTexture2DOES", 20, -1 },
1217 { "glEnable", 20, _gloffset_Enable },
1218 { "glEnableVertexAttribArray", 20, -1 },
1219 { "glFinish", 20, _gloffset_Finish },
1220 { "glFlush", 20, _gloffset_Flush },
1221 { "glFlushMappedBufferRangeEXT", 20, -1 },
1222 { "glFramebufferRenderbuffer", 20, -1 },
1223 { "glFramebufferTexture2D", 20, -1 },
1224 { "glFramebufferTexture3DOES", 20, -1 },
1225 { "glFrontFace", 20, _gloffset_FrontFace },
1226 { "glGenBuffers", 20, -1 },
1227 { "glGenFramebuffers", 20, -1 },
1228 { "glGenRenderbuffers", 20, -1 },
1229 { "glGenTextures", 20, _gloffset_GenTextures },
1230 { "glGenVertexArraysOES", 20, -1 },
1231 { "glGenerateMipmap", 20, -1 },
1232 { "glGetActiveAttrib", 20, -1 },
1233 { "glGetActiveUniform", 20, -1 },
1234 { "glGetAttachedShaders", 20, -1 },
1235 { "glGetAttribLocation", 20, -1 },
1236 { "glGetBooleanv", 20, _gloffset_GetBooleanv },
1237 { "glGetBufferParameteriv", 20, -1 },
1238 { "glGetBufferPointervOES", 20, -1 },
1239 { "glGetError", 20, _gloffset_GetError },
1240 { "glGetFloatv", 20, _gloffset_GetFloatv },
1241 { "glGetFramebufferAttachmentParameteriv", 20, -1 },
1242 { "glGetIntegerv", 20, _gloffset_GetIntegerv },
1243 { "glGetProgramInfoLog", 20, -1 },
1244 { "glGetProgramiv", 20, -1 },
1245 { "glGetRenderbufferParameteriv", 20, -1 },
1246 { "glGetShaderInfoLog", 20, -1 },
1247 { "glGetShaderPrecisionFormat", 20, -1 },
1248 { "glGetShaderSource", 20, -1 },
1249 { "glGetShaderiv", 20, -1 },
1250 { "glGetString", 20, _gloffset_GetString },
1251 { "glGetTexParameterfv", 20, _gloffset_GetTexParameterfv },
1252 { "glGetTexParameteriv", 20, _gloffset_GetTexParameteriv },
1253 { "glGetUniformLocation", 20, -1 },
1254 { "glGetUniformfv", 20, -1 },
1255 { "glGetUniformiv", 20, -1 },
1256 { "glGetVertexAttribPointerv", 20, -1 },
1257 { "glGetVertexAttribfv", 20, -1 },
1258 { "glGetVertexAttribiv", 20, -1 },
1259 { "glHint", 20, _gloffset_Hint },
1260 { "glIsBuffer", 20, -1 },
1261 { "glIsEnabled", 20, _gloffset_IsEnabled },
1262 { "glIsFramebuffer", 20, -1 },
1263 { "glIsProgram", 20, -1 },
1264 { "glIsRenderbuffer", 20, -1 },
1265 { "glIsShader", 20, -1 },
1266 { "glIsTexture", 20, _gloffset_IsTexture },
1267 { "glIsVertexArrayOES", 20, -1 },
1268 { "glLineWidth", 20, _gloffset_LineWidth },
1269 { "glLinkProgram", 20, -1 },
1270 { "glMapBufferOES", 20, -1 },
1271 { "glMapBufferRangeEXT", 20, -1 },
1272 { "glMultiDrawArraysEXT", 20, -1 },
1273 { "glMultiDrawElementsEXT", 20, -1 },
1274 { "glPixelStorei", 20, _gloffset_PixelStorei },
1275 { "glPolygonOffset", 20, _gloffset_PolygonOffset },
1276 { "glReadBufferNV", 20, _gloffset_ReadBuffer },
1277 { "glReadPixels", 20, _gloffset_ReadPixels },
1278 { "glReleaseShaderCompiler", 20, -1 },
1279 { "glRenderbufferStorage", 20, -1 },
1280 { "glSampleCoverage", 20, -1 },
1281 { "glScissor", 20, _gloffset_Scissor },
1282 { "glShaderBinary", 20, -1 },
1283 { "glShaderSource", 20, -1 },
1284 { "glStencilFunc", 20, _gloffset_StencilFunc },
1285 { "glStencilFuncSeparate", 20, -1 },
1286 { "glStencilMask", 20, _gloffset_StencilMask },
1287 { "glStencilMaskSeparate", 20, -1 },
1288 { "glStencilOp", 20, _gloffset_StencilOp },
1289 { "glStencilOpSeparate", 20, -1 },
1290 { "glTexImage2D", 20, _gloffset_TexImage2D },
1291 { "glTexImage3DOES", 20, _gloffset_TexImage3D },
1292 { "glTexParameterf", 20, _gloffset_TexParameterf },
1293 { "glTexParameterfv", 20, _gloffset_TexParameterfv },
1294 { "glTexParameteri", 20, _gloffset_TexParameteri },
1295 { "glTexParameteriv", 20, _gloffset_TexParameteriv },
1296 { "glTexSubImage2D", 20, _gloffset_TexSubImage2D },
1297 { "glTexSubImage3DOES", 20, _gloffset_TexSubImage3D },
1298 { "glUniform1f", 20, -1 },
1299 { "glUniform1fv", 20, -1 },
1300 { "glUniform1i", 20, -1 },
1301 { "glUniform1iv", 20, -1 },
1302 { "glUniform2f", 20, -1 },
1303 { "glUniform2fv", 20, -1 },
1304 { "glUniform2i", 20, -1 },
1305 { "glUniform2iv", 20, -1 },
1306 { "glUniform3f", 20, -1 },
1307 { "glUniform3fv", 20, -1 },
1308 { "glUniform3i", 20, -1 },
1309 { "glUniform3iv", 20, -1 },
1310 { "glUniform4f", 20, -1 },
1311 { "glUniform4fv", 20, -1 },
1312 { "glUniform4i", 20, -1 },
1313 { "glUniform4iv", 20, -1 },
1314 { "glUniformMatrix2fv", 20, -1 },
1315 { "glUniformMatrix3fv", 20, -1 },
1316 { "glUniformMatrix4fv", 20, -1 },
1317 { "glUnmapBufferOES", 20, -1 },
1318 { "glUseProgram", 20, -1 },
1319 { "glValidateProgram", 20, -1 },
1320 { "glVertexAttrib1f", 20, -1 },
1321 { "glVertexAttrib1fv", 20, -1 },
1322 { "glVertexAttrib2f", 20, -1 },
1323 { "glVertexAttrib2fv", 20, -1 },
1324 { "glVertexAttrib3f", 20, -1 },
1325 { "glVertexAttrib3fv", 20, -1 },
1326 { "glVertexAttrib4f", 20, -1 },
1327 { "glVertexAttrib4fv", 20, -1 },
1328 { "glVertexAttribPointer", 20, -1 },
1329 { "glViewport", 20, _gloffset_Viewport },
1330
1331 /* GL_OES_get_program_binary - Also part of OpenGL ES 3.0. */
1332 { "glGetProgramBinaryOES", 20, -1 },
1333 { "glProgramBinaryOES", 20, -1 },
1334
1335 /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
1336 { "glProgramParameteriEXT", 20, -1 },
1337 { "glUseProgramStagesEXT", 20, -1 },
1338 { "glActiveShaderProgramEXT", 20, -1 },
1339 { "glCreateShaderProgramvEXT", 20, -1 },
1340 { "glBindProgramPipelineEXT", 20, -1 },
1341 { "glDeleteProgramPipelinesEXT", 20, -1 },
1342 { "glGenProgramPipelinesEXT", 20, -1 },
1343 { "glIsProgramPipelineEXT", 20, -1 },
1344 { "glGetProgramPipelineivEXT", 20, -1 },
1345 { "glProgramUniform1iEXT", 20, -1 },
1346 { "glProgramUniform1ivEXT", 20, -1 },
1347 { "glProgramUniform1fEXT", 20, -1 },
1348 { "glProgramUniform1fvEXT", 20, -1 },
1349 { "glProgramUniform2iEXT", 20, -1 },
1350 { "glProgramUniform2ivEXT", 20, -1 },
1351 { "glProgramUniform2fEXT", 20, -1 },
1352 { "glProgramUniform2fvEXT", 20, -1 },
1353 { "glProgramUniform3iEXT", 20, -1 },
1354 { "glProgramUniform3ivEXT", 20, -1 },
1355 { "glProgramUniform3fEXT", 20, -1 },
1356 { "glProgramUniform3fvEXT", 20, -1 },
1357 { "glProgramUniform4iEXT", 20, -1 },
1358 { "glProgramUniform4ivEXT", 20, -1 },
1359 { "glProgramUniform4fEXT", 20, -1 },
1360 { "glProgramUniform4fvEXT", 20, -1 },
1361 { "glProgramUniformMatrix2fvEXT", 20, -1 },
1362 { "glProgramUniformMatrix3fvEXT", 20, -1 },
1363 { "glProgramUniformMatrix4fvEXT", 20, -1 },
1364 { "glProgramUniformMatrix2x3fvEXT", 20, -1 },
1365 { "glProgramUniformMatrix3x2fvEXT", 20, -1 },
1366 { "glProgramUniformMatrix2x4fvEXT", 20, -1 },
1367 { "glProgramUniformMatrix4x2fvEXT", 20, -1 },
1368 { "glProgramUniformMatrix3x4fvEXT", 20, -1 },
1369 { "glProgramUniformMatrix4x3fvEXT", 20, -1 },
1370 { "glValidateProgramPipelineEXT", 20, -1 },
1371 { "glGetProgramPipelineInfoLogEXT", 20, -1 },
1372
1373 /* GL_INTEL_performance_query */
1374 { "glGetFirstPerfQueryIdINTEL", 20, -1 },
1375 { "glGetNextPerfQueryIdINTEL", 20, -1 },
1376 { "glGetPerfQueryIdByNameINTEL", 20, -1 },
1377 { "glGetPerfQueryInfoINTEL", 20, -1 },
1378 { "glGetPerfCounterInfoINTEL", 20, -1 },
1379 { "glCreatePerfQueryINTEL", 20, -1 },
1380 { "glDeletePerfQueryINTEL", 20, -1 },
1381 { "glBeginPerfQueryINTEL", 20, -1 },
1382 { "glEndPerfQueryINTEL", 20, -1 },
1383 { "glGetPerfQueryDataINTEL", 20, -1 },
1384
1385 { NULL, 0, -1 }
1386 };
1387
1388 const struct function gles3_functions_possible[] = {
1389 { "glBeginQuery", 30, -1 },
1390 { "glBeginTransformFeedback", 30, -1 },
1391 { "glBindBufferBase", 30, -1 },
1392 { "glBindBufferRange", 30, -1 },
1393 { "glBindSampler", 30, -1 },
1394 { "glBindTransformFeedback", 30, -1 },
1395 // We check for the aliased -OES version in GLES 2
1396 // { "glBindVertexArray", 30, -1 },
1397 { "glBlitFramebuffer", 30, -1 },
1398 { "glClearBufferfi", 30, -1 },
1399 { "glClearBufferfv", 30, -1 },
1400 { "glClearBufferiv", 30, -1 },
1401 { "glClearBufferuiv", 30, -1 },
1402 { "glClientWaitSync", 30, -1 },
1403 // We check for the aliased -OES version in GLES 2
1404 // { "glCompressedTexImage3D", 30, -1 },
1405 // We check for the aliased -OES version in GLES 2
1406 // { "glCompressedTexSubImage3D", 30, -1 },
1407 { "glCopyBufferSubData", 30, -1 },
1408 // We check for the aliased -OES version in GLES 2
1409 // { "glCopyTexSubImage3D", 30, -1 },
1410 { "glDeleteQueries", 30, -1 },
1411 { "glDeleteSamplers", 30, -1 },
1412 { "glDeleteSync", 30, -1 },
1413 { "glDeleteTransformFeedbacks", 30, -1 },
1414 // We check for the aliased -OES version in GLES 2
1415 // { "glDeleteVertexArrays", 30, -1 },
1416 { "glDrawArraysInstanced", 30, -1 },
1417 // We check for the aliased -NV version in GLES 2
1418 // { "glDrawBuffers", 30, -1 },
1419 { "glDrawElementsInstanced", 30, -1 },
1420 { "glDrawRangeElements", 30, -1 },
1421 { "glEndQuery", 30, -1 },
1422 { "glEndTransformFeedback", 30, -1 },
1423 { "glFenceSync", 30, -1 },
1424 // We check for the aliased -EXT version in GLES 2
1425 // { "glFlushMappedBufferRange", 30, -1 },
1426 { "glFramebufferTextureLayer", 30, -1 },
1427 { "glGenQueries", 30, -1 },
1428 { "glGenSamplers", 30, -1 },
1429 { "glGenTransformFeedbacks", 30, -1 },
1430 // We check for the aliased -OES version in GLES 2
1431 // { "glGenVertexArrays", 30, -1 },
1432 { "glGetActiveUniformBlockiv", 30, -1 },
1433 { "glGetActiveUniformBlockName", 30, -1 },
1434 { "glGetActiveUniformsiv", 30, -1 },
1435 { "glGetBufferParameteri64v", 30, -1 },
1436 // We check for the aliased -OES version in GLES 2
1437 // { "glGetBufferPointerv", 30, -1 },
1438 { "glGetFragDataLocation", 30, -1 },
1439 { "glGetInteger64i_v", 30, -1 },
1440 { "glGetInteger64v", 30, -1 },
1441 { "glGetIntegeri_v", 30, -1 },
1442 { "glGetInternalformativ", 30, -1 },
1443 // glGetProgramBinary aliases glGetProgramBinaryOES in GLES 2
1444 { "glGetQueryiv", 30, -1 },
1445 { "glGetQueryObjectuiv", 30, -1 },
1446 { "glGetSamplerParameterfv", 30, -1 },
1447 { "glGetSamplerParameteriv", 30, -1 },
1448 { "glGetStringi", 30, -1 },
1449 { "glGetSynciv", 30, -1 },
1450 { "glGetTransformFeedbackVarying", 30, -1 },
1451 { "glGetUniformBlockIndex", 30, -1 },
1452 { "glGetUniformIndices", 30, -1 },
1453 { "glGetUniformuiv", 30, -1 },
1454 { "glGetVertexAttribIiv", 30, -1 },
1455 { "glGetVertexAttribIuiv", 30, -1 },
1456 { "glInvalidateFramebuffer", 30, -1 },
1457 { "glInvalidateSubFramebuffer", 30, -1 },
1458 { "glIsQuery", 30, -1 },
1459 { "glIsSampler", 30, -1 },
1460 { "glIsSync", 30, -1 },
1461 { "glIsTransformFeedback", 30, -1 },
1462 // We check for the aliased -OES version in GLES 2
1463 // { "glIsVertexArray", 30, -1 },
1464 // We check for the aliased -EXT version in GLES 2
1465 // { "glMapBufferRange", 30, -1 },
1466 { "glPauseTransformFeedback", 30, -1 },
1467 // glProgramBinary aliases glProgramBinaryOES in GLES 2
1468 // glProgramParameteri aliases glProgramParameteriEXT in GLES 2
1469 // We check for the aliased -NV version in GLES 2
1470 // { "glReadBuffer", 30, -1 },
1471 { "glRenderbufferStorageMultisample", 30, -1 },
1472 { "glResumeTransformFeedback", 30, -1 },
1473 { "glSamplerParameterf", 30, -1 },
1474 { "glSamplerParameterfv", 30, -1 },
1475 { "glSamplerParameteri", 30, -1 },
1476 { "glSamplerParameteriv", 30, -1 },
1477 // We check for the aliased -OES version in GLES 2
1478 // { "glTexImage3D", 30, -1 },
1479 { "glTexStorage2D", 30, -1 },
1480 { "glTexStorage3D", 30, -1 },
1481 // We check for the aliased -OES version in GLES 2
1482 // { "glTexSubImage3D", 30, -1 },
1483 { "glTransformFeedbackVaryings", 30, -1 },
1484 { "glUniform1ui", 30, -1 },
1485 { "glUniform1uiv", 30, -1 },
1486 { "glUniform2ui", 30, -1 },
1487 { "glUniform2uiv", 30, -1 },
1488 { "glUniform3ui", 30, -1 },
1489 { "glUniform3uiv", 30, -1 },
1490 { "glUniform4ui", 30, -1 },
1491 { "glUniform4uiv", 30, -1 },
1492 { "glUniformBlockBinding", 30, -1 },
1493 { "glUniformMatrix2x3fv", 30, -1 },
1494 { "glUniformMatrix2x4fv", 30, -1 },
1495 { "glUniformMatrix3x2fv", 30, -1 },
1496 { "glUniformMatrix3x4fv", 30, -1 },
1497 { "glUniformMatrix4x2fv", 30, -1 },
1498 { "glUniformMatrix4x3fv", 30, -1 },
1499 // We check for the aliased -OES version in GLES 2
1500 // { "glUnmapBuffer", 30, -1 },
1501 { "glVertexAttribDivisor", 30, -1 },
1502 { "glVertexAttribI4i", 30, -1 },
1503 { "glVertexAttribI4iv", 30, -1 },
1504 { "glVertexAttribI4ui", 30, -1 },
1505 { "glVertexAttribI4uiv", 30, -1 },
1506 { "glVertexAttribIPointer", 30, -1 },
1507 { "glWaitSync", 30, -1 },
1508
1509 /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
1510 { "glProgramUniform1uiEXT", 30, -1 },
1511 { "glProgramUniform1uivEXT", 30, -1 },
1512 { "glProgramUniform2uiEXT", 30, -1 },
1513 { "glProgramUniform2uivEXT", 30, -1 },
1514 { "glProgramUniform3uiEXT", 30, -1 },
1515 { "glProgramUniform3uivEXT", 30, -1 },
1516 { "glProgramUniform4uiEXT", 30, -1 },
1517 { "glProgramUniform4uivEXT", 30, -1 },
1518
1519 { NULL, 0, -1 }
1520 };