summaryrefslogtreecommitdiff
path: root/lib/mesa/src/egl/g_egldispatchstubs.c
blob: e33faf84c4a38185975cd3eb97c520d081b4f10a (plain)
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
#include "egldispatchstubs.h"
#include "g_egldispatchstubs.h"

static EGLBoolean EGLAPIENTRY dispatch_eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglBindWaylandDisplayWL)(EGLDisplay dpy, struct wl_display *display);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglBindWaylandDisplayWL _ptr_eglBindWaylandDisplayWL = (_pfn_eglBindWaylandDisplayWL) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglBindWaylandDisplayWL);
    if(_ptr_eglBindWaylandDisplayWL != NULL) {
        _ret = _ptr_eglBindWaylandDisplayWL(dpy, display);
    }
    return _ret;
}
static EGLint EGLAPIENTRY dispatch_eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout)
{
    typedef EGLint EGLAPIENTRY (* _pfn_eglClientWaitSyncKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
    EGLint _ret = 0;
    _pfn_eglClientWaitSyncKHR _ptr_eglClientWaitSyncKHR = (_pfn_eglClientWaitSyncKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglClientWaitSyncKHR);
    if(_ptr_eglClientWaitSyncKHR != NULL) {
        _ret = _ptr_eglClientWaitSyncKHR(dpy, sync, flags, timeout);
    }
    return _ret;
}
static EGLImageKHR EGLAPIENTRY dispatch_eglCreateDRMImageMESA(EGLDisplay dpy, const EGLint *attrib_list)
{
    typedef EGLImageKHR EGLAPIENTRY (* _pfn_eglCreateDRMImageMESA)(EGLDisplay dpy, const EGLint *attrib_list);
    EGLImageKHR _ret = 0;
    _pfn_eglCreateDRMImageMESA _ptr_eglCreateDRMImageMESA = (_pfn_eglCreateDRMImageMESA) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreateDRMImageMESA);
    if(_ptr_eglCreateDRMImageMESA != NULL) {
        _ret = _ptr_eglCreateDRMImageMESA(dpy, attrib_list);
    }
    return _ret;
}
static EGLImageKHR EGLAPIENTRY dispatch_eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
{
    typedef EGLImageKHR EGLAPIENTRY (* _pfn_eglCreateImageKHR)(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
    EGLImageKHR _ret = 0;
    _pfn_eglCreateImageKHR _ptr_eglCreateImageKHR = (_pfn_eglCreateImageKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreateImageKHR);
    if(_ptr_eglCreateImageKHR != NULL) {
        _ret = _ptr_eglCreateImageKHR(dpy, ctx, target, buffer, attrib_list);
    }
    return _ret;
}
static EGLSurface EGLAPIENTRY dispatch_eglCreatePlatformPixmapSurfaceEXT(EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list)
{
    typedef EGLSurface EGLAPIENTRY (* _pfn_eglCreatePlatformPixmapSurfaceEXT)(EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
    EGLSurface _ret = EGL_NO_SURFACE;
    _pfn_eglCreatePlatformPixmapSurfaceEXT _ptr_eglCreatePlatformPixmapSurfaceEXT = (_pfn_eglCreatePlatformPixmapSurfaceEXT) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreatePlatformPixmapSurfaceEXT);
    if(_ptr_eglCreatePlatformPixmapSurfaceEXT != NULL) {
        _ret = _ptr_eglCreatePlatformPixmapSurfaceEXT(dpy, config, native_pixmap, attrib_list);
    }
    return _ret;
}
static EGLSurface EGLAPIENTRY dispatch_eglCreatePlatformWindowSurfaceEXT(EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list)
{
    typedef EGLSurface EGLAPIENTRY (* _pfn_eglCreatePlatformWindowSurfaceEXT)(EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
    EGLSurface _ret = EGL_NO_SURFACE;
    _pfn_eglCreatePlatformWindowSurfaceEXT _ptr_eglCreatePlatformWindowSurfaceEXT = (_pfn_eglCreatePlatformWindowSurfaceEXT) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreatePlatformWindowSurfaceEXT);
    if(_ptr_eglCreatePlatformWindowSurfaceEXT != NULL) {
        _ret = _ptr_eglCreatePlatformWindowSurfaceEXT(dpy, config, native_window, attrib_list);
    }
    return _ret;
}
static EGLSyncKHR EGLAPIENTRY dispatch_eglCreateSync64KHR(EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list)
{
    typedef EGLSyncKHR EGLAPIENTRY (* _pfn_eglCreateSync64KHR)(EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
    EGLSyncKHR _ret = 0;
    _pfn_eglCreateSync64KHR _ptr_eglCreateSync64KHR = (_pfn_eglCreateSync64KHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreateSync64KHR);
    if(_ptr_eglCreateSync64KHR != NULL) {
        _ret = _ptr_eglCreateSync64KHR(dpy, type, attrib_list);
    }
    return _ret;
}
static EGLSyncKHR EGLAPIENTRY dispatch_eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)
{
    typedef EGLSyncKHR EGLAPIENTRY (* _pfn_eglCreateSyncKHR)(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
    EGLSyncKHR _ret = 0;
    _pfn_eglCreateSyncKHR _ptr_eglCreateSyncKHR = (_pfn_eglCreateSyncKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreateSyncKHR);
    if(_ptr_eglCreateSyncKHR != NULL) {
        _ret = _ptr_eglCreateSyncKHR(dpy, type, attrib_list);
    }
    return _ret;
}
static struct wl_buffer * EGLAPIENTRY dispatch_eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImage image)
{
    typedef struct wl_buffer * EGLAPIENTRY (* _pfn_eglCreateWaylandBufferFromImageWL)(EGLDisplay dpy, EGLImage image);
    struct wl_buffer * _ret = NULL;
    _pfn_eglCreateWaylandBufferFromImageWL _ptr_eglCreateWaylandBufferFromImageWL = (_pfn_eglCreateWaylandBufferFromImageWL) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglCreateWaylandBufferFromImageWL);
    if(_ptr_eglCreateWaylandBufferFromImageWL != NULL) {
        _ret = _ptr_eglCreateWaylandBufferFromImageWL(dpy, image);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglDestroyImageKHR)(EGLDisplay dpy, EGLImageKHR image);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglDestroyImageKHR _ptr_eglDestroyImageKHR = (_pfn_eglDestroyImageKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglDestroyImageKHR);
    if(_ptr_eglDestroyImageKHR != NULL) {
        _ret = _ptr_eglDestroyImageKHR(dpy, image);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglDestroySyncKHR)(EGLDisplay dpy, EGLSyncKHR sync);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglDestroySyncKHR _ptr_eglDestroySyncKHR = (_pfn_eglDestroySyncKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglDestroySyncKHR);
    if(_ptr_eglDestroySyncKHR != NULL) {
        _ret = _ptr_eglDestroySyncKHR(dpy, sync);
    }
    return _ret;
}
static EGLint EGLAPIENTRY dispatch_eglDupNativeFenceFDANDROID(EGLDisplay dpy, EGLSyncKHR sync)
{
    typedef EGLint EGLAPIENTRY (* _pfn_eglDupNativeFenceFDANDROID)(EGLDisplay dpy, EGLSyncKHR sync);
    EGLint _ret = 0;
    _pfn_eglDupNativeFenceFDANDROID _ptr_eglDupNativeFenceFDANDROID = (_pfn_eglDupNativeFenceFDANDROID) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglDupNativeFenceFDANDROID);
    if(_ptr_eglDupNativeFenceFDANDROID != NULL) {
        _ret = _ptr_eglDupNativeFenceFDANDROID(dpy, sync);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglExportDMABUFImageMESA(EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglExportDMABUFImageMESA)(EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglExportDMABUFImageMESA _ptr_eglExportDMABUFImageMESA = (_pfn_eglExportDMABUFImageMESA) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglExportDMABUFImageMESA);
    if(_ptr_eglExportDMABUFImageMESA != NULL) {
        _ret = _ptr_eglExportDMABUFImageMESA(dpy, image, fds, strides, offsets);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglExportDMABUFImageQueryMESA(EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglExportDMABUFImageQueryMESA)(EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglExportDMABUFImageQueryMESA _ptr_eglExportDMABUFImageQueryMESA = (_pfn_eglExportDMABUFImageQueryMESA) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglExportDMABUFImageQueryMESA);
    if(_ptr_eglExportDMABUFImageQueryMESA != NULL) {
        _ret = _ptr_eglExportDMABUFImageQueryMESA(dpy, image, fourcc, num_planes, modifiers);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglExportDRMImageMESA(EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglExportDRMImageMESA)(EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglExportDRMImageMESA _ptr_eglExportDRMImageMESA = (_pfn_eglExportDRMImageMESA) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglExportDRMImageMESA);
    if(_ptr_eglExportDRMImageMESA != NULL) {
        _ret = _ptr_eglExportDRMImageMESA(dpy, image, name, handle, stride);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglGetSyncAttribKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglGetSyncAttribKHR _ptr_eglGetSyncAttribKHR = (_pfn_eglGetSyncAttribKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglGetSyncAttribKHR);
    if(_ptr_eglGetSyncAttribKHR != NULL) {
        _ret = _ptr_eglGetSyncAttribKHR(dpy, sync, attribute, value);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglGetSyncValuesCHROMIUM(EGLDisplay display, EGLSurface surface, EGLuint64KHR *ust, EGLuint64KHR *msc, EGLuint64KHR *sbc)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglGetSyncValuesCHROMIUM)(EGLDisplay display, EGLSurface surface, EGLuint64KHR *ust, EGLuint64KHR *msc, EGLuint64KHR *sbc);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglGetSyncValuesCHROMIUM _ptr_eglGetSyncValuesCHROMIUM = (_pfn_eglGetSyncValuesCHROMIUM) __eglDispatchFetchByDisplay(display, __EGL_DISPATCH_eglGetSyncValuesCHROMIUM);
    if(_ptr_eglGetSyncValuesCHROMIUM != NULL) {
        _ret = _ptr_eglGetSyncValuesCHROMIUM(display, surface, ust, msc, sbc);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglPostSubBufferNV(EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglPostSubBufferNV)(EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglPostSubBufferNV _ptr_eglPostSubBufferNV = (_pfn_eglPostSubBufferNV) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglPostSubBufferNV);
    if(_ptr_eglPostSubBufferNV != NULL) {
        _ret = _ptr_eglPostSubBufferNV(dpy, surface, x, y, width, height);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglQueryDmaBufFormatsEXT(EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglQueryDmaBufFormatsEXT)(EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglQueryDmaBufFormatsEXT _ptr_eglQueryDmaBufFormatsEXT = (_pfn_eglQueryDmaBufFormatsEXT) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglQueryDmaBufFormatsEXT);
    if(_ptr_eglQueryDmaBufFormatsEXT != NULL) {
        _ret = _ptr_eglQueryDmaBufFormatsEXT(dpy, max_formats, formats, num_formats);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglQueryDmaBufModifiersEXT(EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglQueryDmaBufModifiersEXT)(EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglQueryDmaBufModifiersEXT _ptr_eglQueryDmaBufModifiersEXT = (_pfn_eglQueryDmaBufModifiersEXT) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglQueryDmaBufModifiersEXT);
    if(_ptr_eglQueryDmaBufModifiersEXT != NULL) {
        _ret = _ptr_eglQueryDmaBufModifiersEXT(dpy, format, max_modifiers, modifiers, external_only, num_modifiers);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglQueryWaylandBufferWL)(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglQueryWaylandBufferWL _ptr_eglQueryWaylandBufferWL = (_pfn_eglQueryWaylandBufferWL) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglQueryWaylandBufferWL);
    if(_ptr_eglQueryWaylandBufferWL != NULL) {
        _ret = _ptr_eglQueryWaylandBufferWL(dpy, buffer, attribute, value);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglSignalSyncKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglSignalSyncKHR _ptr_eglSignalSyncKHR = (_pfn_eglSignalSyncKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglSignalSyncKHR);
    if(_ptr_eglSignalSyncKHR != NULL) {
        _ret = _ptr_eglSignalSyncKHR(dpy, sync, mode);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglSwapBuffersRegionNOK(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglSwapBuffersRegionNOK)(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglSwapBuffersRegionNOK _ptr_eglSwapBuffersRegionNOK = (_pfn_eglSwapBuffersRegionNOK) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglSwapBuffersRegionNOK);
    if(_ptr_eglSwapBuffersRegionNOK != NULL) {
        _ret = _ptr_eglSwapBuffersRegionNOK(dpy, surface, numRects, rects);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglSwapBuffersWithDamageEXT(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglSwapBuffersWithDamageEXT)(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglSwapBuffersWithDamageEXT _ptr_eglSwapBuffersWithDamageEXT = (_pfn_eglSwapBuffersWithDamageEXT) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglSwapBuffersWithDamageEXT);
    if(_ptr_eglSwapBuffersWithDamageEXT != NULL) {
        _ret = _ptr_eglSwapBuffersWithDamageEXT(dpy, surface, rects, n_rects);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglSwapBuffersWithDamageKHR)(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglSwapBuffersWithDamageKHR _ptr_eglSwapBuffersWithDamageKHR = (_pfn_eglSwapBuffersWithDamageKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglSwapBuffersWithDamageKHR);
    if(_ptr_eglSwapBuffersWithDamageKHR != NULL) {
        _ret = _ptr_eglSwapBuffersWithDamageKHR(dpy, surface, rects, n_rects);
    }
    return _ret;
}
static EGLBoolean EGLAPIENTRY dispatch_eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display)
{
    typedef EGLBoolean EGLAPIENTRY (* _pfn_eglUnbindWaylandDisplayWL)(EGLDisplay dpy, struct wl_display *display);
    EGLBoolean _ret = EGL_FALSE;
    _pfn_eglUnbindWaylandDisplayWL _ptr_eglUnbindWaylandDisplayWL = (_pfn_eglUnbindWaylandDisplayWL) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglUnbindWaylandDisplayWL);
    if(_ptr_eglUnbindWaylandDisplayWL != NULL) {
        _ret = _ptr_eglUnbindWaylandDisplayWL(dpy, display);
    }
    return _ret;
}
static EGLint EGLAPIENTRY dispatch_eglWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags)
{
    typedef EGLint EGLAPIENTRY (* _pfn_eglWaitSyncKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
    EGLint _ret = 0;
    _pfn_eglWaitSyncKHR _ptr_eglWaitSyncKHR = (_pfn_eglWaitSyncKHR) __eglDispatchFetchByDisplay(dpy, __EGL_DISPATCH_eglWaitSyncKHR);
    if(_ptr_eglWaitSyncKHR != NULL) {
        _ret = _ptr_eglWaitSyncKHR(dpy, sync, flags);
    }
    return _ret;
}

const char * const __EGL_DISPATCH_FUNC_NAMES[__EGL_DISPATCH_COUNT + 1] = {
    "eglBindAPI",
    "eglBindTexImage",
    "eglBindWaylandDisplayWL",
    "eglChooseConfig",
    "eglClientWaitSync",
    "eglClientWaitSyncKHR",
    "eglCopyBuffers",
    "eglCreateContext",
    "eglCreateDRMImageMESA",
    "eglCreateImage",
    "eglCreateImageKHR",
    "eglCreatePbufferFromClientBuffer",
    "eglCreatePbufferSurface",
    "eglCreatePixmapSurface",
    "eglCreatePlatformPixmapSurface",
    "eglCreatePlatformPixmapSurfaceEXT",
    "eglCreatePlatformWindowSurface",
    "eglCreatePlatformWindowSurfaceEXT",
    "eglCreateSync",
    "eglCreateSync64KHR",
    "eglCreateSyncKHR",
    "eglCreateWaylandBufferFromImageWL",
    "eglCreateWindowSurface",
    "eglDestroyContext",
    "eglDestroyImage",
    "eglDestroyImageKHR",
    "eglDestroySurface",
    "eglDestroySync",
    "eglDestroySyncKHR",
    "eglDupNativeFenceFDANDROID",
    "eglExportDMABUFImageMESA",
    "eglExportDMABUFImageQueryMESA",
    "eglExportDRMImageMESA",
    "eglGetConfigAttrib",
    "eglGetConfigs",
    "eglGetCurrentContext",
    "eglGetCurrentDisplay",
    "eglGetCurrentSurface",
    "eglGetDisplay",
    "eglGetError",
    "eglGetPlatformDisplay",
    "eglGetPlatformDisplayEXT",
    "eglGetProcAddress",
    "eglGetSyncAttrib",
    "eglGetSyncAttribKHR",
    "eglGetSyncValuesCHROMIUM",
    "eglInitialize",
    "eglMakeCurrent",
    "eglPostSubBufferNV",
    "eglQueryAPI",
    "eglQueryContext",
    "eglQueryDmaBufFormatsEXT",
    "eglQueryDmaBufModifiersEXT",
    "eglQueryString",
    "eglQuerySurface",
    "eglQueryWaylandBufferWL",
    "eglReleaseTexImage",
    "eglReleaseThread",
    "eglSignalSyncKHR",
    "eglSurfaceAttrib",
    "eglSwapBuffers",
    "eglSwapBuffersRegionNOK",
    "eglSwapBuffersWithDamageEXT",
    "eglSwapBuffersWithDamageKHR",
    "eglSwapInterval",
    "eglTerminate",
    "eglUnbindWaylandDisplayWL",
    "eglWaitClient",
    "eglWaitGL",
    "eglWaitNative",
    "eglWaitSync",
    "eglWaitSyncKHR",
    NULL
};
const __eglMustCastToProperFunctionPointerType __EGL_DISPATCH_FUNCS[__EGL_DISPATCH_COUNT + 1] = {
    NULL, // eglBindAPI
    NULL, // eglBindTexImage
    (__eglMustCastToProperFunctionPointerType) dispatch_eglBindWaylandDisplayWL,
    NULL, // eglChooseConfig
    NULL, // eglClientWaitSync
    (__eglMustCastToProperFunctionPointerType) dispatch_eglClientWaitSyncKHR,
    NULL, // eglCopyBuffers
    NULL, // eglCreateContext
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreateDRMImageMESA,
    NULL, // eglCreateImage
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreateImageKHR,
    NULL, // eglCreatePbufferFromClientBuffer
    NULL, // eglCreatePbufferSurface
    NULL, // eglCreatePixmapSurface
    NULL, // eglCreatePlatformPixmapSurface
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreatePlatformPixmapSurfaceEXT,
    NULL, // eglCreatePlatformWindowSurface
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreatePlatformWindowSurfaceEXT,
    NULL, // eglCreateSync
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreateSync64KHR,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreateSyncKHR,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglCreateWaylandBufferFromImageWL,
    NULL, // eglCreateWindowSurface
    NULL, // eglDestroyContext
    NULL, // eglDestroyImage
    (__eglMustCastToProperFunctionPointerType) dispatch_eglDestroyImageKHR,
    NULL, // eglDestroySurface
    NULL, // eglDestroySync
    (__eglMustCastToProperFunctionPointerType) dispatch_eglDestroySyncKHR,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglDupNativeFenceFDANDROID,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglExportDMABUFImageMESA,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglExportDMABUFImageQueryMESA,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglExportDRMImageMESA,
    NULL, // eglGetConfigAttrib
    NULL, // eglGetConfigs
    NULL, // eglGetCurrentContext
    NULL, // eglGetCurrentDisplay
    NULL, // eglGetCurrentSurface
    NULL, // eglGetDisplay
    NULL, // eglGetError
    NULL, // eglGetPlatformDisplay
    NULL, // eglGetPlatformDisplayEXT
    NULL, // eglGetProcAddress
    NULL, // eglGetSyncAttrib
    (__eglMustCastToProperFunctionPointerType) dispatch_eglGetSyncAttribKHR,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglGetSyncValuesCHROMIUM,
    NULL, // eglInitialize
    NULL, // eglMakeCurrent
    (__eglMustCastToProperFunctionPointerType) dispatch_eglPostSubBufferNV,
    NULL, // eglQueryAPI
    NULL, // eglQueryContext
    (__eglMustCastToProperFunctionPointerType) dispatch_eglQueryDmaBufFormatsEXT,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglQueryDmaBufModifiersEXT,
    NULL, // eglQueryString
    NULL, // eglQuerySurface
    (__eglMustCastToProperFunctionPointerType) dispatch_eglQueryWaylandBufferWL,
    NULL, // eglReleaseTexImage
    NULL, // eglReleaseThread
    (__eglMustCastToProperFunctionPointerType) dispatch_eglSignalSyncKHR,
    NULL, // eglSurfaceAttrib
    NULL, // eglSwapBuffers
    (__eglMustCastToProperFunctionPointerType) dispatch_eglSwapBuffersRegionNOK,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglSwapBuffersWithDamageEXT,
    (__eglMustCastToProperFunctionPointerType) dispatch_eglSwapBuffersWithDamageKHR,
    NULL, // eglSwapInterval
    NULL, // eglTerminate
    (__eglMustCastToProperFunctionPointerType) dispatch_eglUnbindWaylandDisplayWL,
    NULL, // eglWaitClient
    NULL, // eglWaitGL
    NULL, // eglWaitNative
    NULL, // eglWaitSync
    (__eglMustCastToProperFunctionPointerType) dispatch_eglWaitSyncKHR,
    NULL
};