Add new API checks if fence sync is available 95/287395/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 27 Jan 2023 11:08:05 +0000 (20:08 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 27 Jan 2023 11:08:08 +0000 (20:08 +0900)
commit2325eb727a61308e6b0da7eb77afc39440dbeb46
tree91945a0b852224ef8da6fdfcf718d6992231f3a3
parentc32a3c244a9bc923b56aaade266be6a6f72dd9bd
Add new API checks if fence sync is available

/**
 * Check the surface can support fence sync mechanism.
 *
 * It is recommended that checking fence sync is available
 * for every frame because the results may change depending on
 * frontbuffer rendering is activated or not.
 *
 * @param surface surface to check fence sync is available.
 * @return TPL_TRUE if tpl_surface can support it.
 */
tpl_bool_t
tpl_surface_fence_sync_is_available(tpl_surface_t *surface);

 - This API helps DDK to determine whether to deliver the acquire_fence
  to signal the render complete when call the surface_enqueue.
 - In backend where waiting fence is not implemented,
  the result of fixed to TPL_FALSE will be returned.
 - The result from the backend with the waiting fence implementation
  depends on whether the frontbuffer rendering is activated.

Change-Id: I779718fdc7e8efc7890e17b0d4df4d81974a7907
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl.h
src/tpl_internal.h
src/tpl_surface.c