egl: move eglGetSyncAttrib() fallback to eglapi.c
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 22 Jun 2019 21:33:00 +0000 (22:33 +0100)
committerEric Engestrom <eric@engestrom.ch>
Tue, 25 Jun 2019 06:36:54 +0000 (06:36 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/main/eglapi.c
src/egl/main/eglfallbacks.c

index 60f59bb165ad9283a4fffd3d900e95460eb8b709..cfc61dba80fb4382a67cdcaf0e80a17c5513cb11 100644 (file)
@@ -2112,7 +2112,11 @@ _eglGetSyncAttribCommon(_EGLDisplay *disp, _EGLSync *s, EGLint attribute, EGLAtt
    assert(disp->Extensions.KHR_reusable_sync ||
           disp->Extensions.KHR_fence_sync ||
           disp->Extensions.ANDROID_native_fence_sync);
-   ret = drv->API.GetSyncAttrib(drv, disp, s, attribute, value);
+
+   if (drv->API.GetSyncAttrib)
+      ret = drv->API.GetSyncAttrib(drv, disp, s, attribute, value);
+   else
+      ret = _eglGetSyncAttrib(drv, disp, s, attribute, value);
 
    RETURN_EGL_EVAL(disp, ret);
 }
index 891c6fc3b71ab42be6e10fe635a2886dc6fef418..7dca5f6bdf8de6f202c563cf1c59493fd8bf3389 100644 (file)
@@ -42,5 +42,4 @@
 void
 _eglInitDriverFallbacks(_EGLDriver *drv)
 {
-   drv->API.GetSyncAttrib = _eglGetSyncAttrib;
 }