platform/core/uifw/libtpl-egl.git
3 years agoRemove dependency releated wayland-vulkan-protocol 57/263157/1
Joonbum Ko [Fri, 13 Aug 2021 03:17:00 +0000 (12:17 +0900)]
Remove dependency releated wayland-vulkan-protocol

Change-Id: Id33821ae95d98e84c1af38b429804ccf3e92850e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoMove unusing files to unused and remove from makefile. 56/263156/1
Joonbum Ko [Fri, 13 Aug 2021 02:02:40 +0000 (11:02 +0900)]
Move unusing files to unused and remove from makefile.

Change-Id: Ic24027a9e907cb064325a1c2690e820da17cd03a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agowayland-egl-tizen: Add a log output option. 55/263155/1
Joonbum Ko [Fri, 13 Aug 2021 01:53:02 +0000 (10:53 +0900)]
wayland-egl-tizen: Add a log output option.

Change-Id: I732410110ece931eb036b4398a45b8be143e36e4
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.11 68/261768/1 accepted/tizen/unified/20210802.135714 submit/tizen/20210727.093930 submit/tizen/20210802.011415
Joonbum Ko [Mon, 26 Jul 2021 04:16:14 +0000 (13:16 +0900)]
Package version up to 1.8.11

Change-Id: I19b4eabb56d6563d1c7a4bd1886a25d376d3f010
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoRemove unnecessary surf_mutex locking 64/261564/1
Joonbum Ko [Wed, 21 Jul 2021 07:53:14 +0000 (16:53 +0900)]
Remove unnecessary surf_mutex locking

 - This surf_mutex locking in buffer_clear
   can occur deadlock problem.

Change-Id: Ibd4fc7ff312c4ab96aa0db6c69d217979cac9622
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.10 25/260125/1 accepted/tizen/unified/20210622.125833 submit/tizen/20210621.073348
Joonbum Ko [Mon, 21 Jun 2021 02:12:06 +0000 (11:12 +0900)]
Package version up to 1.8.10

Change-Id: Ife001513e981d8ae2dae6dfedc5d7e210c0e873b
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix missing use of num_buffers when create tbm_queue. 24/260124/1
Joonbum Ko [Mon, 21 Jun 2021 02:11:34 +0000 (11:11 +0900)]
Fix missing use of num_buffers when create tbm_queue.

Change-Id: If02ac0b00d87c3a1da860eb69b3b361666ff90a6
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix incorrect use of can_dequeue return value. 23/260123/1
Joonbum Ko [Thu, 10 Jun 2021 05:36:02 +0000 (14:36 +0900)]
Fix incorrect use of can_dequeue return value.

Change-Id: Iac9ca1b9cd0a8d4749f10ee4dfd97f45a7f1a39a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoResolve build warning related to backend init functions. 36/259536/1
Joonbum Ko [Wed, 9 Jun 2021 03:20:44 +0000 (12:20 +0900)]
Resolve build warning related to backend init functions.

Change-Id: I08419d24c1411051029d4db6406682be0628db15
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd magic check to confirm WL_EGL_TIZEN private. 35/259535/1
Joonbum Ko [Tue, 8 Jun 2021 09:35:18 +0000 (18:35 +0900)]
Add magic check to confirm WL_EGL_TIZEN private.

Change-Id: I0f3663c027c4c3e2d14843296b94d81345b3580e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.9 14/259314/1 accepted/tizen/unified/20210609.140524 submit/tizen/20210604.110910 submit/tizen/20210607.072910
Joonbum Ko [Fri, 4 Jun 2021 06:55:36 +0000 (15:55 +0900)]
Package version up to 1.8.9

Change-Id: I68bc650bfe937a7e80c0ea73fa4b5a013cf020fd
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years ago Remove duplicate initialize. 13/259313/1
Joonbum Ko [Thu, 27 May 2021 10:56:35 +0000 (19:56 +0900)]
 Remove duplicate initialize.

Change-Id: Iebcb9c25dd42fe487dec172327f5161ff56ea0f1
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd null checking to prevent problem. 12/259312/1
Joonbum Ko [Tue, 25 May 2021 09:22:55 +0000 (18:22 +0900)]
Add null checking to prevent problem.

Change-Id: Icd94a00b015b5100e6beaa59d435731836a2d376
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoClarified thread message and corrected some bugs. 11/259311/1
Joonbum Ko [Thu, 27 May 2021 11:14:47 +0000 (20:14 +0900)]
Clarified thread message and corrected some bugs.

