diff options
author | Eric Engestrom <[email protected]> | 2017-02-21 23:56:45 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-02-24 17:00:50 +0000 |
commit | b7f6f3b3e53c864fdaaf9976720c1129615cfa20 (patch) | |
tree | cf2aa2c212c4e10c67d2fba549c3e36e6f666913 /src/egl | |
parent | df7fa30aecb311b8c82b90555a2691ece195e91a (diff) |
eglapi: add entrypoint for eglDestroySyncKHR
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/main/eglapi.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 251855cc3b6..e149c0f8d13 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1726,16 +1726,12 @@ eglCreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list) } -EGLBoolean EGLAPIENTRY -eglDestroySync(EGLDisplay dpy, EGLSync sync) +static EGLBoolean +_eglDestroySync(_EGLDisplay *disp, _EGLSync *s) { - _EGLDisplay *disp = _eglLockDisplay(dpy); - _EGLSync *s = _eglLookupSync(sync, disp); _EGLDriver *drv; EGLBoolean ret; - _EGL_FUNC_START(disp, EGL_OBJECT_SYNC_KHR, s, EGL_FALSE); - _EGL_CHECK_SYNC(disp, s, EGL_FALSE, drv); assert(disp->Extensions.KHR_reusable_sync || disp->Extensions.KHR_fence_sync || @@ -1747,6 +1743,24 @@ eglDestroySync(EGLDisplay dpy, EGLSync sync) RETURN_EGL_EVAL(disp, ret); } +EGLBoolean EGLAPIENTRY +eglDestroySync(EGLDisplay dpy, EGLSync sync) +{ + _EGLDisplay *disp = _eglLockDisplay(dpy); + _EGLSync *s = _eglLookupSync(sync, disp); + _EGL_FUNC_START(disp, EGL_OBJECT_SYNC_KHR, s, EGL_FALSE); + return _eglDestroySync(disp, s); +} + +static EGLBoolean EGLAPIENTRY +eglDestroySyncKHR(EGLDisplay dpy, EGLSync sync) +{ + _EGLDisplay *disp = _eglLockDisplay(dpy); + _EGLSync *s = _eglLookupSync(sync, disp); + _EGL_FUNC_START(disp, EGL_OBJECT_SYNC_KHR, s, EGL_FALSE); + return _eglDestroySync(disp, s); +} + EGLint EGLAPIENTRY eglClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout) @@ -2378,7 +2392,7 @@ eglGetProcAddress(const char *procname) { "eglDestroyImageKHR", (_EGLProc) eglDestroyImageKHR }, { "eglCreateSyncKHR", (_EGLProc) eglCreateSyncKHR }, { "eglCreateSync64KHR", (_EGLProc) eglCreateSync64KHR }, - { "eglDestroySyncKHR", (_EGLProc) eglDestroySync }, + { "eglDestroySyncKHR", (_EGLProc) eglDestroySyncKHR }, { "eglClientWaitSyncKHR", (_EGLProc) eglClientWaitSync }, { "eglWaitSyncKHR", (_EGLProc) eglWaitSyncKHR }, { "eglSignalSyncKHR", (_EGLProc) eglSignalSyncKHR }, |