xref: /aosp_15_r20/external/deqp/framework/egl/wrapper/eglwImplExt.inl (revision 35238bce31c2a825756842865a792f8cf7f89930)
1*35238bceSAndroid Build Coastguard Worker/* WARNING: This is auto-generated file. Do not modify, since changes will
2*35238bceSAndroid Build Coastguard Worker * be lost! Modify the generating script instead.
3*35238bceSAndroid Build Coastguard Worker *
4*35238bceSAndroid Build Coastguard Worker * Generated from Khronos EGL API description (egl.xml) revision 6550e9b12e0b4f11182bda30ae2a8dd56d0b02c8.
5*35238bceSAndroid Build Coastguard Worker */
6*35238bceSAndroid Build Coastguard Worker
7*35238bceSAndroid Build Coastguard WorkerEGLint eglwClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout)
8*35238bceSAndroid Build Coastguard Worker{
9*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
10*35238bceSAndroid Build Coastguard Worker    if (!egl)
11*35238bceSAndroid Build Coastguard Worker        return (EGLint)0;
12*35238bceSAndroid Build Coastguard Worker    return egl->clientWaitSyncKHR(dpy, sync, flags, timeout);
13*35238bceSAndroid Build Coastguard Worker}
14*35238bceSAndroid Build Coastguard Worker
15*35238bceSAndroid Build Coastguard WorkerEGLImageKHR eglwCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
16*35238bceSAndroid Build Coastguard Worker{
17*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
18*35238bceSAndroid Build Coastguard Worker    if (!egl)
19*35238bceSAndroid Build Coastguard Worker        return (EGLImageKHR)0;
20*35238bceSAndroid Build Coastguard Worker    return egl->createImageKHR(dpy, ctx, target, buffer, attrib_list);
21*35238bceSAndroid Build Coastguard Worker}
22*35238bceSAndroid Build Coastguard Worker
23*35238bceSAndroid Build Coastguard WorkerEGLSurface eglwCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list)
24*35238bceSAndroid Build Coastguard Worker{
25*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
26*35238bceSAndroid Build Coastguard Worker    if (!egl)
27*35238bceSAndroid Build Coastguard Worker        return (EGLSurface)0;
28*35238bceSAndroid Build Coastguard Worker    return egl->createPlatformPixmapSurfaceEXT(dpy, config, native_pixmap, attrib_list);
29*35238bceSAndroid Build Coastguard Worker}
30*35238bceSAndroid Build Coastguard Worker
31*35238bceSAndroid Build Coastguard WorkerEGLSurface eglwCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list)
32*35238bceSAndroid Build Coastguard Worker{
33*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
34*35238bceSAndroid Build Coastguard Worker    if (!egl)
35*35238bceSAndroid Build Coastguard Worker        return (EGLSurface)0;
36*35238bceSAndroid Build Coastguard Worker    return egl->createPlatformWindowSurfaceEXT(dpy, config, native_window, attrib_list);
37*35238bceSAndroid Build Coastguard Worker}
38*35238bceSAndroid Build Coastguard Worker
39*35238bceSAndroid Build Coastguard WorkerEGLSyncKHR eglwCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)
40*35238bceSAndroid Build Coastguard Worker{
41*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
42*35238bceSAndroid Build Coastguard Worker    if (!egl)
43*35238bceSAndroid Build Coastguard Worker        return (EGLSyncKHR)0;
44*35238bceSAndroid Build Coastguard Worker    return egl->createSyncKHR(dpy, type, attrib_list);
45*35238bceSAndroid Build Coastguard Worker}
46*35238bceSAndroid Build Coastguard Worker
47*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image)
48*35238bceSAndroid Build Coastguard Worker{
49*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
50*35238bceSAndroid Build Coastguard Worker    if (!egl)
51*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
52*35238bceSAndroid Build Coastguard Worker    return egl->destroyImageKHR(dpy, image);
53*35238bceSAndroid Build Coastguard Worker}
54*35238bceSAndroid Build Coastguard Worker
55*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync)
56*35238bceSAndroid Build Coastguard Worker{
57*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
58*35238bceSAndroid Build Coastguard Worker    if (!egl)
59*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
60*35238bceSAndroid Build Coastguard Worker    return egl->destroySyncKHR(dpy, sync);
61*35238bceSAndroid Build Coastguard Worker}
62*35238bceSAndroid Build Coastguard Worker
63*35238bceSAndroid Build Coastguard WorkerEGLDisplay eglwGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list)
64*35238bceSAndroid Build Coastguard Worker{
65*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
66*35238bceSAndroid Build Coastguard Worker    if (!egl)
67*35238bceSAndroid Build Coastguard Worker        return (EGLDisplay)0;
68*35238bceSAndroid Build Coastguard Worker    return egl->getPlatformDisplayEXT(platform, native_display, attrib_list);
69*35238bceSAndroid Build Coastguard Worker}
70*35238bceSAndroid Build Coastguard Worker
71*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value)
72*35238bceSAndroid Build Coastguard Worker{
73*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
74*35238bceSAndroid Build Coastguard Worker    if (!egl)
75*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
76*35238bceSAndroid Build Coastguard Worker    return egl->getSyncAttribKHR(dpy, sync, attribute, value);
77*35238bceSAndroid Build Coastguard Worker}
78*35238bceSAndroid Build Coastguard Worker
79*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list)
80*35238bceSAndroid Build Coastguard Worker{
81*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
82*35238bceSAndroid Build Coastguard Worker    if (!egl)
83*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
84*35238bceSAndroid Build Coastguard Worker    return egl->lockSurfaceKHR(dpy, surface, attrib_list);
85*35238bceSAndroid Build Coastguard Worker}
86*35238bceSAndroid Build Coastguard Worker
87*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects)
88*35238bceSAndroid Build Coastguard Worker{
89*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
90*35238bceSAndroid Build Coastguard Worker    if (!egl)
91*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
92*35238bceSAndroid Build Coastguard Worker    return egl->setDamageRegionKHR(dpy, surface, rects, n_rects);
93*35238bceSAndroid Build Coastguard Worker}
94*35238bceSAndroid Build Coastguard Worker
95*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode)
96*35238bceSAndroid Build Coastguard Worker{
97*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
98*35238bceSAndroid Build Coastguard Worker    if (!egl)
99*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
100*35238bceSAndroid Build Coastguard Worker    return egl->signalSyncKHR(dpy, sync, mode);
101*35238bceSAndroid Build Coastguard Worker}
102*35238bceSAndroid Build Coastguard Worker
103*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects)
104*35238bceSAndroid Build Coastguard Worker{
105*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
106*35238bceSAndroid Build Coastguard Worker    if (!egl)
107*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
108*35238bceSAndroid Build Coastguard Worker    return egl->swapBuffersWithDamageKHR(dpy, surface, rects, n_rects);
109*35238bceSAndroid Build Coastguard Worker}
110*35238bceSAndroid Build Coastguard Worker
111*35238bceSAndroid Build Coastguard WorkerEGLBoolean eglwUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface)
112*35238bceSAndroid Build Coastguard Worker{
113*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
114*35238bceSAndroid Build Coastguard Worker    if (!egl)
115*35238bceSAndroid Build Coastguard Worker        return (EGLBoolean)0;
116*35238bceSAndroid Build Coastguard Worker    return egl->unlockSurfaceKHR(dpy, surface);
117*35238bceSAndroid Build Coastguard Worker}
118*35238bceSAndroid Build Coastguard Worker
119*35238bceSAndroid Build Coastguard WorkerEGLint eglwWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags)
120*35238bceSAndroid Build Coastguard Worker{
121*35238bceSAndroid Build Coastguard Worker    const eglw::Library* egl = eglw::getCurrentThreadLibrary();
122*35238bceSAndroid Build Coastguard Worker    if (!egl)
123*35238bceSAndroid Build Coastguard Worker        return (EGLint)0;
124*35238bceSAndroid Build Coastguard Worker    return egl->waitSyncKHR(dpy, sync, flags);
125*35238bceSAndroid Build Coastguard Worker}
126