From: Marek Olšák Date: Tue, 12 May 2015 16:13:31 +0000 (+0200) Subject: egl: add eglWaitSync X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7524592da6305d52e95d718691d5a6665738aade;p=mesa.git egl: add eglWaitSync Reviewed-by: Emil Velikov Reviewed-by: Chad Versace --- 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 },