• Home
  • Raw
  • Download

Lines Matching full:sync

39  * Parse the list of sync attributes and return the proper error code.
42 _eglParseSyncAttribList(_EGLSync *sync, const EGLAttrib *attrib_list) in _eglParseSyncAttribList() argument
56 if (sync->Type == EGL_SYNC_CL_EVENT_KHR) { in _eglParseSyncAttribList()
57 sync->CLEvent = val; in _eglParseSyncAttribList()
63 if (sync->Type == EGL_SYNC_NATIVE_FENCE_ANDROID) { in _eglParseSyncAttribList()
65 sync->SyncFd = val; in _eglParseSyncAttribList()
76 _eglLog(_EGL_DEBUG, "bad sync attribute 0x%" PRIxPTR, attr); in _eglParseSyncAttribList()
86 _eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type, in _eglInitSync() argument
91 _eglInitResource(&sync->Resource, sizeof(*sync), disp); in _eglInitSync()
92 sync->Type = type; in _eglInitSync()
93 sync->SyncStatus = EGL_UNSIGNALED_KHR; in _eglInitSync()
94 sync->SyncFd = EGL_NO_NATIVE_FENCE_FD_ANDROID; in _eglInitSync()
96 err = _eglParseSyncAttribList(sync, attrib_list); in _eglInitSync()
100 sync->SyncCondition = EGL_SYNC_CL_EVENT_COMPLETE_KHR; in _eglInitSync()
103 if (sync->SyncFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) in _eglInitSync()
104 sync->SyncCondition = EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR; in _eglInitSync()
106 sync->SyncCondition = EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID; in _eglInitSync()
109 sync->SyncCondition = EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR; in _eglInitSync()
115 if (type == EGL_SYNC_CL_EVENT_KHR && !sync->CLEvent) in _eglInitSync()
123 _eglGetSyncAttrib(_EGLDisplay *disp, _EGLSync *sync, in _eglGetSyncAttrib() argument
128 *value = sync->Type; in _eglGetSyncAttrib()
131 /* update the sync status */ in _eglGetSyncAttrib()
132 if (sync->SyncStatus != EGL_SIGNALED_KHR && in _eglGetSyncAttrib()
133 (sync->Type == EGL_SYNC_FENCE_KHR || in _eglGetSyncAttrib()
134 sync->Type == EGL_SYNC_CL_EVENT_KHR || in _eglGetSyncAttrib()
135 sync->Type == EGL_SYNC_REUSABLE_KHR || in _eglGetSyncAttrib()
136 sync->Type == EGL_SYNC_NATIVE_FENCE_ANDROID)) in _eglGetSyncAttrib()
137 disp->Driver->ClientWaitSyncKHR(disp, sync, 0, 0); in _eglGetSyncAttrib()
139 *value = sync->SyncStatus; in _eglGetSyncAttrib()
142 if (sync->Type != EGL_SYNC_FENCE_KHR && in _eglGetSyncAttrib()
143 sync->Type != EGL_SYNC_CL_EVENT_KHR && in _eglGetSyncAttrib()
144 sync->Type != EGL_SYNC_NATIVE_FENCE_ANDROID) in _eglGetSyncAttrib()
146 *value = sync->SyncCondition; in _eglGetSyncAttrib()