tpl_wayland_egl_thread: Added useful trace logs for vulkan. 83/169083/1
authorjoonbum.ko <joonbum.ko@samsung.com>
Fri, 5 Jan 2018 05:57:05 +0000 (14:57 +0900)
committerjoonbum.ko <joonbum.ko@samsung.com>
Fri, 2 Feb 2018 06:22:17 +0000 (15:22 +0900)
Change-Id: Ie37f9075a72856747c6259a73e3af381aec10ba8
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index 8d0d640..7704956 100644 (file)
@@ -1400,6 +1400,9 @@ _twe_surface_set_wl_buffer_info(twe_wl_surf_source *surf_source,
                        TPL_OBJECT_UNLOCK(&surf_source->obj);
                }
 
+               TRACE_MARK("[SET_BUFFER_INFO] BO(%d)",
+                                  tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0)));
+
                TPL_LOG_T(BACKEND,
                                  "[REUSE_BUF] buf_info(%p) tbm_surface(%p) bo(%d) (%dx%d) transform(%d)",
                                  buf_info, tbm_surface,
@@ -1493,6 +1496,8 @@ _twe_surface_set_wl_buffer_info(twe_wl_surf_source *surf_source,
                TPL_OBJECT_UNLOCK(&surf_source->obj);
        }
 
+       TRACE_MARK("[SET_BUFFER_INFO] BO(%d)",
+                          tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0)));
        TPL_LOG_T(BACKEND,
                          "[NEW_BUF] buf_info(%p) tbm_surface(%p) bo(%d) (%dx%d) transform(%d)",
                          buf_info, tbm_surface,
@@ -1610,6 +1615,8 @@ __cb_tdm_client_wait_vblank(tdm_client_vblank *vblank, tdm_error error,
                return;
        }
 
+       TRACE_ASYNC_END((int)surf_source, "WAIT_VBLANK");
+
        disp_source = surf_source->disp_source;
 
        surf_source->vblank_done = TPL_TRUE;
@@ -1690,9 +1697,10 @@ _twe_surface_wait_vblank(twe_wl_surf_source *surf_source)
                        __cb_tdm_client_wait_vblank,
                        (void *)surf_source);
 
-       if (tdm_err == TDM_ERROR_NONE)
+       if (tdm_err == TDM_ERROR_NONE) {
                surf_source->vblank_done = TPL_FALSE;
-       else {
+               TRACE_ASYNC_BEGIN((int)surf_source, "WAIT_VBLANK");
+       } else {
                TPL_ERR("Failed to tdm_client_vblank_wait. tdm_err(%d)", tdm_err);
                return TPL_ERROR_INVALID_OPERATION;
        }