summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2020-03-16 18:13:25 +0900
committerJoonbum Ko <joonbum.ko@samsung.com>2020-03-30 15:26:59 +0900
commit3ff028a50e6942aa605a4b596b18abd1599b2af8 (patch)
tree279879e6d9cc92b22ba2d92a6d6bcc453afef339
parentabdad7d55b7b84d56b7daf296bf99f6db4fe51b7 (diff)
downloadmesa-3ff028a50e6942aa605a4b596b18abd1599b2af8.tar.gz
mesa-3ff028a50e6942aa605a4b596b18abd1599b2af8.tar.bz2
mesa-3ff028a50e6942aa605a4b596b18abd1599b2af8.zip
Added new extension EGL_TIZEN_native_fence_sync.
EGL_TIZEN_native_fence_sync - Added EGL_SYNC_NATIVE_FENCE_TIZEN to distinguish EGLSyncKHR. - Added EGL_SYNC_NATIVE_FENCE_FD_TIZEN to get tizen's native fence fd in the sync attribute. - Added EGL_NO_NATIVE_FENCE_FD_TIZEN to indicate no native fence fd. - The eglDupNativeFenceFDTIZEN function has been added to get an fd to indicate when rendering is complete from the egl core. Change-Id: I6876572ec04b3d1616f6b7e5018dc6647685b536 Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--include/EGL/eglext.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h
index 02dd7719161..68178a19608 100644
--- a/include/EGL/eglext.h
+++ b/include/EGL/eglext.h
@@ -1373,6 +1373,17 @@ EGLAPI EGLBoolean EGLAPIENTRY eglImageInvalidateExternalEXT (EGLDisplay dpy, EGL
#endif
#endif /* EGL_EXT_image_flush_external */
+#ifndef EGL_TIZEN_native_fence_sync
+#define EGL_TIZEN_native_fence_sync 1
+#define EGL_SYNC_NATIVE_FENCE_TIZEN 0x3144
+#define EGL_SYNC_NATIVE_FENCE_FD_TIZEN 0x3145
+#define EGL_NO_NATIVE_FENCE_FD_TIZEN -1
+typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDTIZENPROC) (EGLDisplay dpy, EGLSyncKHR sync);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDTIZEN (EGLDisplay dpy, EGLSyncKHR sync);
+#endif
+#endif /* EGL_TIZEN_native_fence_sync */
+
#include <EGL/eglmesaext.h>
#include <EGL/eglextchromium.h>