Disabled the explicit fence sync defaultly.
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 6 Aug 2020 06:37:22 +0000 (15:37 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Aug 2020 08:15:41 +0000 (17:15 +0900)
 - If you want to enable the explicit fence sync feature,
  1. touch /opt/usr/tpl_env (only to do it once)
  2. export TPL_EFS=1
  3. run any gl app with command line.

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

index e35386252a3999c5331fb11d90894c9904280e25..885c0e36b91309243737adcf256ddcb2424e332a 100755 (executable)
@@ -928,13 +928,15 @@ __cb_wl_resistry_global_callback(void *data, struct wl_registry *wl_registry,
                                                                         name, &wp_presentation_interface, 1);
                TPL_DEBUG("bind wp_presentation_interface");
        } else if (strcmp(interface, "zwp_linux_explicit_synchronization_v1") == 0) {
-               char env = tpl_getenv("TPL_EFS");
+               char *env = tpl_getenv("TPL_EFS");
                if (env && atoi(env)) {
                        disp_source->explicit_sync =
                                        wl_registry_bind(wl_registry, name,
                                                                         &zwp_linux_explicit_synchronization_v1_interface, 1);
                        disp_source->use_explicit_sync = TPL_TRUE;
                        TPL_DEBUG("bind zwp_linux_explicit_synchronization_v1_interface");
+               } else {
+                       disp_source->use_explicit_sync = TPL_FALSE;
                }
        }
 }