Change-Id: I63fec57eb66104c87757cf5f665e8160859bddc8
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix ws-testcase build issue: 04/259304/1
Tianhao Ni [Fri, 4 Jun 2021 05:42:48 +0000 (13:42 +0800)]
Fix ws-testcase build issue:

- Issue:
   undefined reference to '__tpl_display_choose_backend_wl_egl_thread'
   undefined refetence to '__tpl_display_choose_backend_wayland_vk_wsi'

- Fix:
   Replace __tpl_display_choose_backend_wl_egl_thread() with __tpl_display_choose_backend_wl_egl_thread2()
   Replace __tpl_display_choose_backend_wayland_vk_wsi() with __tpl_display_choose_backend_wayland_vk_wsi_thread()

Change-Id: I1d562bbaf37c4c45b238e221b125bdb42cc6db1a
Signed-off-by: Tianhao Ni <tianhao.ni@samsung.com>
3 years agoPackage version up to 1.8.8 51/258551/1
Joonbum Ko [Thu, 20 May 2021 05:37:32 +0000 (14:37 +0900)]
Package version up to 1.8.8

Change-Id: I32040f47e2a577cffcb248fcc2fa0c0dc9d16e93
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoExpand the condition of need_to_wait in buffer_clear. 50/258550/1
Joonbum Ko [Tue, 18 May 2021 08:28:29 +0000 (17:28 +0900)]
Expand the condition of need_to_wait in buffer_clear.

 - AS-IS : The need_to_wait flags is set to true under
          different conditions according to the use of
          explicit_sync.
 - PROBLEMS : A buffer that is not included in the condition
             may cause thread conflict.
 - TO-BE : The buffers whose status is from ENQUEUED to COMMITTED
          will be cleared after waiting until wl_surface_commit.

Change-Id: Ic75de641182cfcfec2df71b57a982e1e63a52fe8
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoEnhanced protection against fence waiting buffers. 49/258549/1
Joonbum Ko [Tue, 18 May 2021 06:38:21 +0000 (15:38 +0900)]
Enhanced protection against fence waiting buffers.

 - timeout value up to 50ms.
 - Modified to guarantee until the waiting buffer
  completes the operation through surf_mutex.

Change-Id: If0fd6de234f5f79369dee23d9cddda9cd961f882
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdded surface_vblanks list for safe destroy. 48/258548/1
Joonbum Ko [Mon, 17 May 2021 07:23:49 +0000 (16:23 +0900)]
Added surface_vblanks list for safe destroy.

 - If an error occurs in tdm_client_display,
  it is a problem that cannot be recovered,
  but it should not affect rendering.
 - In this case, destroy tdm_client and stop using wait_vblank.
 - However, a problem occurs when accessing vblank after tdm_client_destroy.
 - Therefore, the created vblanks must be destroyed first and then
  destroy the tdm_client.
 - The added surface_vblanks list is to trace the created vblanks.

Change-Id: I3eae60842761dd6cda0042ff941e0f0736633b4c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd tpl_surface_vblank_t to manage vblank object 47/258547/1
Joonbum Ko [Mon, 17 May 2021 05:37:14 +0000 (14:37 +0900)]
Add tpl_surface_vblank_t to manage vblank object

Change-Id: I56b54ccf7c22c9ef03c6973483ba1c0cb52b959d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.7 17/258117/2 submit/tizen/20210511.063731
Joonbum Ko [Tue, 11 May 2021 02:06:01 +0000 (11:06 +0900)]
Package version up to 1.8.7

Change-Id: I7cc41929a6be41e85a6d7f205411217339cdeb6a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix to prevent thread conflict. 38/258138/1
Joonbum Ko [Tue, 11 May 2021 06:08:19 +0000 (15:08 +0900)]
Fix to prevent thread conflict.

Change-Id: I946bd6bce80a3e6188ff9e6c060abb7634a7e9b0
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix so that wl_buffer is not added to the listener with null. 16/258116/1
Joonbum Ko [Tue, 11 May 2021 02:05:26 +0000 (11:05 +0900)]
Fix so that wl_buffer is not added to the listener with null.

Change-Id: I346a97a4dcb3dfe11413919efacac1c904cfc096
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.6 11/257811/1 accepted/tizen/unified/20210506.103530 submit/tizen/20210504.031804
Joonbum Ko [Mon, 3 May 2021 07:49:39 +0000 (16:49 +0900)]
Package version up to 1.8.6

