tpl_vk_wsi_thread: Increased the ref_cnt of swapchain_buffers. 45/189145/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 13 Sep 2018 09:47:35 +0000 (18:47 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 14 Sep 2018 01:55:41 +0000 (10:55 +0900)
commite142edc633335129f6d00b452a7cd3730c331d44
treea622e5c9006755b5cf488200fab8bb865a75fe61
parent534d18b352d930c5dea62cda349d2e4b7e6a399d
tpl_vk_wsi_thread: Increased the ref_cnt of swapchain_buffers.

 - vulkan-wsi-tizen creates vkImage(s) from the swapchain_buffers obtained
  from the tpl_surface_get_swapchain_buffers() API.

 - If the queue_reset occurs in the event thread, then swapchain_buffers that
  have already been acquired by wsi will be destroyed, which can cause problems.

 - Therefore, even if queue_reset occurs in event_thread,
  TPL must increase ref_cnt of swapchain_buffers so that it is valid
  until swapchain is destroyed.

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