From 7524592da6305d52e95d718691d5a6665738aade Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 12 May 2015 18:13:31 +0200 Subject: [PATCH] egl: add eglWaitSync Reviewed-by: Emil Velikov Reviewed-by: Chad Versace --- 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 7a1969f3014..03a55f11c07 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1400,6 +1400,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); +} + + static EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSync sync, EGLenum mode) { @@ -1720,6 +1731,7 @@ eglGetProcAddress(const char *procname) { "eglCreateSync", (_EGLProc) eglCreateSync }, { "eglDestroySync", (_EGLProc) eglDestroySync }, { "eglClientWaitSync", (_EGLProc) eglClientWaitSync }, + { "eglWaitSync", (_EGLProc) eglWaitSync }, { "eglDestroyImage", (_EGLProc) eglDestroyImage }, #ifdef EGL_MESA_drm_display { "eglGetDRMDisplayMESA", (_EGLProc) eglGetDRMDisplayMESA }, -- 2.30.2