Change-Id: I12bcd5b5c99b9a326697c1ea4f65d0c1c6f06269
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix wrong case checking to unreachable code. 10/257810/1
Joonbum Ko [Mon, 3 May 2021 07:48:35 +0000 (16:48 +0900)]
Fix wrong case checking to unreachable code.

Change-Id: Id5bc26ba2cb5eb9cdadae12d751750ae7d243a9e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.5 37/257737/1
Joonbum Ko [Fri, 30 Apr 2021 06:36:33 +0000 (15:36 +0900)]
Package version up to 1.8.5

Change-Id: Ie10549ac47f7c15bc87ac8a80b3bd07d217c3a04
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoBack up the legacy codes of wl_vk_thread to unused. 36/257736/1
Joonbum Ko [Fri, 30 Apr 2021 06:27:54 +0000 (15:27 +0900)]
Back up the legacy codes of wl_vk_thread to unused.

Change-Id: Ie9276cd997b89be2f558306daaee3e3eb3738be9
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix a problem when explicit_fence was not used. 35/257735/1
Joonbum Ko [Fri, 30 Apr 2021 06:20:04 +0000 (15:20 +0900)]
Fix a problem when explicit_fence was not used.

 - Wayland error logs are printed due to attempt to add
  the buffer release listener in duplicate.

Change-Id: I1c5653ea3802a5a901cbf7fa07df73f0a822afaf
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix so that error log is not printed when tpl_display is reused. 34/257734/1
Joonbum Ko [Thu, 29 Apr 2021 01:48:11 +0000 (10:48 +0900)]
Fix so that error log is not printed when tpl_display is reused.

Change-Id: Iab3be64d490dd0e8592dc57d413877e37e107fa1
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoDisabled the codes that is not being used now. 33/257733/1
Joonbum Ko [Thu, 29 Apr 2021 01:45:53 +0000 (10:45 +0900)]
Disabled the codes that is not being used now.

Change-Id: I48424781d5f3c5edafa205da7963401b60daecef
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoMake vulkan only uses the thread backend. 32/257732/1
Joonbum Ko [Thu, 29 Apr 2021 01:44:19 +0000 (10:44 +0900)]
Make vulkan only uses the thread backend.

Change-Id: Ia6e693f04811edd4759ddd6fa322327227e6aa2e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoMake the prefix of backend APIs shorten 31/257731/1
Joonbum Ko [Tue, 27 Apr 2021 10:51:22 +0000 (19:51 +0900)]
Make the prefix of backend APIs shorten

Change-Id: I8ccfcd5402ad9071854f7ea69695a553fe9e213c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoChange some internal functions to static 30/257730/1
Joonbum Ko [Tue, 27 Apr 2021 10:46:09 +0000 (19:46 +0900)]
Change some internal functions to static

Change-Id: I11f1394a62ed6b1a2f19a01364c0aa9a6aded16f
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd set_post_interval to set commit interval 29/257729/1
Joonbum Ko [Tue, 27 Apr 2021 10:41:10 +0000 (19:41 +0900)]
Add set_post_interval to set commit interval

Change-Id: I1f531f4240662ccfe5afef643052e99a830ae4d6
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement buffer commit/release 28/257728/1
Joonbum Ko [Tue, 27 Apr 2021 06:22:56 +0000 (15:22 +0900)]
Implement buffer commit/release

Change-Id: I7f6685b20da489603e9661333420a09980f93182
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement DEQ/CANCEL/ACQ/ENQ buffer. 27/257727/1
Joonbum Ko [Mon, 26 Apr 2021 10:35:31 +0000 (19:35 +0900)]
Implement DEQ/CANCEL/ACQ/ENQ buffer.

Change-Id: If00f9b4e7c2aedefc9b20b76ac7abb99b6e6202d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement swapchain create/destroy/get_swapchain_buffers. 26/257726/1
Joonbum Ko [Fri, 9 Apr 2021 05:24:31 +0000 (14:24 +0900)]
Implement swapchain create/destroy/get_swapchain_buffers.

Change-Id: Ic6b07b8247230409808db35ec308dbee2df5861c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement tpl_wl_vk_surface using tpl_gthread_utils. 25/257725/1
Joonbum Ko [Thu, 1 Apr 2021 07:22:02 +0000 (16:22 +0900)]
Implement tpl_wl_vk_surface using tpl_gthread_utils.

Change-Id: Ibb58ef10fa02fb6220453c5c18b7760a7a4d9994
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
Re-implement tpl_wl_vk_surface using tpl_gthread_utils

