Change-Id: I209b76c5badfb5c4881e8afd850e8b1db401d2a2
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
return TPL_ERROR_INVALID_PARAMETER;
}
+ if (surf_source->use_sync_fence && surf_source->fence_waiting_sources) {
+ TPL_DEBUG("twe_surface(%p) is waiting for all fences to be signaled.",
+ surf_source);
+ while (!__tpl_list_is_empty(surf_source->fence_waiting_sources)) {
+ __tpl_util_sys_yield();
+ }
+ }
+
TPL_LOG_T(BACKEND, "twe_surface(%p) will be destroyed in thread",
twe_surface);
surf_del_source = surf_source->surf_del_source;