Fixed a bug related to presentation sync timestamp. 62/236262/2
authorJoonbum Ko <joonbum.ko@samsung.com>
Mon, 15 Jun 2020 07:25:27 +0000 (16:25 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 16 Jun 2020 04:58:54 +0000 (04:58 +0000)
Change-Id: I0fad572699eb008378b52f6abbd5c2edc3795e66
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index 6722970384e4d62f70dedfae64313053cf4ce33c..8012edc118c6c2f9b8e26d56be621d4bbd09ebfd 100755 (executable)
@@ -1346,11 +1346,17 @@ __cb_create_presentation_sync_fd(struct wl_egl_window *wl_egl_window, void *priv
        }
 
        if (surf_source->presentation_sync_timeline != -1) {
+               char name[32];
+               snprintf(name, 32, "p_sync_timeline:%d",
+                                surf_source->presentation_sync_timeline);
+
                g_mutex_lock(&surf_source->pst_mutex);
 
+               surf_source->presentation_sync_timestamp++;
+
                presentation_sync_fd = tbm_sync_fence_create(surf_source->presentation_sync_timeline,
-                                                                                          NULL,
-                                                                                          surf_source->presentation_sync_timestamp++);
+                                                                                          name,
+                                                                                          surf_source->presentation_sync_timestamp);
                TPL_DEBUG("[PRESENTATION_SYNC] surf_source(%p) timeline(%d) timestamp(%d) sync_fence(%d)",
                                  surf_source, surf_source->presentation_sync_timeline, surf_source->presentation_sync_timestamp,
                                  presentation_sync_fd);