Change-Id: I59ce5fb2092f60956ac1a2322f701b4a610016fe
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agotpl_wl_vk_thread: Modified wl_vk_display to use tpl_gthread_util 24/257724/1
Joonbum Ko [Mon, 29 Mar 2021 02:07:47 +0000 (11:07 +0900)]
tpl_wl_vk_thread: Modified wl_vk_display to use tpl_gthread_util

Change-Id: I3fb5c37a1a2850a95d1218dc607f6c190e94da1c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoModified structures to be used in the vulkan backend. 23/257723/1
Joonbum Ko [Wed, 17 Mar 2021 09:47:54 +0000 (18:47 +0900)]
Modified structures to be used in the vulkan backend.

Change-Id: Ia5c4c0843b150f988416c38cefed569b13909272
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.4 48/256348/2 accepted/tizen/unified/20210402.004842 submit/tizen/20210401.081826
Joonbum Ko [Thu, 1 Apr 2021 07:52:12 +0000 (16:52 +0900)]
Package version up to 1.8.4

Change-Id: Icdb52e525fe619af52049250dbbc731e0334653d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix potential overflow issue of buffers array. 47/256347/2
Joonbum Ko [Thu, 1 Apr 2021 07:49:25 +0000 (16:49 +0900)]
Fix potential overflow issue of buffers array.

Change-Id: I4d32443eb936f5ed0f0706f9e8fe3d3ac5187624
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd missing line to return NULL when alloc failed. 46/256346/2
Joonbum Ko [Thu, 1 Apr 2021 07:24:03 +0000 (16:24 +0900)]
Add missing line to return NULL when alloc failed.

Change-Id: Ifa88e7a36fd19c144d50c9cec7604541d6aabf24
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.3 18/255918/1 accepted/tizen/unified/20210330.111307 submit/tizen/20210325.043850 submit/tizen/20210329.034130
Joonbum Ko [Thu, 25 Mar 2021 04:15:53 +0000 (13:15 +0900)]
Package version up to 1.8.3

Change-Id: Ibf44a2061e89f5b0c9841ebe3a2b9c81b424bd07
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoMake ready_to_commit to TRUE when acquire_fence_fd is not used. 17/255917/1
Joonbum Ko [Thu, 25 Mar 2021 04:13:51 +0000 (13:13 +0900)]
Make ready_to_commit to TRUE when acquire_fence_fd is not used.

 - Missig this line caused a serious problem where wl_surface_commit
  would not work if acquire_fence_fd was not used.

Change-Id: I22b610ad187d90b2d51cb73fa7e4913095997009
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFixed wrong use of NULL checking macro. 16/255916/1
Joonbum Ko [Thu, 25 Mar 2021 03:51:06 +0000 (12:51 +0900)]
Fixed wrong use of NULL checking macro.

Change-Id: I9d1d11823a15395dac38360aff25d9c991351f53
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoClose release_fence_fd when wl_egl_buffer freed. 15/255915/1
Joonbum Ko [Thu, 25 Mar 2021 03:46:10 +0000 (12:46 +0900)]
Close release_fence_fd when wl_egl_buffer freed.

 - The fenced_release event can be dispatched just before
  the wl_egl_buffer is freed.
   At this time, release_fence_fd delivered to fenced_release event
  may leak if it is not closed because wl_egl_buffer cannot be
  used and is freed.

Change-Id: I7584c518b955c83f632b2d5ea281272f8dd2b166
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoModified the log output from gsource_finalize. 14/255914/1
Joonbum Ko [Thu, 25 Mar 2021 01:36:18 +0000 (10:36 +0900)]
Modified the log output from gsource_finalize.

Change-Id: I491f012afb0aba638cb40b3f4f47840dfe36dac4
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd intended_destroy flag to destroy only when intended. 13/255913/1
Joonbum Ko [Wed, 24 Mar 2021 10:48:31 +0000 (19:48 +0900)]
Add intended_destroy flag to destroy only when intended.

 - G_IO_IN may occur in eventfd of finalizer source due to
  some unexpected errors.
   In this case, if gsource destroyed in unintended,
  a fatal problem may occur in thread.
 - The intended_destroy flag of the newly added to tpl_gsource
  will help the finalizer source to operate normally only if it is
  intended G_IO_IN.

Change-Id: I6dd6a2de7e3c4ff667f8d639e30783584e6e8cec
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd IO exception checking to reduce warning logs. 12/255912/1
Joonbum Ko [Wed, 24 Mar 2021 08:06:35 +0000 (17:06 +0900)]
Add IO exception checking to reduce warning logs.

 - When a problem occurs, there are cases where
  the result of g_source_query_unix_fd is (cond == 0).
 - Since too many warning logs may be output,
  exception handling was added to simply ignore
  it in this case.

