disp_source->last_error = errno;
}
+static void
+_twe_print_buffer_list(twe_wl_surf_source *surf_source)
+{
+ int count = 0;
+ int idx = 0;
+ tpl_list_node_t *node = NULL;
+ tbm_surface_h tbm_surface = NULL;
+
+ /* vblank waiting list */
+ count = __tpl_list_get_count(surf_source->vblank_waiting_buffers);
+ TPL_DEBUG("VBLANK WAITING BUFFERS | surf_source(%p) list(%p) count(%d)",
+ surf_source, surf_source->vblank_waiting_buffers, count);
+
+ while ((!node &&
+ (node = __tpl_list_get_front_node(surf_source->vblank_waiting_buffers))) ||
+ (node && (node = __tpl_list_node_next(node)))) {
+ tbm_surface = (tbm_surface_h)__tpl_list_node_get_data(node);
+ TPL_DEBUG("VBLANK WAITING BUFFERS | %d | tbm_surface(%p) bo(%d)",
+ idx, tbm_surface,
+ tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0)));
+ idx++;
+ }
+
+ idx = 0;
+ node = NULL;
+
+ /* in use buffers list */
+ count = __tpl_list_get_count(surf_source->in_use_buffers);
+ TPL_DEBUG("DEQUEUED BUFFERS | surf_source(%p) list(%p) count(%d)",
+ surf_source, surf_source->in_use_buffers, count);
+
+ while ((!node &&
+ (node = __tpl_list_get_front_node(surf_source->in_use_buffers))) ||
+ (node && (node = __tpl_list_node_next(node)))) {
+ tbm_surface = (tbm_surface_h)__tpl_list_node_get_data(node);
+ TPL_DEBUG("DEQUEUED BUFFERS | %d | tbm_surface(%p) bo(%d)",
+ idx, tbm_surface,
+ tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0)));
+ idx++;
+ }
+
+ idx = 0;
+ node = NULL;
+
+ /* committed buffers list */
+ count = __tpl_list_get_count(surf_source->committed_buffers);
+ TPL_DEBUG("COMMITTED BUFFERS | surf_source(%p) list(%p) count(%d)",
+ surf_source, surf_source->committed_buffers, count);
+
+ while ((!node &&
+ (node = __tpl_list_get_front_node(surf_source->committed_buffers))) ||
+ (node && (node = __tpl_list_node_next(node)))) {
+ tbm_surface = (tbm_surface_h)__tpl_list_node_get_data(node);
+ TPL_DEBUG("COMMITTED BUFFERS | %d | tbm_surface(%p) bo(%d)",
+ idx, tbm_surface,
+ tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0)));
+ idx++;
+ }
+}
+
static gboolean
_twe_thread_wl_disp_prepare(GSource *source, gint *time)
{
twe_wl_surf_source *surf_source = (twe_wl_surf_source *)twe_surface;
tbm_surface_queue_error_e tsq_err = TBM_SURFACE_QUEUE_ERROR_NONE;
+ _twe_print_buffer_list(twe_surface);
+
if ((tsq_err = tbm_surface_queue_flush(surf_source->tbm_queue))
!= TBM_SURFACE_QUEUE_ERROR_NONE) {
TPL_ERR("[TIMEOUT_RESET] Failed to flush tbm_surface_queue(%p) tsq_err(%d)",