From 480bf591c42d1fe1e77def21e2612926ea784d55 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Thu, 30 Nov 2017 20:06:50 +0900 Subject: [PATCH] tpl_wl_vk_thread: Added TRACE point to debug. Change-Id: Ia622b63760e5ec3f955eb3322a2d708e50ee0af1 Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 10 ++++++++++ src/tpl_wl_vk_thread.c | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 4c60f59..07b2d35 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1297,6 +1297,10 @@ __cb_buffer_release_callback(void *data, struct wl_proxy *wl_buffer) TPL_OBJECT_UNLOCK(&surf_source->obj); } + TRACE_ASYNC_END((int)tbm_surface, "[COMMIT ~ RELEASE] BO(%d)", + tbm_bo_export(tbm_surface_internal_get_bo( + tbm_surface, 0))); + TPL_LOG_T(BACKEND, "[REL] wl_buffer(%p) tbm_surface(%p) bo(%d)", buf_info->wl_buffer, tbm_surface, tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0))); @@ -1689,6 +1693,9 @@ _twe_thread_wl_vk_surface_commit(twe_wl_surf_source *surf_source, surf_source->swapchain_properties.height); wl_surface_commit(wl_surface); + TRACE_ASYNC_BEGIN((int)tbm_surface, "[COMMIT ~ RELEASE] BO(%d)", + tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0))); + buf_info->sync_timestamp++; TPL_LOG_T(BACKEND, "[COMMIT] wl_buffer(%p) tbm_surface(%p) bo(%d)", @@ -1781,6 +1788,9 @@ _twe_thread_wl_surface_commit(twe_wl_surf_source *surf_source, wl_surface_commit(wl_surface); + TRACE_ASYNC_BEGIN((int)tbm_surface, "[COMMIT ~ RELEASE] BO(%d)", + tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0))); + buf_info->need_to_commit = TPL_FALSE; TPL_LOG_T(BACKEND, "[COMMIT] wl_buffer(%p) tbm_surface(%p) bo(%d)", diff --git a/src/tpl_wl_vk_thread.c b/src/tpl_wl_vk_thread.c index 197b133..b917001 100644 --- a/src/tpl_wl_vk_thread.c +++ b/src/tpl_wl_vk_thread.c @@ -423,8 +423,10 @@ __tpl_wl_vk_wsi_surface_dequeue_buffer(tpl_surface_t *surface, if (lock_ret == TPL_ERROR_NONE) twe_display_unlock(wayland_vk_wsi_display->twe_display); TPL_OBJECT_UNLOCK(surface); + TRACE_BEGIN("WAIT_DEQUEUEABLE"); res = twe_surface_wait_dequeueable(wayland_vk_wsi_surface->twe_surface, timeout_ns); + TRACE_END(); TPL_OBJECT_LOCK(surface); lock_ret = twe_display_lock(wayland_vk_wsi_display->twe_display); -- 2.7.4