Change-Id: I694c5916c82d0969a86db8207ad8a64224e2fb25
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd some logs to trace buffers. 11/255911/1
Joonbum Ko [Wed, 24 Mar 2021 07:31:52 +0000 (16:31 +0900)]
Add some logs to trace buffers.

Change-Id: I508922c4007f4ce7429f846bae7270ad54bfa364
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.2 28/255728/1 submit/tizen/20210323.050106
Joonbum Ko [Tue, 23 Mar 2021 04:50:08 +0000 (13:50 +0900)]
Package version up to 1.8.2

Change-Id: I26be40e9102731927b0b0134745a18d050f39f7d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix gem memory leak issue when client destroyed. 27/255727/1
Joonbum Ko [Tue, 23 Mar 2021 04:44:38 +0000 (13:44 +0900)]
Fix gem memory leak issue when client destroyed.

 - When surface_fini, the ENQUEUED state, the wl_egl_buffer
  was not properly processed.
 - As a result, the APP was terminated without
  tbm_surface_destroy, resulting in GEM Memory leak.

Change-Id: I5b9da2f256265c9f986ecc6ff4dcd963e096e30b
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.1 15/255115/1 submit/tizen/20210316.021228 submit/tizen/20210318.050409 submit/tizen/20210319.062422
Joonbum Ko [Fri, 12 Mar 2021 06:52:53 +0000 (15:52 +0900)]
Package version up to 1.8.1

Change-Id: I2560ac5a621f19981742bb46965f155913e27b99
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoEnable explicit_fence_sync feature defaultly. 14/255114/1
Joonbum Ko [Fri, 12 Mar 2021 04:22:16 +0000 (13:22 +0900)]
Enable explicit_fence_sync feature defaultly.

Change-Id: I44a63dc2df55d54372a8ddfe2392f618489ca1da
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix a problem with overwriting fence fd with -1. 92/255092/1
Joonbum Ko [Fri, 12 Mar 2021 02:17:25 +0000 (11:17 +0900)]
Fix a problem with overwriting fence fd with -1.

Change-Id: Iab7191b1ddd50a822b768529f577b1612f80e259
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix buffer_clear logic for explicit fence sync. 91/255091/1
Joonbum Ko [Fri, 12 Mar 2021 01:42:33 +0000 (10:42 +0900)]
Fix buffer_clear logic for explicit fence sync.

Change-Id: Idb76fa9179605c03b29c8dd36d9276f121d7753d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoDestroy buffer_release when wl_egl_buffer destroy. 90/255090/1
Joonbum Ko [Thu, 11 Mar 2021 08:56:37 +0000 (17:56 +0900)]
Destroy buffer_release when wl_egl_buffer destroy.

Change-Id: Iad683fc89b9d9a5e23a948f564a64ad572715140
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoMake shorten the name of backend function. 98/254998/1
Joonbum Ko [Thu, 11 Mar 2021 07:09:32 +0000 (16:09 +0900)]
Make shorten the name of backend function.

 - __tpl_wl_egl_surface_cancel_dequeued_buffer() is too long name.
 - it will be changed to below.
  __tpl_wl_egl_surface_cancel_buffer()

Change-Id: I05d6520097b965e316bbf8b9b9b2c1e78c62ecbb
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoChanged to wait until ENQUEUE becomes FENCE_SIGNALED. 97/254997/1
Joonbum Ko [Thu, 11 Mar 2021 07:03:14 +0000 (16:03 +0900)]
Changed to wait until ENQUEUE becomes FENCE_SIGNALED.

 - It is not safe to force close before being SIGNALED status
  because it is a fence fd delivered from driver.
 - Therefore, it is desirable to destroy all buffers
  when SIGNALED status is guaranteed.

Change-Id: Ifd2632b6aeb3d519031e79cb03118b306fcd49a6
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix some order of printing logs. 96/254996/1
Joonbum Ko [Thu, 11 Mar 2021 06:30:21 +0000 (15:30 +0900)]
Fix some order of printing logs.

Change-Id: Ie0830c48474305fc61f12f571bd5911109e17cd3
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoClear all buffers before destroying surf_source. 95/254995/1
Joonbum Ko [Thu, 11 Mar 2021 02:11:28 +0000 (11:11 +0900)]
Clear all buffers before destroying surf_source.

