Skip to content

Commit

Permalink
Merge pull request #464 from JohnnyonFlame/master
Browse files Browse the repository at this point in the history
Export eglDestroySyncKHR symbols.
  • Loading branch information
ptitSeb authored Jul 14, 2024
2 parents 52e0c49 + 6b3fb96 commit b944f2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/egl/egl.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ EGLSyncKHR gl4es_eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *at
return egl_eglCreateSyncKHR(dpy, type, attrib_list);
}

EGLSyncKHR gl4es_eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) {
LOAD_EGL(eglDestroySyncKHR);
return egl_eglDestroySyncKHR(dpy, sync);
}

EGLint gl4es_eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout) {
LOAD_EGL(eglClientWaitSyncKHR);
return egl_eglClientWaitSyncKHR(dpy, sync, flags, timeout);
Expand Down Expand Up @@ -257,6 +262,7 @@ AliasExport(EGLBoolean, eglWaitNative,,(EGLint engine));
AliasExport(EGLBoolean, eglSwapBuffers,,(EGLDisplay dpy, EGLSurface surface));
AliasExport(EGLBoolean, eglCopyBuffers,,(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target));
AliasExport(EGLSyncKHR, eglCreateSyncKHR,,(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list));
AliasExport(EGLSyncKHR, eglDestroySyncKHR,,(EGLDisplay dpy, EGLSyncKHR sync));
AliasExport(EGLint, eglClientWaitSyncKHR,,(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout));

AliasExport(NativePixmapType, egl_create_pixmap_ID_mapping,,(void *pixmap));
Expand Down
1 change: 1 addition & 0 deletions src/egl/egl.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ EGLBoolean gl4es_eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePix
void* gl4es_eglGetProcAddress(const char *name);

EGLSyncKHR gl4es_eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
EGLSyncKHR gl4es_eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync);
EGLint gl4es_eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);

// Undocumented libmali internals, needed for ODROID Go Ultra
Expand Down
1 change: 1 addition & 0 deletions src/egl/lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void* gl4es_eglGetProcAddress(const char *name) {
_EX(eglSwapBuffers);
_EX(eglCopyBuffers);
_EX(eglCreateSyncKHR);
_EX(eglDestroySyncKHR);
_EX(eglClientWaitSyncKHR);

_EX(egl_create_pixmap_ID_mapping);
Expand Down
1 change: 1 addition & 0 deletions src/gl/loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ typedef EGLBoolean (*eglWaitClient_PTR)();
typedef EGLBoolean (*eglWaitGL_PTR)();
typedef EGLBoolean (*eglWaitNative_PTR)(EGLint engine);
typedef EGLSyncKHR (*eglCreateSyncKHR_PTR)(EGLDisplay dpy, EGLenum type, const EGLint * attrib_list);
typedef EGLSyncKHR (*eglDestroySyncKHR_PTR)(EGLDisplay dpy, EGLSyncKHR sync);
typedef EGLint (*eglClientWaitSyncKHR_PTR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);

typedef NativePixmapType (*egl_create_pixmap_ID_mapping_PTR)(void *pixmap);
Expand Down

0 comments on commit b944f2e

Please sign in to comment.