tpl_gmutex_unlock(&wl_egl_buffer->mutex);
+ tpl_gmutex_lock(&wl_egl_surface->surf_mutex);
+ wl_egl_surface->last_enq_buffer = tbm_surface;
+ tpl_gmutex_unlock(&wl_egl_surface->surf_mutex);
+
tsq_err = tbm_surface_queue_enqueue(wl_egl_surface->tbm_queue,
tbm_surface);
if (tsq_err != TBM_SURFACE_QUEUE_ERROR_NONE) {
return TPL_ERROR_INVALID_OPERATION;
}
- tpl_gmutex_lock(&wl_egl_surface->surf_mutex);
- wl_egl_surface->last_enq_buffer = tbm_surface;
- tpl_gmutex_unlock(&wl_egl_surface->surf_mutex);
-
tbm_surface_internal_unref(tbm_surface);
TRACE_ASYNC_END((intptr_t)tbm_surface, "[DEQ]~[ENQ] BO_NAME:%d", bo_name);