Change-Id: Ifc52b83af3eb193915090369f3e9985048a702fb
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix some wrong indentations 68/254868/2
Joonbum Ko [Wed, 10 Mar 2021 06:49:47 +0000 (15:49 +0900)]
Fix some wrong indentations

Change-Id: I936059980b41c6abf7fa9be58d9f41032c7a373f
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoRename old one by adding _legacy postfix. 95/254795/1
Joonbum Ko [Mon, 8 Mar 2021 08:46:31 +0000 (17:46 +0900)]
Rename old one by adding _legacy postfix.

Change-Id: I7a69b027438ce99044d0842b971809efa61d49e3

3 years agoAdd string_to_status to print status logs as string. 94/254794/1
Joonbum Ko [Thu, 4 Mar 2021 03:58:28 +0000 (12:58 +0900)]
Add string_to_status to print status logs as string.

Change-Id: I2166c284714a70a5c5c82a446e00e9e22472aa6a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd mutex lock/unlock before when clear mutex. 93/254793/1
Joonbum Ko [Thu, 4 Mar 2021 01:36:02 +0000 (10:36 +0900)]
Add mutex lock/unlock before when clear mutex.

Change-Id: Ibeed901734d50be64fce2843ee93982e4071a5cf
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoUse tpl_gcond_timed_wait to prevent deadlock. 92/254792/1
Joonbum Ko [Wed, 3 Mar 2021 03:18:49 +0000 (12:18 +0900)]
Use tpl_gcond_timed_wait to prevent deadlock.

 - There may be cases where the ddk terminates
  without sending a fence release signal.
 - In such a case, waiting for signaled with
  tpl_gcond_wait() may result in deadlock.
 - The newly added tpl_gcond_timed_wait() is used to
  force release if a signal does not come within 16ms.

Change-Id: I11801bb9f8ff4450a00b12656694940e28121a69
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd a new tpl_gthread API to use g_cond_wait_until. 91/254791/1
Joonbum Ko [Wed, 3 Mar 2021 02:21:31 +0000 (11:21 +0900)]
Add a new tpl_gthread API to use g_cond_wait_until.

Change-Id: I7187b036fa58cbe7182659b015a3cb0d5eb56966
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFixed a problem occured by use_wait_vblank exception. 90/254790/1
Joonbum Ko [Wed, 3 Mar 2021 01:57:25 +0000 (10:57 +0900)]
Fixed a problem occured by use_wait_vblank exception.

Change-Id: Id7ba6ab41d7fef4441cf3a03ef63074c6d2c0256
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd INFO logs at finalize. 89/254789/1
Joonbum Ko [Fri, 5 Feb 2021 06:51:39 +0000 (15:51 +0900)]
Add INFO logs at finalize.

Change-Id: I26aa6c7b35899b4aa29c2e39d2966c688ccce051
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFree the list vblank_waiting_buffers at surface_fini 88/254788/1
Joonbum Ko [Fri, 5 Feb 2021 06:34:07 +0000 (15:34 +0900)]
Free the list vblank_waiting_buffers at surface_fini

Change-Id: I92b9911097b88c10f6b951ab531dba7127efe5de
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoExpand the usage of wl_egl_buffer. 87/254787/1
Joonbum Ko [Fri, 5 Feb 2021 06:25:49 +0000 (15:25 +0900)]
Expand the usage of wl_egl_buffer.

Change-Id: Iedfae926e448e45660acca5b5cc76168f4bf4960
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoDelete unnecessary parameter of tpl_gthread_destroy 86/254786/1
Joonbum Ko [Fri, 5 Feb 2021 05:28:17 +0000 (14:28 +0900)]
Delete unnecessary parameter of tpl_gthread_destroy

Change-Id: I1e7871e7a101daf0bc0d3fa0ddd7e4b847433752
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix wrong checking 85/254785/1
Joonbum Ko [Fri, 5 Feb 2021 03:49:01 +0000 (12:49 +0900)]
Fix wrong checking

Change-Id: If17ca7b9bde4ab767298d8664993f1a3fdc31f87
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix leak in presentation sync fd. 84/254784/1
Joonbum Ko [Fri, 5 Feb 2021 03:46:14 +0000 (12:46 +0900)]
Fix leak in presentation sync fd.

 - The part related to presentation feedback and sync fd,
  which was a member of wl_egl_buffer, was separated into
  an independent structure pst_feedback.

Change-Id: Ice9604b306923afdd93871380084879509f5e6ae
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoSet presentation/commit_sync_fd of wl_egl_buffer 83/254783/1
Joonbum Ko [Thu, 4 Feb 2021 09:23:24 +0000 (18:23 +0900)]
Set presentation/commit_sync_fd of wl_egl_buffer

