[Mesa-dev] [PATCH 10/15] egl: add eglWaitSync
Marek Olšák
maraeo at gmail.com
Tue May 12 15:54:45 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
---
src/egl/main/eglapi.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 60df297..544f7e4 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -1162,6 +1162,7 @@ eglGetProcAddress(const char *procname)
{ "eglDestroySync", (_EGLProc) eglDestroySync },
{ "eglClientWaitSync", (_EGLProc) eglClientWaitSync },
{ "eglDestroyImage", (_EGLProc) eglDestroyImage },
+ { "eglWaitSync", (_EGLProc) eglWaitSync },
#endif /* _EGL_GET_CORE_ADDRESSES */
#ifdef EGL_MESA_drm_display
{ "eglGetDRMDisplayMESA", (_EGLProc) eglGetDRMDisplayMESA },
@@ -1514,6 +1515,17 @@ eglWaitSyncKHR(EGLDisplay dpy, EGLSync sync, EGLint flags)
EGLBoolean EGLAPIENTRY
+eglWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags)
+{
+ /* The KHR version returns EGLint, while the core version returns
+ * EGLBoolean. In both cases, the return values can only be EGL_FALSE and
+ * EGL_TRUE.
+ */
+ return eglWaitSyncKHR(dpy, sync, flags);
+}
+
+
+EGLBoolean EGLAPIENTRY
eglSignalSyncKHR(EGLDisplay dpy, EGLSync sync, EGLenum mode)
{
_EGLDisplay *disp = _eglLockDisplay(dpy);
--
2.1.0
More information about the mesa-dev
mailing list