Fixed a bug related to render sync fd. 64/241364/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 19 Aug 2020 10:41:16 +0000 (19:41 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Wed, 19 Aug 2020 10:47:10 +0000 (19:47 +0900)
commita59d74fb5048cbbfa2fbd16a093fb63d877c13e7
tree15ea57d4dc630dc339be4a2e83f3c807038fe5f7
parent1914136d33cf0a30dc31af98629a7fc0b6b06255
Fixed a bug related to render sync fd.

 - Very occasionally, when twe_thread is pushed down by scheduling,
  a sync_fd cannot be attached to twe_thread.
 - In this case, queue_can_acquire and render_done_cnt are different
  and the commit is delayed by one frame.
 - This problem may cause can_dequeue_timeout
  depending on the hwc situation.
 - Even if queue_flush is performed after can_dequeue_timeout,
  the commit latency cannot be restored until another interrupt occurs.

Change-Id: I32bc48d523e815a944cbfb935277adc1bcc2bf44
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c