Change-Id: Ib0140c1b31beabffa939cae10cc04bebccb00d5c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix some wrong implementations. 82/254782/1
Joonbum Ko [Thu, 4 Feb 2021 06:19:29 +0000 (15:19 +0900)]
Fix some wrong implementations.

 - wl_egl_surface->need_to_enqueue should be
  initialized to TPL_TRUE at first time.
 - If release_fence, which is from tpl_surface_dequeue,
  is not null and surface_sync is not used,
   it should be initialized to -1.
 - _thread_wl_surface_commit should be called only if
  there is a buffer in vblank_waiting_buffers
  when vblank event occurs.
 - Some debug logs were added.

Change-Id: I8dc72c5b0ddbb0d38e149d809191620691caf698
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix a wrong checking 81/254781/1
Joonbum Ko [Wed, 3 Feb 2021 07:27:38 +0000 (16:27 +0900)]
Fix a wrong checking

Change-Id: Ie636078b305fc7b4c0a6f234e37de74a04d63477
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd missed operation for using wl_tbm_client. 80/254780/1
Joonbum Ko [Wed, 3 Feb 2021 07:25:52 +0000 (16:25 +0900)]
Add missed operation for using wl_tbm_client.

Change-Id: I942dbb918aa0dec72969751b77a2ea45552df53a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoChange the order of creation of tdm_source. 79/254779/1
Joonbum Ko [Wed, 3 Feb 2021 01:27:03 +0000 (10:27 +0900)]
Change the order of creation of tdm_source.

Change-Id: I3bdfa3db71ed6a0dbacda4cf5a56d2ea81840d9e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoChange to use buffers array instead of tpl_list. 78/254778/1
Joonbum Ko [Mon, 1 Feb 2021 03:25:02 +0000 (12:25 +0900)]
Change to use buffers array instead of tpl_list.

 - There is no need to maintain the tpl_list
  which was divided according to usage and divided into several.
 - One wl_egl_surface->buffers is created,
  but each buffer has a buffer_status.

Change-Id: I4d148fcbb2e13fab9d0904b2ab1b61604ee5895a
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoCorrected syntax errors 77/254777/1
Joonbum Ko [Wed, 27 Jan 2021 07:20:48 +0000 (16:20 +0900)]
Corrected syntax errors

Change-Id: Id7a41946e66e13dd6b850c38636bcfbab743581e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoFix some build problems of utils_gthread 76/254776/1
Joonbum Ko [Wed, 27 Jan 2021 03:44:03 +0000 (12:44 +0900)]
Fix some build problems of utils_gthread

Change-Id: I3c7e46a2196286664f4284c466b943cbf8ed1ba7
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement related to wl_egl_buffer 75/254775/1
Joonbum Ko [Wed, 20 Jan 2021 10:58:00 +0000 (19:58 +0900)]
Implement related to wl_egl_buffer

Change-Id: I89ecb28818c6a209455c5dd9f1d90e72a4a038a9
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement backend surface of tpl_wl_egl_thread. 74/254774/1
Joonbum Ko [Wed, 6 Jan 2021 04:37:15 +0000 (13:37 +0900)]
Implement backend surface of tpl_wl_egl_thread.

Change-Id: I391559ab9ebf6f926a6242795b7b5871b7ecf34f
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdded message argunment to thread dispatch callback. 73/254773/1
Joonbum Ko [Wed, 6 Jan 2021 06:46:31 +0000 (15:46 +0900)]
Added message argunment to thread dispatch callback.

Change-Id: I37c39032839c0e598006ed29ae31ea5ca1b66207
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoRename tpl_gsource_send_event to tpl_gsource_send_message. 72/254772/1
Joonbum Ko [Wed, 6 Jan 2021 06:26:35 +0000 (15:26 +0900)]
Rename tpl_gsource_send_event to tpl_gsource_send_message.

Change-Id: Ib52508bd46ed588a9ce7893c9dae2d6f61681bfa
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdded argument to function tpl_gsource_destroy 71/254771/1
Joonbum Ko [Tue, 5 Jan 2021 04:04:29 +0000 (13:04 +0900)]
Added argument to function tpl_gsource_destroy

 - In an exceptional situation, there are cases where
  tpl_gsource_destroy should be called inside gthread.
 - In this case, if a source whose type is SOURCE_TYPE_NORMAL
  tries to destroy through finalizer, deadlock may occur.
   Therefore, when destroying in the same thread,
  destroy_in_thread must be set to FALSE.

