diff options
author | Rob Clark <[email protected]> | 2016-11-18 08:39:30 -0500 |
---|---|---|
committer | Chad Versace <[email protected]> | 2016-12-01 10:52:55 -0800 |
commit | cce04a463089ef3ce39df3e2ae25066c2e1ddfdf (patch) | |
tree | d62537c617bd2b6b557d698ad02a859cf05f0e17 | |
parent | 05f35a868cd18e9821fc92d6e11f7cce10ddd587 (diff) |
egl: initialize SyncCondition after attr parsing
Reduce the noise in the next patch. For EGL_SYNC_NATIVE_FENCE_ANDROID
the sync condition is conditional on EGL_SYNC_NATIVE_FENCE_FD_ANDROID
attribute.
Signed-off-by: Rob Clark <[email protected]>
Tested-by: Rafael Antognolli <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Tested-by: Chad Versace <[email protected]>
-rw-r--r-- | src/egl/main/eglsync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/main/eglsync.c b/src/egl/main/eglsync.c index dea324b114e..005cb31fc31 100644 --- a/src/egl/main/eglsync.c +++ b/src/egl/main/eglsync.c @@ -84,6 +84,8 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type, sync->Type = type; sync->SyncStatus = EGL_UNSIGNALED_KHR; + err = _eglParseSyncAttribList(sync, attrib_list); + switch (type) { case EGL_SYNC_CL_EVENT_KHR: sync->SyncCondition = EGL_SYNC_CL_EVENT_COMPLETE_KHR; @@ -92,7 +94,6 @@ _eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type, sync->SyncCondition = EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR; } - err = _eglParseSyncAttribList(sync, attrib_list); if (err != EGL_SUCCESS) return _eglError(err, "eglCreateSyncKHR"); |