diff options
author | Chia-I Wu <[email protected]> | 2010-08-14 23:09:12 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-08-17 00:06:19 +0800 |
commit | 4eebea74a81ec5fbacf2347ea88cac137ddd4d69 (patch) | |
tree | d789cb3e6205ea0f4b80d9e954426fffcfee5fef /src/egl/main/egldriver.c | |
parent | b2a575ff288a909eeddefe5168e29d15e6d17ab8 (diff) |
egl: Add support for EGL_KHR_reusable_sync.
Individual drivers still need to support and enable the extension.
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r-- | src/egl/main/egldriver.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 8fc9e792b06..67f1d3dbaa4 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -21,6 +21,7 @@ #include "eglstring.h" #include "eglsurface.h" #include "eglimage.h" +#include "eglsync.h" #include "eglmutex.h" #if defined(_EGL_OS_UNIX) @@ -722,6 +723,14 @@ _eglInitDriverFallbacks(_EGLDriver *drv) drv->API.CreateImageKHR = _eglCreateImageKHR; drv->API.DestroyImageKHR = _eglDestroyImageKHR; #endif /* EGL_KHR_image_base */ + +#ifdef EGL_KHR_reusable_sync + drv->API.CreateSyncKHR = _eglCreateSyncKHR; + drv->API.DestroySyncKHR = _eglDestroySyncKHR; + drv->API.ClientWaitSyncKHR = _eglClientWaitSyncKHR; + drv->API.SignalSyncKHR = _eglSignalSyncKHR; + drv->API.GetSyncAttribKHR = _eglGetSyncAttribKHR; +#endif /* EGL_KHR_reusable_sync */ } |