Change-Id: I53a7b376f6cc12fbab12ec6d7bf6cc8e812eaa87
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdded missing gsource_destroy for tdm source. 70/254770/1
Joonbum Ko [Tue, 5 Jan 2021 03:48:17 +0000 (12:48 +0900)]
Added missing gsource_destroy for tdm source.

Change-Id: I4ee2813d3f7d19c2ee0467d79931eb54ff259386
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years ago Add finalizer source to tpl_gsource 69/254769/1
Joonbum Ko [Mon, 28 Dec 2020 12:10:00 +0000 (21:10 +0900)]
 Add finalizer source to tpl_gsource

  - The finalizer source can only be had when
   the type of tpl_gsource is SOURCE_TYPE_NORMAL.
  - The finalizer allows a source of NORMAL type
   to be safely finalized inside a thread.

Change-Id: I143b9fe52bc38b65f7649115b3a757b572ce1cd0
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd new enum type tpl_gsource_type_t. 68/254768/1
Joonbum Ko [Mon, 28 Dec 2020 07:00:26 +0000 (16:00 +0900)]
Add new enum type tpl_gsource_type_t.

 - tpl_gsource_type_t can be classified into 4 enums below

  SOURCE_TYPE_UNKNOWN : not specified. it will be classified to NORMAL
  SOURCE_TYPE_NORMAL : normal source
  SOURCE_TYPE_DISPOSABLE : disposable source
  SOURCE_TYPE_FINALIZER : disposable source to finalize normal source.

Change-Id: I8a570929642e98ea89d20f6c63f21f7d96574c27
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplement display backend at tpl_wl_egl.c 67/254767/1
Joonbum Ko [Mon, 9 Nov 2020 05:20:05 +0000 (14:20 +0900)]
Implement display backend at tpl_wl_egl.c

Change-Id: I1a25d1d09eb7c3baf308e085d8dd690588f487f2
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdded an API to check io condtion. 66/254766/1
Joonbum Ko [Mon, 9 Nov 2020 05:19:52 +0000 (14:19 +0900)]
Added an API to check io condtion.

Change-Id: I493b57bd93096fe433cd6db521563cacd8d47a3c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoImplemented initial tpl_utils_gthread. 65/254765/1
Joonbum Ko [Thu, 22 Oct 2020 07:55:12 +0000 (16:55 +0900)]
Implemented initial tpl_utils_gthread.

 - Thread-related functions included in tpl_wayland_egl_thread
  have been separated with util.

Change-Id: Ia75d1410e20241d8994e0bf55f7e6bc50016278c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoSeparated unused files to 'unused' 64/254764/1
Joonbum Ko [Tue, 13 Oct 2020 07:12:09 +0000 (16:12 +0900)]
Separated unused files to 'unused'

Change-Id: I198e142f772360a9137972e38145c201eae9f3b7
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoPackage version up to 1.8.0 81/250281/1 accepted/tizen/unified/20201228.130123 submit/tizen/20201223.060207 submit/tizen/20201224.062748
Joonbum Ko [Wed, 2 Dec 2020 09:24:36 +0000 (18:24 +0900)]
Package version up to 1.8.0

Change-Id: I35749e4d35e17444aa5bc23d87567dd619f2272b
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd null checking to resolve dereference problem. 02/250202/2
Joonbum Ko [Tue, 22 Dec 2020 04:25:37 +0000 (13:25 +0900)]
Add null checking to resolve dereference problem.

Change-Id: I847db94a26f97573489c39793401861d014e81c9
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoChange log tag for basic info to always be displayed to TPL_INFO 32/249932/1
Joonbum Ko [Thu, 17 Dec 2020 10:52:14 +0000 (19:52 +0900)]
Change log tag for basic info to always be displayed to TPL_INFO

Change-Id: Ifedf01d5459b848715c7e8664a57c5308ed22080
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd a new log TPL_INFO. 31/249931/1
Joonbum Ko [Thu, 17 Dec 2020 10:50:24 +0000 (19:50 +0900)]
Add a new log TPL_INFO.

Change-Id: I549db8c4b447c6bcc3c35fe52a8782e4b470aa9e
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
3 years agoAdd internal function to get bo name from tbm_surface 98/249898/1
Joonbum Ko [Thu, 17 Dec 2020 07:43:40 +0000 (16:43 +0900)]
Add internal function to get bo name from tbm_surface

Change-Id: I467f724d531d0a3c3b6de1d8568f4632bc8960b9
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>