wl_egl_display->presentation =
wl_registry_bind(wl_registry,
name, &wp_presentation_interface, 1);
- TPL_DEBUG("bind wp_presentation_interface");
+ TPL_LOG_D("[REGISTRY_BIND]",
+ "wl_egl_display(%p) bind wp_presentation_interface",
+ wl_egl_display);
} else if (strcmp(interface, "zwp_linux_explicit_synchronization_v1") == 0) {
char *env = tpl_getenv("TPL_EFS");
if (env && !atoi(env)) {
wl_registry_bind(wl_registry, name,
&zwp_linux_explicit_synchronization_v1_interface, 1);
wl_egl_display->use_explicit_sync = TPL_TRUE;
- TPL_DEBUG("bind zwp_linux_explicit_synchronization_v1_interface");
+ TPL_LOG_D("[REGISTRY_BIND]",
+ "wl_egl_display(%p) bind zwp_linux_explicit_synchronization_v1_interface",
+ wl_egl_display);
}
}
#endif
(tpl_wl_egl_display_t *)tpl_gsource_get_data(gsource);
tpl_gmutex_lock(&wl_egl_display->disp_mutex);
- TPL_DEBUG("[FINALIZE] wl_egl_display(%p) tpl_gsource(%p)",
+ TPL_LOG_D("[D_FINALIZE]", "wl_egl_display(%p) tpl_gsource(%p)",
wl_egl_display, gsource);
if (wl_egl_display->wl_initialized)
tpl_wl_egl_surface_t *wl_egl_surface = NULL;
if (!tizen_private) {
- TPL_LOG_B("WL_EGL", "[DESTROY_CB] Already destroyed surface");
+ TPL_LOG_D("[WL_EGL_WINDOW_DESTROY_CALLBACK]", "Already destroyed surface");
return;
}
commit_sync_fd = dup(wl_egl_surface->commit_sync.fd);
TRACE_MARK("[ONLY_DUP] commit_sync_fd(%d) dup(%d)",
wl_egl_surface->commit_sync.fd, commit_sync_fd);
- TPL_DEBUG("[DUP_COMMIT_SYNC] wl_egl_surface(%p) commit_sync_fd(%d) dup(%d)",
+ TPL_LOG_D("[COMMIT_SYNC][DUP]", "wl_egl_surface(%p) commit_sync_fd(%d) dup(%d)",
wl_egl_surface, wl_egl_surface->commit_sync.fd, commit_sync_fd);
tpl_gmutex_unlock(&wl_egl_surface->commit_sync.mutex);
return commit_sync_fd;
TRACE_MARK("[CREATE] commit_sync_fd(%d) dup(%d)",
wl_egl_surface->commit_sync.fd, commit_sync_fd);
- TPL_DEBUG("[CREATE_COMMIT_SYNC] wl_egl_surface(%p) commit_sync_fd(%d)",
+ TPL_LOG_D("[COMMIT_SYNC][CREATE]", "wl_egl_surface(%p) commit_sync_fd(%d)",
wl_egl_surface, commit_sync_fd);
tpl_gmutex_unlock(&wl_egl_surface->commit_sync.mutex);
presentation_sync_fd = dup(wl_egl_surface->presentation_sync.fd);
TRACE_MARK("[ONLY_DUP] presentation_sync_fd(%d) dup(%d)",
wl_egl_surface->presentation_sync.fd, presentation_sync_fd);
- TPL_DEBUG("[DUP_PRESENTATION_SYNC] wl_egl_surface(%p) presentation_sync_fd(%d) dup(%d)",
+ TPL_LOG_D("[PRESENTATION_SYNC][DUP]", "wl_egl_surface(%p) presentation_sync_fd(%d) dup(%d)",
wl_egl_surface, wl_egl_surface->presentation_sync.fd, presentation_sync_fd);
tpl_gmutex_unlock(&wl_egl_surface->presentation_sync.mutex);
return presentation_sync_fd;
presentation_sync_fd = dup(wl_egl_surface->presentation_sync.fd);
TRACE_MARK("[CREATE] presentation_sync_fd(%d) dup(%d)",
wl_egl_surface->presentation_sync.fd, presentation_sync_fd);
- TPL_DEBUG("[CREATE_PRESENTATION_SYNC] wl_egl_surface(%p) presentation_sync_fd(%d) dup(%d)",
+ TPL_LOG_D("[PRESENTATION_SYNC][CREATE]", "wl_egl_surface(%p) presentation_sync_fd(%d) dup(%d)",
wl_egl_surface, wl_egl_surface->presentation_sync.fd, presentation_sync_fd);
tpl_gmutex_unlock(&wl_egl_surface->presentation_sync.mutex);
"wl_egl_surface(%p) wl_surface(%p) tbm_queue(%p)",
wl_egl_surface, wl_egl_surface->wl_surface, tbm_queue);
} else {
- TPL_LOG_T("[DEACTIVATED]",
- " wl_egl_surface(%p) wl_surface(%p) tbm_queue(%p)",
- wl_egl_surface, wl_egl_surface->wl_surface, tbm_queue);
+ TPL_INFO("[DEACTIVATED]",
+ " wl_egl_surface(%p) wl_surface(%p) tbm_queue(%p)",
+ wl_egl_surface, wl_egl_surface->wl_surface, tbm_queue);
}
}
tpl_gmutex_lock(&wl_egl_surface->surf_mutex);
if (message == INIT_SURFACE) { /* Initialize surface */
- TPL_DEBUG("wl_egl_surface(%p) initialize message received!",
+ TPL_LOG_D("[MSG_RECEIVED]", "wl_egl_surface(%p) initialize message received!",
wl_egl_surface);
_thread_wl_egl_surface_init(wl_egl_surface);
wl_egl_surface->initialized_in_thread = TPL_TRUE;
tpl_gcond_signal(&wl_egl_surface->surf_cond);
} else if (message == ACQUIRABLE) { /* Acquirable */
- TPL_DEBUG("wl_egl_surface(%p) acquirable message received!",
+ TPL_LOG_D("[MSG_RECEIVED]", "wl_egl_surface(%p) acquirable message received!",
wl_egl_surface);
_thread_surface_queue_acquire(wl_egl_surface);
}
TPL_CHECK_ON_NULL_RETURN(wl_egl_surface);
tpl_gmutex_lock(&wl_egl_surface->surf_mutex);
- TPL_DEBUG("[FINALIZE] wl_egl_surface(%p) tpl_gsource(%p)",
+ TPL_LOG_D("[S_FINALIZE]", "wl_egl_surface(%p) tpl_gsource(%p)",
wl_egl_surface, gsource);
_thread_wl_egl_surface_fini(wl_egl_surface);
return;
}
- TPL_INFO("[QUEUE_CREATION]",
+ TPL_INFO("[QUEUE_CREATION][1/2]",
"wl_egl_surface(%p) wl_surface(%p) wl_tbm_client(%p)",
wl_egl_surface, wl_egl_surface->wl_surface,
wl_egl_display->wl_tbm_client);
- TPL_INFO("[QUEUE_CREATION]",
- "tbm_queue(%p) size(%d x %d) X %d format(%d)",
+ TPL_INFO("[QUEUE_CREATION][2/2]",
+ "wl_egl_surface(%p) tbm_queue(%p) size(%d x %d) X %d format(%d)",
+ wl_egl_surface,
wl_egl_surface->tbm_queue,
wl_egl_surface->width,
wl_egl_surface->height,
tpl_gthread_pause_in_idle(wl_egl_display->thread);
buffer_cnt = __tpl_list_get_count(wl_egl_surface->buffers);
- TPL_INFO("[BUFFER_CLEAR]", "BEGIN | wl_egl_surface(%p) buffer_cnt(%d)",
- wl_egl_surface, buffer_cnt);
while (!__tpl_list_is_empty(wl_egl_surface->buffers)) {
wl_egl_buffer = (tpl_wl_egl_buffer_t *)__tpl_list_pop_front(wl_egl_surface->buffers,
status = wl_egl_buffer->status;
- TPL_INFO("[BUFFER]","[%d/%d]| wl_egl_buffer(%p) tbm_surface(%p) status(%s)",
- ++idx, buffer_cnt, wl_egl_buffer,
+ TPL_INFO("[BUFFER_CLEAR]",
+ "[%d/%d] wl_egl_surface(%p) wl_egl_buffer(%p) tbm_surface(%p) status(%s)",
+ ++idx, buffer_cnt, wl_egl_surface, wl_egl_buffer,
wl_egl_buffer->tbm_surface,
status_to_string[status]);
if (need_to_release || need_to_cancel)
tbm_surface_internal_unref(wl_egl_buffer->tbm_surface);
}
- TPL_INFO("[BUFFER_CLEAR]", "END | wl_egl_surface(%p)", wl_egl_surface);
tpl_gthread_continue(wl_egl_display->thread);
}
enqueued_buffer->status < COMMITTED) {
tpl_result_t wait_result;
TPL_INFO("[DEQ_AFTER_RESET]",
- "waiting for previous wl_egl_buffer(%p) commit",
- enqueued_buffer);
+ "wl_egl_surface(%p) waiting for previous wl_egl_buffer(%p) commit",
+ wl_egl_surface, enqueued_buffer);
wait_result = tpl_gcond_timed_wait(&enqueued_buffer->cond,
&enqueued_buffer->mutex,
surface->frontbuffer = NULL;
wl_egl_surface->need_to_enqueue = TPL_TRUE;
wl_egl_surface->frontbuffer_activated = TPL_FALSE;
- TPL_INFO("[FRONTBUFFER RENDERING STOP]",
+ TPL_INFO("[FRONTBUFFER_RENDERING_STOP]",
"wl_egl_surface(%p) wl_egl_window(%p)",
wl_egl_surface, wl_egl_surface->wl_egl_window);
} else {
#if TIZEN_FEATURE_ENABLE
if (wl_egl_display->use_explicit_sync) {
*release_fence = wl_egl_buffer->release_fence_fd;
- TPL_DEBUG("wl_egl_surface(%p) wl_egl_buffer(%p) release_fence_fd(%d)",
+ TPL_LOG_D("[EXPLICIT_FENCE]", "wl_egl_surface(%p) wl_egl_buffer(%p) release_fence_fd(%d)",
wl_egl_surface, wl_egl_buffer, *release_fence);
wl_egl_buffer->release_fence_fd = -1;
if (surface->is_frontbuffer_mode && wl_egl_surface->is_activated) {
if (surface->frontbuffer == NULL) {
- TPL_INFO("[FRONTBUFFER RENDERING START]",
+ TPL_INFO("[FRONTBUFFER_RENDERING_START]",
"wl_egl_surface(%p) wl_egl_window(%p) bo(%d)",
wl_egl_surface, wl_egl_surface->wl_egl_window,
_get_tbm_surface_bo_name(tbm_surface));
TRACE_ASYNC_END(wl_egl_buffer->acquire_fence_fd, "FENCE WAIT fd(%d)",
wl_egl_buffer->acquire_fence_fd);
- TPL_DEBUG("[RENDER DONE] wl_egl_buffer(%p) tbm_surface(%p)",
- wl_egl_buffer, tbm_surface);
+ TPL_LOG_D("[RENDER DONE]", "wl_egl_surface(%p) wl_egl_buffer(%p) tbm_surface(%p)",
+ wl_egl_surface, wl_egl_buffer, tbm_surface);
tpl_gmutex_lock(&wl_egl_buffer->mutex);
wl_egl_buffer->status = WAITING_VBLANK;
- TPL_DEBUG("[FINALIZE] wl_egl_buffer(%p) wait_source(%p) fence_fd(%d)",
- wl_egl_buffer, wl_egl_buffer->waiting_source,
+ TPL_LOG_D("[FINALIZE]", "wl_egl_surface(%p) wl_egl_buffer(%p) wait_source(%p) fence_fd(%d)",
+ wl_egl_surface, wl_egl_buffer, wl_egl_buffer->waiting_source,
wl_egl_buffer->acquire_fence_fd);
close(wl_egl_buffer->acquire_fence_fd);
tpl_wl_egl_buffer_t *wl_egl_buffer = NULL;
TRACE_ASYNC_END((intptr_t)wl_egl_surface, "WAIT_VBLANK");
- TPL_DEBUG("[VBLANK] wl_egl_surface(%p)", wl_egl_surface);
+ TPL_LOG_D("[VBLANK_DONE]", "wl_egl_surface(%p)", wl_egl_surface);
if (error == TDM_ERROR_TIMEOUT)
TPL_WARN("[TDM_ERROR_TIMEOUT] It will keep going. wl_egl_surface(%p)",
tpl_gmutex_lock(&wl_egl_surface->presentation_sync.mutex);
- TPL_DEBUG("[FEEDBACK][PRESENTED] pst_feedback(%p) presentation_feedback(%p) bo(%d)",
+ TPL_LOG_D("[PRESENTED]", "pst_feedback(%p) presentation_feedback(%p) bo(%d)",
pst_feedback, presentation_feedback, pst_feedback->bo_name);
if (pst_feedback->pst_sync_fd != -1) {
tpl_gmutex_lock(&wl_egl_surface->presentation_sync.mutex);
- TPL_DEBUG("[FEEDBACK][DISCARDED] pst_feedback(%p) presentation_feedback(%p) bo(%d)",
+ TPL_LOG_D("[DISCARDED]", "pst_feedback(%p) presentation_feedback(%p) bo(%d)",
pst_feedback, presentation_feedback, pst_feedback->bo_name);
if (pst_feedback->pst_sync_fd != -1) {
"[FATAL] Failed to create wl_buffer");
TPL_INFO("[WL_BUFFER_CREATE]",
- "wl_egl_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
- wl_egl_buffer, wl_egl_buffer->wl_buffer,
+ "wl_egl_surface(%p) wl_egl_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
+ wl_egl_surface, wl_egl_buffer, wl_egl_buffer->wl_buffer,
wl_egl_buffer->tbm_surface);
#if TIZEN_FEATURE_ENABLE
zwp_linux_surface_synchronization_v1_set_acquire_fence(wl_egl_surface->surface_sync,
wl_egl_buffer->acquire_fence_fd);
- TPL_DEBUG("[SET_ACQUIRE_FENCE] wl_egl_surface(%p) tbm_surface(%p) acquire_fence(%d)",
+ TPL_LOG_D("[SET_ACQUIRE_FENCE][1/2]", "wl_egl_surface(%p) tbm_surface(%p) acquire_fence(%d)",
wl_egl_surface, wl_egl_buffer->tbm_surface, wl_egl_buffer->acquire_fence_fd);
close(wl_egl_buffer->acquire_fence_fd);
wl_egl_buffer->acquire_fence_fd = -1;
} else {
zwp_linux_buffer_release_v1_add_listener(
wl_egl_buffer->buffer_release, &zwp_release_listner, wl_egl_buffer);
- TPL_DEBUG("add explicit_sync_release_listener.");
+ TPL_LOG_D("[SET_ACQUIRE_FENCE][2/2]", "add explicit_sync_release_listener.");
}
}
#endif
TRACE_ASYNC_END(wl_egl_buffer->commit_sync_fd, "[COMMIT_SYNC] bo(%d)",
wl_egl_buffer->bo_name);
- TPL_DEBUG("[COMMIT_SYNC][SEND] wl_egl_surface(%p) commit_sync_fd(%d)",
+ TPL_LOG_D("[COMMIT_SYNC][SEND]", "wl_egl_surface(%p) commit_sync_fd(%d)",
wl_egl_surface, wl_egl_buffer->commit_sync_fd);
close(wl_egl_buffer->commit_sync_fd);
tpl_wl_egl_surface_t *wl_egl_surface = wl_egl_buffer->wl_egl_surface;
tpl_wl_egl_display_t *wl_egl_display = wl_egl_surface->wl_egl_display;
- TPL_INFO("[BUFFER_FREE]", "wl_egl_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
- wl_egl_buffer, wl_egl_buffer->wl_buffer, wl_egl_buffer->tbm_surface);
+ TPL_INFO("[BUFFER_FREE]", "wl_egl_surface(%p) wl_egl_buffer(%p) tbm_surface(%p) bo(%d)",
+ wl_egl_surface, wl_egl_buffer, wl_egl_buffer->tbm_surface, wl_egl_buffer->bo_name);
tpl_gmutex_lock(&wl_egl_surface->buffers_mutex);
if (wl_egl_surface->buffers) {
tpl_gmutex_lock(&wl_egl_surface->buffers_mutex);
buffer_cnt = __tpl_list_get_count(wl_egl_surface->buffers);
- TPL_INFO("[BUFFERS_INFO]", "wl_egl_surface(%p) buffer_cnt(%d)",
- wl_egl_surface, buffer_cnt);
node = __tpl_list_get_front_node(wl_egl_surface->buffers);
do {
if (!node) break;
wl_egl_buffer = (tpl_wl_egl_buffer_t *)__tpl_list_node_get_data(node);
- TPL_INFO("[INFO]",
- "[%d/%d] | wl_egl_buffer(%p) tbm_surface(%p) bo(%d) | status(%s)",
- ++idx, buffer_cnt, wl_egl_buffer, wl_egl_buffer->tbm_surface,
- wl_egl_buffer->bo_name,
+ TPL_INFO("[BUFFERS_INFO]",
+ "[%d/%d] wl_egl_surface(%p), wl_egl_buffer(%p) tbm_surface(%p) bo(%d) | status(%s)",
+ ++idx, buffer_cnt, wl_egl_surface, wl_egl_buffer,
+ wl_egl_buffer->tbm_surface, wl_egl_buffer->bo_name,
status_to_string[wl_egl_buffer->status]);
} while ((node = __tpl_list_node_next(node)));
tpl_gmutex_unlock(&wl_egl_surface->buffers_mutex);
wl_registry_bind(wl_registry, name,
&zwp_linux_explicit_synchronization_v1_interface, 1);
wl_vk_display->use_explicit_sync = TPL_TRUE;
- TPL_DEBUG("bind zwp_linux_explicit_synchronization_v1_interface");
+ TPL_LOG_D("[REGISTRY_BIND]",
+ "wl_vk_display(%p) bind zwp_linux_explicit_synchronization_v1_interface",
+ wl_vk_display);
}
}
#endif
(tpl_wl_vk_display_t *)tpl_gsource_get_data(gsource);
tpl_gmutex_lock(&wl_vk_display->disp_mutex);
- TPL_DEBUG("[FINALIZE] wl_vk_display(%p) tpl_gsource(%p)",
+ TPL_LOG_D("[D_FINALIZE]", "wl_vk_display(%p) tpl_gsource(%p)",
wl_vk_display, gsource);
if (wl_vk_display->wl_initialized)
status = wl_vk_buffer->status;
- TPL_DEBUG("[idx:%d] wl_vk_buffer(%p) tbm_surface(%p) status(%s)",
- idx, wl_vk_buffer,
- wl_vk_buffer->tbm_surface,
- status_to_string[status]);
+ TPL_INFO("[BUFFER_CLEAR]",
+ "[%d] wl_vk_surface(%p) wl_vk_buffer(%p) tbm_surface(%p) status(%s)",
+ idx, wl_vk_surface, wl_vk_buffer,
+ wl_vk_buffer->tbm_surface,
+ status_to_string[status]);
if (status >= ENQUEUED) {
tpl_bool_t need_to_wait = TPL_FALSE;
tpl_gmutex_lock(&wl_vk_surface->surf_mutex);
if (message == INIT_SURFACE) { /* Initialize surface */
- TPL_DEBUG("wl_vk_surface(%p) initialize message received!",
+ TPL_LOG_D("[MSG_RECEIVED]", "wl_vk_surface(%p) initialize message received!",
wl_vk_surface);
_thread_wl_vk_surface_init(wl_vk_surface);
wl_vk_surface->initialized_in_thread = TPL_TRUE;
tpl_gcond_signal(&wl_vk_surface->surf_cond);
} else if (message == CREATE_QUEUE) { /* Create tbm_surface_queue */
- TPL_DEBUG("wl_vk_surface(%p) queue creation message received!",
+ TPL_LOG_D("[MSG_RECEIVED]", "wl_vk_surface(%p) queue creation message received!",
wl_vk_surface);
if (_thread_swapchain_create_tbm_queue(wl_vk_surface)
!= TPL_ERROR_NONE) {
}
tpl_gcond_signal(&wl_vk_surface->surf_cond);
} else if (message == DESTROY_QUEUE) { /* swapchain destroy */
- TPL_DEBUG("wl_vk_surface(%p) swapchain destroy message received!",
+ TPL_LOG_D("[MSG_RECEIVED]", "wl_vk_surface(%p) swapchain destroy message received!",
wl_vk_surface);
_thread_swapchain_destroy_tbm_queue(wl_vk_surface);
tpl_gcond_signal(&wl_vk_surface->surf_cond);
} else if (message == ACQUIRABLE) { /* Acquirable message */
- TPL_DEBUG("wl_vk_surface(%p) acquirable message received!",
+ TPL_LOG_D("[MSG_RECEIVED]", "wl_vk_surface(%p) acquirable message received!",
wl_vk_surface);
if (_thread_surface_queue_acquire(wl_vk_surface)
!= TPL_ERROR_NONE) {
TPL_CHECK_ON_NULL_RETURN(wl_vk_surface);
tpl_gmutex_lock(&wl_vk_surface->surf_mutex);
- TPL_DEBUG("[FINALIZE] wl_vk_surface(%p) tpl_gsource(%p)",
+ TPL_LOG_D("[S_FINALIZE]", "wl_vk_surface(%p) tpl_gsource(%p)",
wl_vk_surface, gsource);
_thread_wl_vk_surface_fini(wl_vk_surface);
"wl_vk_surface(%p) wl_surface(%p) tbm_queue(%p)",
wl_vk_surface, wl_vk_surface->wl_surface, tbm_queue);
} else {
- TPL_LOG_T("[DEACTIVATED]",
- " wl_vk_surface(%p) wl_surface(%p) tbm_queue(%p)",
- wl_vk_surface, wl_vk_surface->wl_surface, tbm_queue);
+ TPL_INFO("[DEACTIVATED]",
+ " wl_vk_surface(%p) wl_surface(%p) tbm_queue(%p)",
+ wl_vk_surface, wl_vk_surface->wl_surface, tbm_queue);
}
}
int i;
for (i = 0; i < swapchain->properties.buffer_count; i++) {
if (swapchain->swapchain_buffers[i]) {
- TPL_DEBUG("unref tbm_surface(%p)", swapchain->swapchain_buffers[i]);
+ TPL_INFO("[UNTRACK_BUFFERS]", "[%d] wl_vk_surface(%p) sc(%p) tbm_surface(%p) bo(%d)",
+ i, wl_vk_surface, swapchain, swapchain->swapchain_buffers[i],
+ _get_tbm_surface_bo_name(swapchain->swapchain_buffers[i]));
tbm_surface_internal_unref(swapchain->swapchain_buffers[i]);
swapchain->swapchain_buffers[i] = NULL;
}
swapchain->create_done = TPL_TRUE;
TPL_INFO("[TBM_QUEUE_CREATED]",
- "wl_vk_surface(%p) wl_vk_swapchain(%p) tbm_queue(%p)",
+ "wl_vk_surface(%p) swapchain(%p) tbm_queue(%p)",
wl_vk_surface, swapchain, tbm_queue);
return TPL_ERROR_NONE;
if (swapchain->swapchain_buffers) {
for (int i = 0; i < swapchain->properties.buffer_count; i++) {
if (swapchain->swapchain_buffers[i]) {
- TPL_DEBUG("Stop tracking tbm_surface(%p)",
- swapchain->swapchain_buffers[i]);
+ TPL_INFO("[UNTRACK_BUFFERS]", "[%d] wl_vk_surface(%p) sc(%p) tbm_surface(%p) bo(%d)",
+ i, wl_vk_surface, swapchain, swapchain->swapchain_buffers[i],
+ _get_tbm_surface_bo_name(swapchain->swapchain_buffers[i]));
tbm_surface_internal_unref(swapchain->swapchain_buffers[i]);
swapchain->swapchain_buffers[i] = NULL;
}
for (i = 0; i < *buffer_count; i++) {
if (swapchain->swapchain_buffers[i]) {
- TPL_DEBUG("swapchain_buffers[%d] = tbm_surface(%p) bo(%d)",
- i, swapchain->swapchain_buffers[i],
+ TPL_INFO("[TRACK_BUFFERS]", "[%d] wl_vk_surface(%p) sc(%p) tbm_surface(%p) bo(%d)",
+ i, wl_vk_surface, swapchain, swapchain->swapchain_buffers[i],
_get_tbm_surface_bo_name(swapchain->swapchain_buffers[i]));
tbm_surface_internal_ref(swapchain->swapchain_buffers[i]);
}
#if TIZEN_FEATURE_ENABLE
if (wl_vk_surface->surface_sync) {
*release_fence = wl_vk_buffer->release_fence_fd;
- TPL_DEBUG("wl_vk_surface(%p) wl_vk_buffer(%p) release_fence_fd(%d)",
+ TPL_LOG_D("[EXPLICIT_FENCE]", "wl_vk_surface(%p) wl_vk_buffer(%p) release_fence_fd(%d)",
wl_vk_surface, wl_vk_buffer, *release_fence);
wl_vk_buffer->release_fence_fd = -1;
} else
tpl_wl_vk_buffer_t *wl_vk_buffer = NULL;
TRACE_ASYNC_END((intptr_t)wl_vk_surface, "WAIT_VBLANK");
- TPL_DEBUG("[VBLANK] wl_vk_surface(%p)", wl_vk_surface);
+ TPL_LOG_D("[VBLANK_DONE]", "wl_vk_surface(%p)", wl_vk_surface);
if (error == TDM_ERROR_TIMEOUT)
TPL_WARN("[TDM_ERROR_TIMEOUT] It will keep going. wl_vk_surface(%p)",
zwp_linux_surface_synchronization_v1_set_acquire_fence(wl_vk_surface->surface_sync,
wl_vk_buffer->acquire_fence_fd);
- TPL_DEBUG("[SET_ACQUIRE_FENCE] wl_vk_surface(%p) tbm_surface(%p) acquire_fence(%d)",
+ TPL_LOG_D("[SET_ACQUIRE_FENCE][1/2]", "wl_vk_surface(%p) tbm_surface(%p) acquire_fence(%d)",
wl_vk_surface, wl_vk_buffer->tbm_surface, wl_vk_buffer->acquire_fence_fd);
close(wl_vk_buffer->acquire_fence_fd);
wl_vk_buffer->acquire_fence_fd = -1;
} else {
zwp_linux_buffer_release_v1_add_listener(
wl_vk_buffer->buffer_release, &zwp_release_listner, wl_vk_buffer);
- TPL_DEBUG("add explicit_sync_release_listener.");
+ TPL_LOG_D("[SET_ACQUIRE_FENCE][2/2]", "add explicit_sync_release_listener.");
}
}
#endif