projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}
[mesa.git]
/
src
/
egl
/
main
/
eglsync.h
diff --git
a/src/egl/main/eglsync.h
b/src/egl/main/eglsync.h
index cd2d78326f9e38d47774eed62fedeb9b837b154b..5ac76f3ac3dfd3e64fa67135e3c3308f33b9f3aa 100644
(file)
--- a/
src/egl/main/eglsync.h
+++ b/
src/egl/main/eglsync.h
@@
-47,17
+47,19
@@
struct _egl_sync
EGLenum Type;
EGLenum SyncStatus;
EGLenum SyncCondition;
EGLenum Type;
EGLenum SyncStatus;
EGLenum SyncCondition;
+ EGLAttrib CLEvent;
+ EGLint SyncFd;
};
};
-
PUBLIC
EGLBoolean
+
extern
EGLBoolean
_eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type,
_eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type,
- const EGL
int
*attrib_list);
+ const EGL
Attrib
*attrib_list);
extern EGLBoolean
extern EGLBoolean
-_eglGetSyncAttrib
KHR
(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
-
EGLint attribute, EGLint
*value);
+_eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
+
EGLint attribute, EGLAttrib
*value);
/**
/**
@@
-86,11
+88,11
@@
_eglPutSync(_EGLSync *sync)
* Link a sync to its display and return the handle of the link.
* The handle can be passed to client directly.
*/
* Link a sync to its display and return the handle of the link.
* The handle can be passed to client directly.
*/
-static inline EGLSync
KHR
+static inline EGLSync
_eglLinkSync(_EGLSync *sync)
{
_eglLinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
_eglLinkSync(_EGLSync *sync)
{
_eglLinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
- return (EGLSync
KHR
) sync;
+ return (EGLSync) sync;
}
}
@@
-109,7
+111,7
@@
_eglUnlinkSync(_EGLSync *sync)
* Return NULL if the handle has no corresponding linked sync.
*/
static inline _EGLSync *
* Return NULL if the handle has no corresponding linked sync.
*/
static inline _EGLSync *
-_eglLookupSync(EGLSync
KHR
handle, _EGLDisplay *dpy)
+_eglLookupSync(EGLSync handle, _EGLDisplay *dpy)
{
_EGLSync *sync = (_EGLSync *) handle;
if (!dpy || !_eglCheckResource((void *) sync, _EGL_RESOURCE_SYNC, dpy))
{
_EGLSync *sync = (_EGLSync *) handle;
if (!dpy || !_eglCheckResource((void *) sync, _EGL_RESOURCE_SYNC, dpy))
@@
-121,12
+123,12
@@
_eglLookupSync(EGLSyncKHR handle, _EGLDisplay *dpy)
/**
* Return the handle of a linked sync, or EGL_NO_SYNC_KHR.
*/
/**
* Return the handle of a linked sync, or EGL_NO_SYNC_KHR.
*/
-static inline EGLSync
KHR
+static inline EGLSync
_eglGetSyncHandle(_EGLSync *sync)
{
_EGLResource *res = (_EGLResource *) sync;
return (res && _eglIsResourceLinked(res)) ?
_eglGetSyncHandle(_EGLSync *sync)
{
_EGLResource *res = (_EGLResource *) sync;
return (res && _eglIsResourceLinked(res)) ?
- (EGLSync
KHR
) sync : EGL_NO_SYNC_KHR;
+ (EGLSync) sync : EGL_NO_SYNC_KHR;
}
}