1
/* DO NOT EDIT - This file generated automatically by remap_helper.py (from Mesa) script */
4
* Copyright (C) 2009 Chia-I Wu <olv@0xlab.org>
7
* Permission is hereby granted, free of charge, to any person obtaining a
8
* copy of this software and associated documentation files (the "Software"),
9
* to deal in the Software without restriction, including without limitation
10
* the rights to use, copy, modify, merge, publish, distribute, sub license,
11
* and/or sell copies of the Software, and to permit persons to whom the
12
* Software is furnished to do so, subject to the following conditions:
14
* The above copyright notice and this permission notice (including the next
15
* paragraph) shall be included in all copies or substantial portions of the
18
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
22
* AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
#include "main/dispatch.h"
29
#include "main/remap.h"
31
/* this is internal to remap.c */
32
#ifndef need_MESA_remap_table
33
#error Only remap.c should include this file!
34
#endif /* need_MESA_remap_table */
37
static const char _mesa_function_pool[] =
38
/* _mesa_function_pool[0]: GetTexParameteriv (offset 283) */
40
"glGetTexParameteriv\0"
42
/* _mesa_function_pool[25]: MapBufferOES (will be remapped) */
46
/* _mesa_function_pool[44]: DeleteShader (will be remapped) */
50
/* _mesa_function_pool[62]: VertexAttrib2f (will be remapped) */
54
/* _mesa_function_pool[84]: Uniform2f (will be remapped) */
58
/* _mesa_function_pool[101]: CompileShader (will be remapped) */
62
/* _mesa_function_pool[120]: GetProgramiv (will be remapped) */
66
/* _mesa_function_pool[140]: LineWidth (offset 168) */
70
/* _mesa_function_pool[155]: GetBufferPointervOES (will be remapped) */
72
"glGetBufferPointervOES\0"
74
/* _mesa_function_pool[183]: Uniform2i (will be remapped) */
78
/* _mesa_function_pool[200]: Finish (offset 216) */
82
/* _mesa_function_pool[211]: ClearStencil (offset 207) */
86
/* _mesa_function_pool[229]: Uniform1fv (will be remapped) */
90
/* _mesa_function_pool[247]: GenBuffers (will be remapped) */
94
/* _mesa_function_pool[264]: GetProgramInfoLog (will be remapped) */
96
"glGetProgramInfoLog\0"
98
/* _mesa_function_pool[290]: Uniform2fv (will be remapped) */
102
/* _mesa_function_pool[308]: EnableVertexAttribArray (will be remapped) */
104
"glEnableVertexAttribArray\0"
106
/* _mesa_function_pool[337]: GetAttachedShaders (will be remapped) */
108
"glGetAttachedShaders\0"
110
/* _mesa_function_pool[364]: TexImage3DOES (offset 371) */
114
/* _mesa_function_pool[392]: VertexAttrib4fv (will be remapped) */
116
"glVertexAttrib4fv\0"
118
/* _mesa_function_pool[414]: IsEnabled (offset 286) */
122
/* _mesa_function_pool[429]: LinkProgram (will be remapped) */
126
/* _mesa_function_pool[446]: DeleteProgram (will be remapped) */
130
/* _mesa_function_pool[465]: CompressedTexSubImage3DOES (will be remapped) */
132
"glCompressedTexSubImage3DOES\0"
134
/* _mesa_function_pool[507]: Uniform1f (will be remapped) */
138
/* _mesa_function_pool[523]: DetachShader (will be remapped) */
142
/* _mesa_function_pool[542]: Uniform1i (will be remapped) */
146
/* _mesa_function_pool[558]: CopyTexSubImage2D (offset 326) */
148
"glCopyTexSubImage2D\0"
150
/* _mesa_function_pool[588]: SampleCoverage (will be remapped) */
154
/* _mesa_function_pool[609]: VertexAttrib4f (will be remapped) */
158
/* _mesa_function_pool[633]: DrawElements (offset 311) */
162
/* _mesa_function_pool[654]: GetShaderiv (will be remapped) */
166
/* _mesa_function_pool[673]: BindFramebuffer (will be remapped) */
168
"glBindFramebuffer\0"
170
/* _mesa_function_pool[695]: Uniform4iv (will be remapped) */
174
/* _mesa_function_pool[713]: ReleaseShaderCompiler (will be remapped) */
176
"glReleaseShaderCompiler\0"
178
/* _mesa_function_pool[739]: BlendEquation (offset 337) */
182
/* _mesa_function_pool[758]: StencilFuncSeparate (will be remapped) */
184
"glStencilFuncSeparate\0"
186
/* _mesa_function_pool[786]: ShaderSource (will be remapped) */
190
/* _mesa_function_pool[807]: Uniform2iv (will be remapped) */
194
/* _mesa_function_pool[825]: BindRenderbuffer (will be remapped) */
196
"glBindRenderbuffer\0"
198
/* _mesa_function_pool[848]: UseProgram (will be remapped) */
202
/* _mesa_function_pool[864]: CreateShader (will be remapped) */
206
/* _mesa_function_pool[882]: GetVertexAttribfv (will be remapped) */
208
"glGetVertexAttribfv\0"
210
/* _mesa_function_pool[907]: DeleteFramebuffers (will be remapped) */
212
"glDeleteFramebuffers\0"
214
/* _mesa_function_pool[932]: BufferData (will be remapped) */
218
/* _mesa_function_pool[951]: RenderbufferStorage (will be remapped) */
220
"glRenderbufferStorage\0"
222
/* _mesa_function_pool[979]: BindTexture (offset 307) */
226
/* _mesa_function_pool[997]: FramebufferRenderbuffer (will be remapped) */
228
"glFramebufferRenderbuffer\0"
230
/* _mesa_function_pool[1029]: ClearColor (offset 206) */
234
/* _mesa_function_pool[1048]: TexSubImage2D (offset 333) */
238
/* _mesa_function_pool[1075]: Uniform3i (will be remapped) */
242
/* _mesa_function_pool[1093]: Enable (offset 215) */
246
/* _mesa_function_pool[1105]: BlendColor (offset 336) */
250
/* _mesa_function_pool[1124]: UniformMatrix3fv (will be remapped) */
252
"glUniformMatrix3fv\0"
254
/* _mesa_function_pool[1149]: GetVertexAttribiv (will be remapped) */
256
"glGetVertexAttribiv\0"
258
/* _mesa_function_pool[1174]: ShaderBinary (will be remapped) */
262
/* _mesa_function_pool[1196]: Uniform3f (will be remapped) */
266
/* _mesa_function_pool[1214]: IsBuffer (will be remapped) */
270
/* _mesa_function_pool[1228]: GetUniformLocation (will be remapped) */
272
"glGetUniformLocation\0"
274
/* _mesa_function_pool[1253]: PixelStorei (offset 250) */
278
/* _mesa_function_pool[1271]: Viewport (offset 305) */
282
/* _mesa_function_pool[1288]: BlendFuncSeparate (will be remapped) */
284
"glBlendFuncSeparate\0"
286
/* _mesa_function_pool[1314]: TexSubImage3DOES (offset 372) */
288
"glTexSubImage3DOES\0"
290
/* _mesa_function_pool[1346]: GetError (offset 261) */
294
/* _mesa_function_pool[1359]: DrawArrays (offset 310) */
298
/* _mesa_function_pool[1377]: VertexAttrib3f (will be remapped) */
302
/* _mesa_function_pool[1400]: DeleteRenderbuffers (will be remapped) */
304
"glDeleteRenderbuffers\0"
306
/* _mesa_function_pool[1426]: CompressedTexSubImage2D (will be remapped) */
308
"glCompressedTexSubImage2D\0"
310
/* _mesa_function_pool[1463]: CopyTexSubImage3DOES (offset 373) */
312
"glCopyTexSubImage3DOES\0"
314
/* _mesa_function_pool[1497]: StencilMask (offset 209) */
318
/* _mesa_function_pool[1514]: EGLImageTargetTexture2DOES (will be remapped) */
320
"glEGLImageTargetTexture2DOES\0"
322
/* _mesa_function_pool[1547]: MultiDrawElementsEXT (will be remapped) */
324
"glMultiDrawElementsEXT\0"
326
/* _mesa_function_pool[1577]: StencilMaskSeparate (will be remapped) */
328
"glStencilMaskSeparate\0"
330
/* _mesa_function_pool[1603]: CheckFramebufferStatus (will be remapped) */
332
"glCheckFramebufferStatus\0"
334
/* _mesa_function_pool[1631]: DepthMask (offset 211) */
338
/* _mesa_function_pool[1646]: IsShader (will be remapped) */
342
/* _mesa_function_pool[1660]: StencilOp (offset 244) */
346
/* _mesa_function_pool[1677]: GetShaderInfoLog (will be remapped) */
348
"glGetShaderInfoLog\0"
350
/* _mesa_function_pool[1702]: EGLImageTargetRenderbufferStorageOES (will be remapped) */
352
"glEGLImageTargetRenderbufferStorageOES\0"
354
/* _mesa_function_pool[1745]: BindBuffer (will be remapped) */
358
/* _mesa_function_pool[1762]: Uniform1iv (will be remapped) */
362
/* _mesa_function_pool[1780]: GenFramebuffers (will be remapped) */
364
"glGenFramebuffers\0"
366
/* _mesa_function_pool[1802]: ClearDepthf (will be remapped) */
370
/* _mesa_function_pool[1819]: FramebufferTexture2D (will be remapped) */
372
"glFramebufferTexture2D\0"
374
/* _mesa_function_pool[1849]: IsFramebuffer (will be remapped) */
378
/* _mesa_function_pool[1868]: StencilFunc (offset 243) */
382
/* _mesa_function_pool[1887]: CullFace (offset 152) */
386
/* _mesa_function_pool[1901]: CompressedTexImage3DOES (will be remapped) */
388
"glCompressedTexImage3DOES\0"
390
/* _mesa_function_pool[1938]: BlendEquationSeparate (will be remapped) */
392
"glBlendEquationSeparate\0"
394
/* _mesa_function_pool[1966]: Uniform4fv (will be remapped) */
398
/* _mesa_function_pool[1984]: ActiveTexture (offset 374) */
402
/* _mesa_function_pool[2003]: IsProgram (will be remapped) */
406
/* _mesa_function_pool[2018]: VertexAttrib1f (will be remapped) */
410
/* _mesa_function_pool[2039]: Hint (offset 158) */
414
/* _mesa_function_pool[2050]: GenTextures (offset 328) */
418
/* _mesa_function_pool[2068]: TexParameterfv (offset 179) */
422
/* _mesa_function_pool[2090]: BindAttribLocation (will be remapped) */
424
"glBindAttribLocation\0"
426
/* _mesa_function_pool[2116]: GetProgramBinaryOES (will be remapped) */
428
"glGetProgramBinaryOES\0"
430
/* _mesa_function_pool[2145]: VertexAttribPointer (will be remapped) */
432
"glVertexAttribPointer\0"
434
/* _mesa_function_pool[2175]: GetAttribLocation (will be remapped) */
436
"glGetAttribLocation\0"
438
/* _mesa_function_pool[2199]: ReadPixels (offset 256) */
442
/* _mesa_function_pool[2221]: GetFloatv (offset 262) */
446
/* _mesa_function_pool[2237]: BlendFunc (offset 241) */
450
/* _mesa_function_pool[2253]: Uniform4i (will be remapped) */
454
/* _mesa_function_pool[2272]: FramebufferTexture3DOES (will be remapped) */
456
"glFramebufferTexture3DOES\0"
458
/* _mesa_function_pool[2306]: Uniform4f (will be remapped) */
462
/* _mesa_function_pool[2325]: GetShaderPrecisionFormat (will be remapped) */
464
"glGetShaderPrecisionFormat\0"
466
/* _mesa_function_pool[2358]: IsRenderbuffer (will be remapped) */
470
/* _mesa_function_pool[2378]: Flush (offset 217) */
474
/* _mesa_function_pool[2388]: UnmapBufferOES (will be remapped) */
478
/* _mesa_function_pool[2408]: GetIntegerv (offset 263) */
482
/* _mesa_function_pool[2426]: GetUniformfv (will be remapped) */
486
/* _mesa_function_pool[2446]: Disable (offset 214) */
490
/* _mesa_function_pool[2459]: GetShaderSource (will be remapped) */
492
"glGetShaderSource\0"
494
/* _mesa_function_pool[2483]: DrawBuffersNV (will be remapped) */
498
/* _mesa_function_pool[2503]: Uniform3iv (will be remapped) */
502
/* _mesa_function_pool[2521]: GetBooleanv (offset 258) */
506
/* _mesa_function_pool[2539]: TexParameteriv (offset 181) */
510
/* _mesa_function_pool[2561]: DisableVertexAttribArray (will be remapped) */
512
"glDisableVertexAttribArray\0"
514
/* _mesa_function_pool[2591]: GetActiveUniform (will be remapped) */
516
"glGetActiveUniform\0"
518
/* _mesa_function_pool[2619]: DeleteBuffers (will be remapped) */
522
/* _mesa_function_pool[2639]: IsTexture (offset 330) */
526
/* _mesa_function_pool[2654]: TexParameterf (offset 178) */
530
/* _mesa_function_pool[2675]: TexParameteri (offset 180) */
534
/* _mesa_function_pool[2696]: BufferSubData (will be remapped) */
538
/* _mesa_function_pool[2718]: VertexAttrib2fv (will be remapped) */
540
"glVertexAttrib2fv\0"
542
/* _mesa_function_pool[2740]: GetString (offset 275) */
546
/* _mesa_function_pool[2755]: TexImage2D (offset 183) */
550
/* _mesa_function_pool[2779]: UniformMatrix2fv (will be remapped) */
552
"glUniformMatrix2fv\0"
554
/* _mesa_function_pool[2804]: GetTexParameterfv (offset 282) */
556
"glGetTexParameterfv\0"
558
/* _mesa_function_pool[2829]: VertexAttrib3fv (will be remapped) */
560
"glVertexAttrib3fv\0"
562
/* _mesa_function_pool[2851]: GetUniformiv (will be remapped) */
566
/* _mesa_function_pool[2871]: FrontFace (offset 157) */
570
/* _mesa_function_pool[2886]: DeleteTextures (offset 327) */
574
/* _mesa_function_pool[2907]: CreateProgram (will be remapped) */
578
/* _mesa_function_pool[2925]: DepthRangef (will be remapped) */
582
/* _mesa_function_pool[2943]: ColorMask (offset 210) */
586
/* _mesa_function_pool[2961]: Uniform3fv (will be remapped) */
590
/* _mesa_function_pool[2979]: Clear (offset 203) */
594
/* _mesa_function_pool[2990]: ValidateProgram (will be remapped) */
596
"glValidateProgram\0"
598
/* _mesa_function_pool[3011]: Scissor (offset 176) */
602
/* _mesa_function_pool[3027]: GetRenderbufferParameteriv (will be remapped) */
604
"glGetRenderbufferParameteriv\0"
606
/* _mesa_function_pool[3061]: PolygonOffset (offset 319) */
610
/* _mesa_function_pool[3081]: GetFramebufferAttachmentParameteriv (will be remapped) */
612
"glGetFramebufferAttachmentParameteriv\0"
614
/* _mesa_function_pool[3125]: GetBufferParameteriv (will be remapped) */
616
"glGetBufferParameteriv\0"
618
/* _mesa_function_pool[3153]: GenRenderbuffers (will be remapped) */
620
"glGenRenderbuffers\0"
622
/* _mesa_function_pool[3176]: UniformMatrix4fv (will be remapped) */
624
"glUniformMatrix4fv\0"
626
/* _mesa_function_pool[3201]: GetActiveAttrib (will be remapped) */
628
"glGetActiveAttrib\0"
630
/* _mesa_function_pool[3228]: GenerateMipmap (will be remapped) */
634
/* _mesa_function_pool[3248]: DepthFunc (offset 245) */
638
/* _mesa_function_pool[3263]: ProgramBinaryOES (will be remapped) */
640
"glProgramBinaryOES\0"
642
/* _mesa_function_pool[3288]: VertexAttrib1fv (will be remapped) */
644
"glVertexAttrib1fv\0"
646
/* _mesa_function_pool[3310]: CompressedTexImage2D (will be remapped) */
648
"glCompressedTexImage2D\0"
650
/* _mesa_function_pool[3343]: CopyTexImage2D (offset 324) */
654
/* _mesa_function_pool[3370]: AttachShader (will be remapped) */
658
/* _mesa_function_pool[3389]: MultiDrawArraysEXT (will be remapped) */
660
"glMultiDrawArraysEXT\0"
662
/* _mesa_function_pool[3416]: StencilOpSeparate (will be remapped) */
664
"glStencilOpSeparate\0"
666
/* _mesa_function_pool[3442]: GetVertexAttribPointerv (will be remapped) */
668
"glGetVertexAttribPointerv\0"
672
/* these functions need to be remapped */
673
static const struct gl_function_pool_remap MESA_remap_table_functions[] = {
674
{ 3370, AttachShader_remap_index },
675
{ 2907, CreateProgram_remap_index },
676
{ 864, CreateShader_remap_index },
677
{ 446, DeleteProgram_remap_index },
678
{ 44, DeleteShader_remap_index },
679
{ 523, DetachShader_remap_index },
680
{ 337, GetAttachedShaders_remap_index },
681
{ 264, GetProgramInfoLog_remap_index },
682
{ 120, GetProgramiv_remap_index },
683
{ 1677, GetShaderInfoLog_remap_index },
684
{ 654, GetShaderiv_remap_index },
685
{ 2003, IsProgram_remap_index },
686
{ 1646, IsShader_remap_index },
687
{ 758, StencilFuncSeparate_remap_index },
688
{ 1577, StencilMaskSeparate_remap_index },
689
{ 3416, StencilOpSeparate_remap_index },
690
{ 588, SampleCoverage_remap_index },
691
{ 3310, CompressedTexImage2D_remap_index },
692
{ 1901, CompressedTexImage3DOES_remap_index },
693
{ 1426, CompressedTexSubImage2D_remap_index },
694
{ 465, CompressedTexSubImage3DOES_remap_index },
695
{ 2561, DisableVertexAttribArray_remap_index },
696
{ 308, EnableVertexAttribArray_remap_index },
697
{ 882, GetVertexAttribfv_remap_index },
698
{ 1149, GetVertexAttribiv_remap_index },
699
{ 2018, VertexAttrib1f_remap_index },
700
{ 3288, VertexAttrib1fv_remap_index },
701
{ 62, VertexAttrib2f_remap_index },
702
{ 2718, VertexAttrib2fv_remap_index },
703
{ 1377, VertexAttrib3f_remap_index },
704
{ 2829, VertexAttrib3fv_remap_index },
705
{ 609, VertexAttrib4f_remap_index },
706
{ 392, VertexAttrib4fv_remap_index },
707
{ 2145, VertexAttribPointer_remap_index },
708
{ 1745, BindBuffer_remap_index },
709
{ 932, BufferData_remap_index },
710
{ 2696, BufferSubData_remap_index },
711
{ 2619, DeleteBuffers_remap_index },
712
{ 247, GenBuffers_remap_index },
713
{ 3125, GetBufferParameteriv_remap_index },
714
{ 155, GetBufferPointervOES_remap_index },
715
{ 1214, IsBuffer_remap_index },
716
{ 25, MapBufferOES_remap_index },
717
{ 2388, UnmapBufferOES_remap_index },
718
{ 101, CompileShader_remap_index },
719
{ 2591, GetActiveUniform_remap_index },
720
{ 2459, GetShaderSource_remap_index },
721
{ 1228, GetUniformLocation_remap_index },
722
{ 2426, GetUniformfv_remap_index },
723
{ 2851, GetUniformiv_remap_index },
724
{ 429, LinkProgram_remap_index },
725
{ 786, ShaderSource_remap_index },
726
{ 507, Uniform1f_remap_index },
727
{ 229, Uniform1fv_remap_index },
728
{ 542, Uniform1i_remap_index },
729
{ 1762, Uniform1iv_remap_index },
730
{ 84, Uniform2f_remap_index },
731
{ 290, Uniform2fv_remap_index },
732
{ 183, Uniform2i_remap_index },
733
{ 807, Uniform2iv_remap_index },
734
{ 1196, Uniform3f_remap_index },
735
{ 2961, Uniform3fv_remap_index },
736
{ 1075, Uniform3i_remap_index },
737
{ 2503, Uniform3iv_remap_index },
738
{ 2306, Uniform4f_remap_index },
739
{ 1966, Uniform4fv_remap_index },
740
{ 2253, Uniform4i_remap_index },
741
{ 695, Uniform4iv_remap_index },
742
{ 2779, UniformMatrix2fv_remap_index },
743
{ 1124, UniformMatrix3fv_remap_index },
744
{ 3176, UniformMatrix4fv_remap_index },
745
{ 848, UseProgram_remap_index },
746
{ 2990, ValidateProgram_remap_index },
747
{ 2090, BindAttribLocation_remap_index },
748
{ 3201, GetActiveAttrib_remap_index },
749
{ 2175, GetAttribLocation_remap_index },
750
{ 2483, DrawBuffersNV_remap_index },
751
{ 1802, ClearDepthf_remap_index },
752
{ 2925, DepthRangef_remap_index },
753
{ 2325, GetShaderPrecisionFormat_remap_index },
754
{ 713, ReleaseShaderCompiler_remap_index },
755
{ 1174, ShaderBinary_remap_index },
756
{ 2116, GetProgramBinaryOES_remap_index },
757
{ 3263, ProgramBinaryOES_remap_index },
758
{ 3389, MultiDrawArraysEXT_remap_index },
759
{ 1547, MultiDrawElementsEXT_remap_index },
760
{ 1288, BlendFuncSeparate_remap_index },
761
{ 3442, GetVertexAttribPointerv_remap_index },
762
{ 1938, BlendEquationSeparate_remap_index },
763
{ 673, BindFramebuffer_remap_index },
764
{ 825, BindRenderbuffer_remap_index },
765
{ 1603, CheckFramebufferStatus_remap_index },
766
{ 907, DeleteFramebuffers_remap_index },
767
{ 1400, DeleteRenderbuffers_remap_index },
768
{ 997, FramebufferRenderbuffer_remap_index },
769
{ 1819, FramebufferTexture2D_remap_index },
770
{ 2272, FramebufferTexture3DOES_remap_index },
771
{ 1780, GenFramebuffers_remap_index },
772
{ 3153, GenRenderbuffers_remap_index },
773
{ 3228, GenerateMipmap_remap_index },
774
{ 3081, GetFramebufferAttachmentParameteriv_remap_index },
775
{ 3027, GetRenderbufferParameteriv_remap_index },
776
{ 1849, IsFramebuffer_remap_index },
777
{ 2358, IsRenderbuffer_remap_index },
778
{ 951, RenderbufferStorage_remap_index },
779
{ 1702, EGLImageTargetRenderbufferStorageOES_remap_index },
780
{ 1514, EGLImageTargetTexture2DOES_remap_index },
784
/* these functions are in the ABI, but have alternative names */
785
static const struct gl_function_remap MESA_alt_functions[] = {