1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
|
/**************************************************************************
*
* Copyright 2015 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
**************************************************************************/
#include "trace_parser.hpp"
#include "gtest/gtest.h"
#include "trace_lookup.hpp"
using namespace trace;
/**
* Shortcut for SwapBuffers, which terminate and swap bound render buffer.
*/
#define CALL_FLAG_SWAPBUFFERS (CALL_FLAG_END_FRAME | CALL_FLAG_SWAP_RENDERTARGET)
/**
* Call flags lookup table.
*/
static const Entry<CallFlags>
entries[] = {
{ "CGLFlushDrawable", CALL_FLAG_END_FRAME },
{ "CGLGetCurrentContext", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "D3DPERF_BeginEvent", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_PUSH },
{ "D3DPERF_EndEvent", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_POP },
{ "D3DPERF_SetMarker", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER },
{ "ID3D10Device1::CheckMultisampleQualityLevels", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "ID3D10Device1::Draw", CALL_FLAG_RENDER },
{ "ID3D10Device1::DrawAuto", CALL_FLAG_RENDER },
{ "ID3D10Device1::DrawIndexed", CALL_FLAG_RENDER },
{ "ID3D10Device1::DrawIndexedInstanced", CALL_FLAG_RENDER },
{ "ID3D10Device1::DrawInstanced", CALL_FLAG_RENDER },
{ "ID3D10Device1::OMSetRenderTargets", CALL_FLAG_SWAP_RENDERTARGET },
{ "ID3D10Device::CheckMultisampleQualityLevels", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "ID3D10Device::Draw", CALL_FLAG_RENDER },
{ "ID3D10Device::DrawAuto", CALL_FLAG_RENDER },
{ "ID3D10Device::DrawIndexed", CALL_FLAG_RENDER },
{ "ID3D10Device::DrawIndexedInstanced", CALL_FLAG_RENDER },
{ "ID3D10Device::DrawInstanced", CALL_FLAG_RENDER },
{ "ID3D10Device::OMSetRenderTargets", CALL_FLAG_SWAP_RENDERTARGET },
{ "ID3D11Device::CheckMultisampleQualityLevels", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "ID3D11DeviceContext1::Draw", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::DrawAuto", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::DrawIndexed", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::DrawIndexedInstanced", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::DrawIndexedInstancedIndirect", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::DrawInstanced", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::DrawInstancedIndirect", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::ExecuteCommandList", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext1::OMSetRenderTargets", CALL_FLAG_SWAP_RENDERTARGET },
{ "ID3D11DeviceContext1::OMSetRenderTargetsAndUnorderedAccessViews", CALL_FLAG_SWAP_RENDERTARGET },
{ "ID3D11DeviceContext::Draw", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::DrawAuto", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::DrawIndexed", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::DrawIndexedInstanced", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::DrawIndexedInstancedIndirect", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::DrawInstanced", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::DrawInstancedIndirect", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::ExecuteCommandList", CALL_FLAG_RENDER },
{ "ID3D11DeviceContext::OMSetRenderTargets", CALL_FLAG_SWAP_RENDERTARGET },
{ "ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews", CALL_FLAG_SWAP_RENDERTARGET },
{ "ID3DUserDefinedAnnotation::BeginEvent", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_PUSH },
{ "ID3DUserDefinedAnnotation::EndEvent", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_POP },
{ "ID3DUserDefinedAnnotation::SetMarker", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER },
{ "IDXGIDecodeSwapChain::PresentBuffer", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDXGISwapChain1::Present", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDXGISwapChain1::Present1", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDXGISwapChain2::Present", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDXGISwapChain2::Present1", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDXGISwapChain::Present", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDXGISwapChainDWM::Present", CALL_FLAG_END_FRAME /* CALL_FLAG_SWAPBUFFERS */ },
{ "IDirect3D8::CheckDeviceFormat", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D8::EnumAdapterModes", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D8::GetAdapterModeCount", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D8::GetDeviceCaps", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9::CheckDeviceFormat", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9::EnumAdapterModes", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9::GetAdapterModeCount", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9::GetDeviceCaps", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9Ex::CheckDeviceFormat", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9Ex::EnumAdapterModes", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9Ex::GetAdapterModeCount", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3D9Ex::GetDeviceCaps", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3DDevice2::DrawIndexedPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice2::DrawPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice3::DrawIndexedPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice3::DrawIndexedPrimitiveStrided", CALL_FLAG_RENDER },
{ "IDirect3DDevice3::DrawIndexedPrimitiveVB", CALL_FLAG_RENDER },
{ "IDirect3DDevice3::DrawPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice3::DrawPrimitiveStrided", CALL_FLAG_RENDER },
{ "IDirect3DDevice3::DrawPrimitiveVB", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::Clear", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::DrawIndexedPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::DrawIndexedPrimitiveStrided", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::DrawIndexedPrimitiveVB", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::DrawPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::DrawPrimitiveStrided", CALL_FLAG_RENDER },
{ "IDirect3DDevice7::DrawPrimitiveVB", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::Clear", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::DrawIndexedPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::DrawIndexedPrimitiveUP", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::DrawPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::DrawPrimitiveUP", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::DrawRectPatch", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::DrawTriPatch", CALL_FLAG_RENDER },
{ "IDirect3DDevice8::GetDeviceCaps", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3DDevice8::Present", CALL_FLAG_SWAPBUFFERS },
{ "IDirect3DDevice8::SetRenderTarget", CALL_FLAG_SWAP_RENDERTARGET },
{ "IDirect3DDevice9::Clear", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::DrawIndexedPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::DrawIndexedPrimitiveUP", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::DrawPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::DrawPrimitiveUP", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::DrawRectPatch", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::DrawTriPatch", CALL_FLAG_RENDER },
{ "IDirect3DDevice9::GetDeviceCaps", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3DDevice9::GetRenderTargetData", CALL_FLAG_END_FRAME },
{ "IDirect3DDevice9::Present", CALL_FLAG_SWAPBUFFERS },
{ "IDirect3DDevice9::SetRenderTarget", CALL_FLAG_SWAP_RENDERTARGET },
{ "IDirect3DDevice9Ex::Clear", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::DrawIndexedPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::DrawIndexedPrimitiveUP", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::DrawPrimitive", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::DrawPrimitiveUP", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::DrawRectPatch", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::DrawTriPatch", CALL_FLAG_RENDER },
{ "IDirect3DDevice9Ex::GetDeviceCaps", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "IDirect3DDevice9Ex::GetRenderTargetData", CALL_FLAG_END_FRAME },
{ "IDirect3DDevice9Ex::Present", CALL_FLAG_SWAPBUFFERS },
{ "IDirect3DDevice9Ex::PresentEx", CALL_FLAG_SWAPBUFFERS },
{ "IDirect3DDevice9Ex::SetRenderTarget", CALL_FLAG_SWAP_RENDERTARGET },
{ "IDirect3DSwapChain9::Present", CALL_FLAG_SWAPBUFFERS },
{ "IDirect3DSwapChain9Ex::Present", CALL_FLAG_SWAPBUFFERS },
{ "IDirect3DViewport2::Clear", CALL_FLAG_RENDER },
{ "IDirect3DViewport3::Clear", CALL_FLAG_RENDER },
{ "IDirect3DViewport3::Clear2", CALL_FLAG_RENDER },
{ "IDirect3DViewport::Clear", CALL_FLAG_RENDER },
{ "eglGetConfigAttrib", CALL_FLAG_VERBOSE },
{ "eglGetProcAddress", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "eglQueryString", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "eglSwapBuffers", CALL_FLAG_SWAPBUFFERS },
{ "glAreProgramsResidentNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glAreTexturesResident", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glAreTexturesResidentEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glBindFramebuffer", CALL_FLAG_SWAP_RENDERTARGET },
{ "glBindFramebufferEXT", CALL_FLAG_SWAP_RENDERTARGET },
{ "glBindFramebufferOES", CALL_FLAG_SWAP_RENDERTARGET },
{ "glBlitFramebuffer", CALL_FLAG_RENDER },
{ "glBlitFramebufferANGLE", CALL_FLAG_RENDER },
{ "glBlitFramebufferEXT", CALL_FLAG_RENDER },
{ "glBlitFramebufferNV", CALL_FLAG_RENDER },
{ "glBufferRegionEnabled", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glCallList", CALL_FLAG_RENDER },
{ "glCallLists", CALL_FLAG_RENDER },
{ "glClear", CALL_FLAG_RENDER },
{ "glDebugMessageControl", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glDebugMessageControlARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glDebugMessageEnableAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glDebugMessageInsert", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_MARKER },
{ "glDebugMessageInsertAMD", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_MARKER },
{ "glDebugMessageInsertARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_MARKER },
{ "glDebugMessageInsertKHR", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_MARKER },
{ "glDrawArrays", CALL_FLAG_RENDER },
{ "glDrawArraysEXT", CALL_FLAG_RENDER },
{ "glDrawArraysIndirect", CALL_FLAG_RENDER },
{ "glDrawArraysInstanced", CALL_FLAG_RENDER },
{ "glDrawArraysInstancedANGLE", CALL_FLAG_RENDER },
{ "glDrawArraysInstancedARB", CALL_FLAG_RENDER },
{ "glDrawArraysInstancedBaseInstance", CALL_FLAG_RENDER },
{ "glDrawArraysInstancedEXT", CALL_FLAG_RENDER },
{ "glDrawElements", CALL_FLAG_RENDER },
{ "glDrawElementsBaseVertex", CALL_FLAG_RENDER },
{ "glDrawElementsIndirect", CALL_FLAG_RENDER },
{ "glDrawElementsInstanced", CALL_FLAG_RENDER },
{ "glDrawElementsInstancedANGLE", CALL_FLAG_RENDER },
{ "glDrawElementsInstancedARB", CALL_FLAG_RENDER },
{ "glDrawElementsInstancedBaseInstance", CALL_FLAG_RENDER },
{ "glDrawElementsInstancedBaseVertex", CALL_FLAG_RENDER },
{ "glDrawElementsInstancedBaseVertexBaseInstance", CALL_FLAG_RENDER },
{ "glDrawElementsInstancedEXT", CALL_FLAG_RENDER },
{ "glDrawMeshArraysSUN", CALL_FLAG_RENDER },
{ "glDrawPixels", CALL_FLAG_RENDER },
{ "glDrawRangeElementArrayAPPLE", 0 },
{ "glDrawRangeElementArrayATI", 0 },
{ "glDrawRangeElements", CALL_FLAG_RENDER },
{ "glDrawRangeElementsBaseVertex", CALL_FLAG_RENDER },
{ "glDrawRangeElementsEXT", CALL_FLAG_RENDER },
{ "glDrawTransformFeedback", CALL_FLAG_RENDER },
{ "glDrawTransformFeedbackInstanced", CALL_FLAG_RENDER },
{ "glDrawTransformFeedbackNV", CALL_FLAG_RENDER },
{ "glDrawTransformFeedbackStream", CALL_FLAG_RENDER },
{ "glDrawTransformFeedbackStreamInstanced", CALL_FLAG_RENDER },
{ "glEnd", CALL_FLAG_RENDER },
{ "glEvalMesh1", CALL_FLAG_RENDER },
{ "glEvalMesh2", CALL_FLAG_RENDER },
{ "glFrameTerminatorGREMEDY", CALL_FLAG_END_FRAME },
{ "glGetActiveAtomicCounterBufferiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveAttrib", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveAttribARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveSubroutineName", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveSubroutineUniformName", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveSubroutineUniformiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveUniform", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveUniformARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveUniformBlockName", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveUniformBlockiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveUniformName", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveUniformsiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetActiveVaryingNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetArrayObjectfvATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetArrayObjectivATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetAttachedObjectsARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetAttachedShaders", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBooleanIndexedvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBooleani_v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBooleanv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferParameteri64v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferParameterivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferParameterui64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferPointerv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferPointervARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferSubData", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetBufferSubDataARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetClipPlane", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTable", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableParameterfvSGI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableParameterivSGI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetColorTableSGI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetCombinerInputParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetCombinerInputParameterivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetCombinerOutputParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetCombinerOutputParameterivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetCombinerStageParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetConvolutionFilterEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetConvolutionParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetConvolutionParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetConvolutionParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetConvolutionParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetDetailTexFuncSGIS", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetDoubleIndexedvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetDoublei_v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetDoublev", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetError", CALL_FLAG_NO_SIDE_EFFECTS }, // verbose will be set later for GL_NO_ERROR
{ "glGetFenceivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFinalCombinerInputParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFinalCombinerInputParameterivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFloatIndexedvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFloati_v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFloatv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFogFuncSGIS", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFragDataIndex", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFragmentLightfvSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFragmentLightivSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFragmentMaterialfvSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFragmentMaterialivSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFramebufferAttachmentParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFramebufferAttachmentParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFramebufferParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetFramebufferParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetGraphicsResetStatusARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetHandleARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetHistogramEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetHistogramParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetHistogramParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetHistogramParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetHistogramParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetImageTransformParameterfvHP", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetImageTransformParameterivHP", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInfoLogARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInstrumentsSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInteger64i_v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInteger64v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetIntegerIndexedvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetIntegeri_v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetIntegerui64i_vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetIntegerui64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetIntegerv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInternalformati64v", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInternalformativ", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInvariantBooleanvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInvariantFloatvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetInvariantIntegervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetLightfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetLightiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetListParameterfvSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetListParameterivSGIX", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetLocalConstantBooleanvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetLocalConstantFloatvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetLocalConstantIntegervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapAttribParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapAttribParameterivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapControlPointsNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapParameterivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapdv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMapiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMaterialfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMaterialiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMinmaxEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMinmaxParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMinmaxParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMinmaxParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMinmaxParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexEnvfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexEnvivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexGendvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexGenfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexGenivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexLevelParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexLevelParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexParameterIivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexParameterIuivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultiTexParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultisamplefv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetMultisamplefvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedBufferParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedBufferParameterui64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedBufferPointervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedBufferSubDataEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedFramebufferAttachmentParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedFramebufferParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedProgramLocalParameterIivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedProgramLocalParameterIuivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedProgramLocalParameterdvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedProgramLocalParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedProgramStringEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedProgramivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedRenderbufferParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedStringARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetNamedStringivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectBufferfvATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectBufferivATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectLabel", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectParameterfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectParameterivAPPLE", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectParameterivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetObjectPtrLabel", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetOcclusionQueryivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetOcclusionQueryuivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPerfMonitorCounterDataAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPerfMonitorCounterInfoAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPerfMonitorCounterStringAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPerfMonitorCountersAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPerfMonitorGroupStringAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPerfMonitorGroupsAMD", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPixelTexGenParameterfvSGIS", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPixelTexGenParameterivSGIS", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPointerIndexedvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPointerv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetPointervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramBinary", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramEnvParameterIivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramEnvParameterIuivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramEnvParameterdvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramEnvParameterfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramInfoLog", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramInterfaceiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramLocalParameterIivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramLocalParameterIuivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramLocalParameterdvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramLocalParameterfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramNamedParameterdvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramNamedParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramParameterdvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramParameterfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramPipelineInfoLog", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramPipelineiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramResourceIndex", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramResourceLocation", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramResourceLocationIndex", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramResourceName", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramResourceiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramStageiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramStringARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramStringNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramSubroutineParameteruivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetProgramivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetQueryIndexediv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetQueryiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetQueryivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetRenderbufferParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetRenderbufferParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetSamplerParameterIiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetSamplerParameterIuiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetSamplerParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetSamplerParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetSeparableFilterEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetShaderInfoLog", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetShaderPrecisionFormat", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetShaderSource", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetShaderSourceARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetShaderiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetSharpenTexFuncSGIS", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetString", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glGetStringi", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glGetSynciv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexBumpParameterfvATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexBumpParameterivATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexEnvfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexEnviv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexFilterFuncSGIS", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexGendv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexGenfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexGeniv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexLevelParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexLevelParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameterIiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameterIivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameterIuiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameterIuivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameterPointervAPPLE", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameterfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTexParameteriv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTextureLevelParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTextureLevelParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTextureParameterIivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTextureParameterIuivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTextureParameterfvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTextureParameterivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTrackMatrixivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTransformFeedbackVarying", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTransformFeedbackVaryingEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetTransformFeedbackVaryingNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformIndices", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformSubroutineuiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformdv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformi64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformui64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformuiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetUniformuivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVariantArrayObjectfvATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVariantArrayObjectivATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVariantBooleanvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVariantFloatvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVariantIntegervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVariantPointervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexArrayIntegeri_vEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexArrayIntegervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexArrayPointeri_vEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexArrayPointervEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribArrayObjectfvATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribArrayObjectivATI", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribIiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribIivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribIuiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribIuivEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribLdv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribLdvEXT", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribLi64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribLui64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribPointerv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribPointervARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribPointervNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribdv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribdvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribdvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribfv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribiv", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVertexAttribivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoCaptureStreamdvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoCaptureStreamfvNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoCaptureStreamivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoCaptureivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoi64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideoui64vNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetVideouivNV", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnMapdvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnMapfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnMapivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnUniformdvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnUniformfvARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnUniformivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glGetnUniformuivARB", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glInsertEventMarkerEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_MARKER },
{ "glIsAsyncMarkerSGIX", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsBuffer", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsBufferARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsBufferResidentNV", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsEnabled", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsEnabledIndexedEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsEnabledi", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsFenceAPPLE", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsFenceNV", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsFramebuffer", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsFramebufferEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsList", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsNameAMD", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsNamedBufferResidentNV", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsNamedStringARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsObjectBufferATI", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsOcclusionQueryNV", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsProgram", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsProgramARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsProgramNV", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsProgramPipeline", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsQuery", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsQueryARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsRenderbuffer", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsRenderbufferEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsSampler", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsShader", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsSync", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsTexture", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsTextureEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsTransformFeedback", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsTransformFeedbackNV", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsVariantEnabledEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsVertexArray", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsVertexArrayAPPLE", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glIsVertexAttribEnabledAPPLE", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glMultiDrawArrays", CALL_FLAG_RENDER },
{ "glMultiDrawArraysEXT", CALL_FLAG_RENDER },
{ "glMultiDrawArraysIndirect", CALL_FLAG_RENDER },
{ "glMultiDrawArraysIndirectAMD", CALL_FLAG_RENDER },
{ "glMultiDrawArraysIndirectBindlessNV", CALL_FLAG_RENDER },
{ "glMultiDrawArraysIndirectCountARB", CALL_FLAG_RENDER },
{ "glMultiDrawElementArrayAPPLE", 0 },
{ "glMultiDrawElements", CALL_FLAG_RENDER },
{ "glMultiDrawElementsBaseVertex", CALL_FLAG_RENDER },
{ "glMultiDrawElementsEXT", CALL_FLAG_RENDER },
{ "glMultiDrawElementsIndirect", CALL_FLAG_RENDER },
{ "glMultiDrawElementsIndirectAMD", CALL_FLAG_RENDER },
{ "glMultiDrawElementsIndirectBindlessNV", CALL_FLAG_RENDER },
{ "glMultiDrawElementsIndirectCountARB", CALL_FLAG_RENDER },
{ "glMultiDrawRangeElementArrayAPPLE", 0 },
{ "glMultiModeDrawArraysIBM", CALL_FLAG_RENDER },
{ "glMultiModeDrawElementsIBM", CALL_FLAG_RENDER },
{ "glObjectLabel", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glObjectLabelKHR", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glObjectPtrLabel", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glObjectPtrLabelKHR", CALL_FLAG_NO_SIDE_EFFECTS },
{ "glPopDebugGroup", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_POP},
{ "glPopDebugGroupKHR", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_POP},
{ "glPopGroupMarkerEXT", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_POP},
{ "glPushDebugGroup", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_PUSH },
{ "glPushDebugGroupKHR", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_PUSH },
{ "glPushGroupMarkerEXT", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER | CALL_FLAG_MARKER_PUSH },
{ "glRectd", CALL_FLAG_RENDER },
{ "glRectdv", CALL_FLAG_RENDER },
{ "glRectf", CALL_FLAG_RENDER },
{ "glRectfv", CALL_FLAG_RENDER },
{ "glRecti", CALL_FLAG_RENDER },
{ "glRectiv", CALL_FLAG_RENDER },
{ "glRects", CALL_FLAG_RENDER },
{ "glRectsv", CALL_FLAG_RENDER },
{ "glStringMarkerGREMEDY", /* CALL_FLAG_NO_SIDE_EFFECTS | */ CALL_FLAG_MARKER },
{ "glXGetClientString", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetConfig", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetCurrentContext", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetCurrentDisplay", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetCurrentDisplayEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetCurrentDrawable", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetCurrentReadDrawable", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetCurrentReadDrawableSGI", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetFBConfigAttrib", CALL_FLAG_VERBOSE },
{ "glXGetFBConfigAttribSGIX", CALL_FLAG_VERBOSE },
{ "glXGetProcAddress", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXGetProcAddressARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXIsDirect", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXQueryExtension", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXQueryExtensionsString", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXQueryVersion", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "glXSwapBuffers", CALL_FLAG_SWAPBUFFERS },
{ "wglDescribePixelFormat", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetCurrentContext", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetCurrentDC", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetDefaultProcAddress", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetExtensionsStringARB", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetExtensionsStringEXT", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetPixelFormat", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglGetPixelFormatAttribivARB", CALL_FLAG_VERBOSE },
{ "wglGetPixelFormatAttribivEXT", CALL_FLAG_VERBOSE },
{ "wglGetProcAddress", CALL_FLAG_NO_SIDE_EFFECTS | CALL_FLAG_VERBOSE },
{ "wglSwapBuffers", CALL_FLAG_SWAPBUFFERS },
{ "wglSwapLayerBuffers", CALL_FLAG_SWAPBUFFERS },
{ "wglSwapMultipleBuffers", CALL_FLAG_SWAPBUFFERS },
};
TEST(common_parser, lookupCallFlags)
{
typedef const Entry<CallFlags> * ConstIterator;
ConstIterator first = &entries[0];
ConstIterator last = &entries[sizeof entries / sizeof entries[0]];
for (ConstIterator it = first; it != last; ++it) {
CallFlags flags = Parser::lookupCallFlags(it->name);
EXPECT_EQ(it->value, flags) << "flags differ for " << it->name;
}
}
int
main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
|