TPL_WARN("Failed to create wl_buffer. wl_tbm_client(%p) tbm_surface(%p)",
wl_vk_display->wl_tbm_client, tbm_surface);
} else {
+ if (wl_vk_buffer->acquire_fence_fd == -1 ||
+ wl_vk_display->use_explicit_sync == TPL_FALSE) {
+ wl_buffer_add_listener(wl_vk_buffer->wl_buffer,
+ &wl_buffer_release_listener, wl_vk_buffer);
+ }
+
TPL_LOG_T("WL_VK",
"[WL_BUFFER_CREATE] wl_vk_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
wl_vk_buffer, wl_vk_buffer->wl_buffer, tbm_surface);
}
-
- if (wl_vk_buffer->acquire_fence_fd == -1 ||
- wl_vk_display->use_explicit_sync == TPL_FALSE) {
- wl_buffer_add_listener(wl_vk_buffer->wl_buffer,
- &wl_buffer_release_listener, wl_vk_buffer);
- }
}
if (!wl_vk_display->use_wait_vblank || wl_vk_surface->vblank_done)