From: Joonbum Ko Date: Wed, 8 Apr 2020 11:35:19 +0000 (+0900) Subject: [explicit_sync] Added missing pkg_modules to use wayland-extension X-Git-Tag: submit/tizen/20200810.080631~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae56e468afa4d7b4addb93e86da78fc991d708f5;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git [explicit_sync] Added missing pkg_modules to use wayland-extension linux-explicit-synchronization-unstable-v1-client Change-Id: I0f0661a15b40018576292c5db2081d08caeaacbe Signed-off-by: Joonbum Ko --- diff --git a/configure.ac b/configure.ac index 7a761bb..71e4070 100644 --- a/configure.ac +++ b/configure.ac @@ -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"], diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 2ebfa74..d9645dd 100755 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -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;