[explicit_sync] Added missing pkg_modules to use wayland-extension
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 8 Apr 2020 11:35:19 +0000 (20:35 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Aug 2020 08:14:45 +0000 (17:14 +0900)
 linux-explicit-synchronization-unstable-v1-client

Change-Id: I0f0661a15b40018576292c5db2081d08caeaacbe
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
configure.ac
src/tpl_wayland_egl_thread.c

index 7a761bb..71e4070 100644 (file)
@@ -60,7 +60,10 @@ AC_ARG_WITH([wayland],
    [with_wayland=yes])
 
 AS_IF([test "${with_wayland}" = "yes" || test "${with_wayland}" = "1"],
-         [PKG_CHECK_MODULES([TPL_WL], [libtdm-client wayland-tbm-client wayland-tbm-server tizen-surface-client glib-2.0 wayland-egl presentation-time-client wayland-egl-backend])
+         [PKG_CHECK_MODULES([TPL_WL],
+          [libtdm-client wayland-tbm-client wayland-tbm-server
+          tizen-surface-client glib-2.0 wayland-egl presentation-time-client wayland-egl-backend
+          linux-explicit-synchronization-unstable-v1-client])
           TPL_CFLAGS+="$TPL_WL_CFLAGS"
           TPL_CFLAGS+=" -DTPL_WINSYS_WL=1 "
           TPL_LIBS+="$TPL_WL_LIBS"],
index 2ebfa74..d9645dd 100755 (executable)
@@ -2508,12 +2508,12 @@ _twe_thread_wl_surface_dispatch(GSource *source, GSourceFunc cb, gpointer data)
                                                        surf_source->surface_sync, sync_fd);
                                close(sync_fd);
                        } else {
-                               ret = _twe_thread_fence_wait_source_attach(surf_source, tbm_surface, sync_fd);
-                               if (ret != TPL_ERROR_NONE) {
+                               res = _twe_thread_fence_wait_source_attach(surf_source, tbm_surface, sync_fd);
+                               if (res != TPL_ERROR_NONE) {
                                        TPL_ERR("Failed to attach source with fence_fd(%d) ret(%d)",
-                                                       sync_fd, ret);
+                                                       sync_fd, res);
                                        surf_source->use_sync_fence = TPL_FALSE;
-                                       return ret;
+                                       return res;
                                }
 
                                surf_source->use_sync_fence = TPL_TRUE;