joonbum.ko [Wed, 27 Dec 2017 01:46:04 +0000 (10:46 +0900)]
tpl_wl_vk_thread: Enqueue tbm_surface before set sync_fd.
Change-Id: I6e1d29275448aa43bc1232545510553c1ae2cd4a
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 18 Dec 2017 06:45:05 +0000 (15:45 +0900)]
tpl_wayland_egl_thread: Fixed vblank operation in FIFO mode.
- Do not add a vblank_wait when there is already a buffer waiting for vblank.
Change-Id: If15cdf031de5214280285543f32673f73ef92b58
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 15 Dec 2017 08:36:06 +0000 (17:36 +0900)]
tpl_wayland_egl_thread: Implemented sync_draw_source.
- One sync_draw_source is created for each buffer which is enqueued to tbm_queue.
- sync_draw_source will be attached to vk_sub_thread.
- It is created when set sync_fence_fd and blocking waits in vk_sub_thread until fence is released.
Change-Id: I1aba360f52a2c6d245bb52c34c42a465dacc5215
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 3 Jan 2018 09:06:17 +0000 (18:06 +0900)]
tpl_wayland_egl_thread: Added an exception checking.
Change-Id: Id3562d0832f7ab5d911dd83d9b7571e349a62751
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 15 Dec 2017 02:48:31 +0000 (11:48 +0900)]
tpl_wayland_egl_thread: Added parameter twe_surface_h to twe_surface_set_sync_fd.
Change-Id: Ib448d8acf4fe218a208506bba90003f9466d1273
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 14 Dec 2017 07:19:39 +0000 (16:19 +0900)]
tpl_wayland_egl_thread: Implemented sub_thread for sync drawing.
- This sub_thread for vulkan swapchain is temporary feature.
- It will be destoryed when kernel can supports polling sync_fd.
- tbm_sync_fence_wait() is blocking call and it will be called in this
vk_sub_thread.
Change-Id: I73cfd513cd4540266fdc728f3b7b66a4905c5fdf
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Wed, 3 Jan 2018 06:16:05 +0000 (15:16 +0900)]
tpl_wayland_egl: Add necessity check for buffer release
On buffer release cb, there was no checking mechanism to check if this
buffer needs to be released or not.
This patch will add checking if this buffer has to be released or not.
Therefore, unnecessary buffer release cb will be detected and handled
correctly.
Change-Id: I08224b2eeca1cc97b685c95ce5fb06981f37909c
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Fri, 15 Dec 2017 10:09:32 +0000 (19:09 +0900)]
tc: Apply gcov on tpl-test
Change-Id: Ia4d65ce73d4d34393203a9883f6f55bf4a71afc7
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Fri, 15 Dec 2017 10:04:12 +0000 (19:04 +0900)]
build: Add ENABLE_TPL_TEST_GCOV option on spec
Change-Id: I984348d96269bb8230cd41141d556bd76b2447be
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Fri, 15 Dec 2017 10:03:11 +0000 (19:03 +0900)]
build: Add support for gcov
Change-Id: I4a70f6180469514dd68e7ed545fdff4d3e2dd312
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Fri, 15 Dec 2017 07:20:11 +0000 (16:20 +0900)]
build: Add output variable for configuring build setting of wayland-egl
Change-Id: I28ca6958910ae9de0c49854b950b972dfb01a084
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 13 Dec 2017 12:28:16 +0000 (21:28 +0900)]
tc: Make tpl-test backend choosable
Change-Id: I2bac7c16fa4087edf1930e1cde14971af9fe149f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 13 Dec 2017 12:27:16 +0000 (21:27 +0900)]
tc: Apply config.backend on TPLWayland
Change-Id: I40a1f898d76b1fac772ce42a29b1ee71deae38b7
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 13 Dec 2017 12:20:50 +0000 (21:20 +0900)]
tc: Add parsing backend functionality on Config parsing function
Change-Id: Ibbabb404114ebad01fb695ba8aeeb5ded5182d20
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 13 Dec 2017 12:10:08 +0000 (21:10 +0900)]
tc: Add member variable for choosing backend on Config
Change-Id: Ifd04a8f8c5840248d234b1b2fdb82d28b598f4ee
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 13 Dec 2017 13:10:48 +0000 (22:10 +0900)]
tpl_wayland_egl_thread: Replace unnecessary internal header with public one
Change-Id: I1307adf16f3a3373de8d5da746d8756823083481
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 13 Dec 2017 03:08:51 +0000 (12:08 +0900)]
tpl_wayland_egl_thread: Add necessity check for buffer release
On buffer release cb, there was no checking mechanism to check if this
buffer needs to be released or not.
This patch will add checking if this buffer has to be released or not.
Therefore, unnecessary buffer release cb will be detected and handled
correctly.
Change-Id: I51b9d614da44fac4919539749612ca024b56aa9a
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Tue, 5 Dec 2017 08:04:17 +0000 (17:04 +0900)]
Package version up tp 1.5.0
- minor version up to 5 from 4. (4 -> 5)
- minor version is separated from tizen_4.0
Change-Id: I5f5b7eff3a60e32fc1437f1f91a7d0393330e857
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 30 Nov 2017 11:20:55 +0000 (20:20 +0900)]
tpl_wayland_egl_thread: Add tbm_surface_queue_release on buffer flush cb
This patch fixes the case that unnecessary buffer release cb is called
after buffer flush.
Change-Id: Iaa2023ecb6d990815e89b63a48f6709e694bbaeb
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 30 Nov 2017 11:06:50 +0000 (20:06 +0900)]
tpl_wl_vk_thread: Added TRACE point to debug.
Change-Id: Ia622b63760e5ec3f955eb3322a2d708e50ee0af1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 30 Nov 2017 05:34:26 +0000 (14:34 +0900)]
tpl_wayland_egl_thread: Fixed to work with IMMEDIATE in case vblank creation failed.
Change-Id: I3c5a8addf4a3b2ab4cf25c8bccfc66bcddfebb02
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 29 Nov 2017 03:00:29 +0000 (12:00 +0900)]
tpl_wayland_egl_thread: Added the missing code to allocate list.
- vblank_waiting_buffers list is needed to support FIFO & FIFO_RELAXED modes.
Change-Id: I93a90ad4711bcb8f13640cc0942dc4175cdff8cc
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 28 Nov 2017 10:14:03 +0000 (19:14 +0900)]
tpl_wayland_egl_thread: Modified backend name for printing debug logs.
- It will be optimized.
Change-Id: Iae60aa3a4e7d7f0b55c332b69a92d9e26c8ce69b
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 14 Nov 2017 02:48:51 +0000 (11:48 +0900)]
tpl_wl_vk_thread: Added handling for reset of tbm_surface_queue.
- This modification is for HWC conversion in reserved memory situations.
Change-Id: I024111e6963fc91b29a888f3d7434e21509c71f8
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 13 Nov 2017 06:24:51 +0000 (15:24 +0900)]
tpl: Added internal functions to manage tpl_surface in runtime.
Change-Id: Id9499bc999f7f147687838bbaf2b3191afcacb2a
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 13 Nov 2017 05:03:32 +0000 (14:03 +0900)]
tpl_wl_vk_thread: Added reset callback to tbm_queue for HWC.
- Modified the tbm_queue to create from wayland_tbm_client to enable HWC.
- Added reset callback and flag so that the client knows the reset via the tpl_surface_validate() function.
Change-Id: I03dca08bb0c8618ec658dc4ebc226465167361ec
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 8 Nov 2017 09:59:27 +0000 (18:59 +0900)]
tpl_wayland_egl_thread: Modified the buffer_info to wait for draw done without using sub-thread.
- twe_thread can not process any events while it is waiting for buffer draw done.
- This is a temporary structure for guaranteeing buffer sync,
and is not the best solution, so there are many parts to be improved.
Change-Id: I2c81f171799312761fabce24ec72f947f6108012
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 20 Oct 2017 06:04:25 +0000 (15:04 +0900)]
tpl_wl_vk_thread: Integrated wl_vk_thread backend.
Change-Id: Ie4491b28750f5639da02f474a3e5fdb742c6f07b
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 20 Oct 2017 06:51:24 +0000 (15:51 +0900)]
tpl_wayland_egl_thread: Added an internal API to create sync_fd.
Change-Id: I96cdca8101a578b001e1bb5e85448091e6d39060
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 19 Oct 2017 08:08:47 +0000 (17:08 +0900)]
tpl_wayland_egl_thread: Implemented the management of the committed_buffers list in vulkan_wsi backend.
Change-Id: Ic59e7c5b820f3d017da020644766e0c187cdd110
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 19 Oct 2017 07:51:31 +0000 (16:51 +0900)]
tpl_wayland_egl_thread: Added free function to unref tbm_surface in the buffer list.
- The data, tbm_surface, will be freed with function below.
void * __cb_buffer_remove_from_list(void *data)
Change-Id: If70b0a9fc10545a41fdfff9dd8f07954ba62ee14
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 19 Oct 2017 06:54:45 +0000 (15:54 +0900)]
tpl_wayland_egl_thread: Added an internal function to wait dequeueable until given timeout.
- Added TPL_ERROR_TIMED_OUT to tpl_result_t.
- Added free_queue_mutex and free_queue_cond to surf_source.
Change-Id: I8205d888570c58a22987b2d8ab9a36c1fdd10c6b
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 13 Oct 2017 08:45:06 +0000 (17:45 +0900)]
tpl_wayland_egl_thread: Implemented present modes to support vulkan wsi.
- Added _twe_surface_wait_vblank internal function to be called properly according to present mode.
- Added _twe_thread_wl_vk_surface_commit internal function for wl_surface of vulkan.
- Added a list of vblank_waiting_buffers to support FIFO and FIFO_RELAXED modes.
Change-Id: I9198b5ed3e2e9723b5e2ef61aa9be7498763d727
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 11 Oct 2017 08:53:58 +0000 (17:53 +0900)]
tpl_wayland_egl_thread: Added an internal API to set sync fence fd to buffer.
- The newly created sub-thread waits for draw_done via sync fence fd
and sends the acquirable event to eventfd of surf_source
when the drawing is completed.
- The newly created sub-thread will be destroyed after sending the acquirable event.
Change-Id: I9740b46ab8cdfab3e3ed289c6c073de836eeb5d6
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 11 Oct 2017 07:33:03 +0000 (16:33 +0900)]
tpl_wayland_egl_thread: Implemented the content related to wayland vk buffer.
Change-Id: I530e02d978dd703fef700274ca6290d15ed50151
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 29 Sep 2017 04:31:17 +0000 (13:31 +0900)]
tpl_wayland_egl_thread: Added new internal APIs related with swapchain for vulkan.
Change-Id: Ieceb7c1d6f08a684ba30de204818764e0c621754
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 28 Sep 2017 03:13:01 +0000 (12:13 +0900)]
tpl_wayland_egl_thread: Changed twe_surface_add() to give tpl_handle_t instead of wl_egl_window.
- If twe_display is a vulkan display, the twe_surface creation process is modified to be different.
- In case of vulkan, tbm_surface_queue should be created at swapchain create and be passed to twe_surface.
Change-Id: I0b40d74c54da0c3faed54700f68fdbbd2046b665
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 26 Sep 2017 09:53:23 +0000 (18:53 +0900)]
tpl_wayland_egl_thread: Added internal APIs to get surface capabilities.
Change-Id: Ibefc57b2cffe0be2de82d88ba9bce0a42ae1b9bb
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 26 Sep 2017 08:19:06 +0000 (17:19 +0900)]
tpl_wayland_egl_thread: Implemented a vulkan-related initialization in twe_display_add().
- twe_wl_disp_source distinguishes vulkan from backend_type passed by twe_display_add().
- In the case of vulkan backend, shm flusher is not used.
- This structure can be changed.
Change-Id: Ibff0fe03a14832079ddd60b24b0df8b9c32ecbe5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 26 Sep 2017 07:00:31 +0000 (16:00 +0900)]
tpl_wayland_egl_thread: Added surface capabilities to twe_display for vk backend.
Change-Id: I68cc93c4c0c473d091b8d9f4023d7edfcd2b312f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 26 Sep 2017 06:46:55 +0000 (15:46 +0900)]
tpl_wayland_egl_thread: Added backend type parameter of twe_display_add().
- To distinguish the backend of the display.
Change-Id: I4a281d1e39b764918406a85bfff6cf976e60588c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 27 Nov 2017 02:09:56 +0000 (11:09 +0900)]
Package version up to 1.4.12
Change-Id: I304c5bfb27bb3797ff6e25c1a2ffbe6294af0019
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Tue, 21 Nov 2017 11:24:14 +0000 (20:24 +0900)]
tpl_wayland_egl_thread: Modify creating event queue for multi-threaded usage
In multi-threaded wayland, below is guided on creating own event queue:
Create wl_interface object with a specified event queue, instead of
creating an object and then changing it’s queue.
This patch applies this guideline on where creating own event queue.
Change-Id: I7c08ad93f1f0719ad9093ab252659efe1bd87f07
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 21 Nov 2017 11:00:12 +0000 (20:00 +0900)]
tpl_wayland_egl: Modify creating event queue for multi-threaded usage
In multi-threaded wayland, below is guided on creating own event queue:
Create a wl_interface object with a specified event queue, instead of
creating an object and then changing it’s queue.
This patch applies this guideline on where creating own event queue.
Change-Id: Ieee31c9544af12c1c31aa807423b9a3eb972f5bf
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 31 Oct 2017 05:03:00 +0000 (14:03 +0900)]
Remove BSD-3-Clause license of gtest
Change-Id: I9f11c87258be4750c827fb5ee5450a2540c1fca4
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 31 Oct 2017 04:57:52 +0000 (13:57 +0900)]
tc: Remove local gtest library as it is not used anymore
As gtest is now provided from tizen repository, local gtest is
not used. Therefore, remove local gtest library.
Change-Id: Ice326b0db5cc89c194663aa16e9374178b95d0ed
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Fri, 27 Oct 2017 07:33:32 +0000 (16:33 +0900)]
build: Remove dependency of version environment variables on 'make'
Remove dependency of environment variable to provide same configuration
even on rebuild case.
Change-Id: I5b786b567632bc15a7fcbe26a21adfce8d4b1c05
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Fri, 13 Oct 2017 08:47:49 +0000 (17:47 +0900)]
Package version up to 1.4.11
Change-Id: I0d15a282eb91b1f29d1e7b831e071b69d9c33443
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Tue, 10 Oct 2017 02:44:04 +0000 (11:44 +0900)]
tpl_tbm: Add missing break in switch
Change-Id: I3e76e96634cc7f3e9d4ed3973d945f8d08e84358
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 10 Oct 2017 02:50:42 +0000 (11:50 +0900)]
tpl_wayland_vk_wsi: Add missing break in switch
Change-Id: I0aece437c5df9ff81aa68a7e17ff8f1f3f328b9f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 10 Oct 2017 07:15:11 +0000 (16:15 +0900)]
tpl_wayland_vk_wsi: Fix tizen coding rule violations
Change-Id: I01c30ebc4b9cd11a4fcbaac737e74b6880d76942
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Wed, 27 Sep 2017 03:55:08 +0000 (12:55 +0900)]
Package version up to 1.4.10
Change-Id: Ief444ca8917dda880460cae7914789f5b52bd118
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 27 Sep 2017 06:08:40 +0000 (15:08 +0900)]
tpl_wayland_egl_thread: Initialized the variables of wl_egl_window that will not be used.
Change-Id: Ic8f5286b1881de7c7653de716889923c9d801e8c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 27 Sep 2017 06:06:32 +0000 (15:06 +0900)]
wayland-egl: Initialized an uninitialized function pointer.
Change-Id: Id1fd615b36a3f14eade1867c3ba4601ef67d73c5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Mon, 25 Sep 2017 08:26:39 +0000 (17:26 +0900)]
tc: Add tpl-test build option on spec file
tpl-test can be built with either ways:
- Build with [--with-utest=yes]
- Change the value of 'ENABLE_TPL_TEST' to '1' of spec file
Change-Id: I8b2a3e14ef25bbf21697a3c8da5cfd50eb9c175b
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Mon, 25 Sep 2017 08:25:00 +0000 (17:25 +0900)]
tc: Apply autotools on tpl-test build system
This patch replace manually written Makefile to autotools on tpl-test.
Change-Id: I0a4040c3e5d259fe530c6b688de66283df93faa6
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 26 Sep 2017 10:02:07 +0000 (19:02 +0900)]
wayland-egl: Initialize uninitialized variable in wl_egl_window_create
Change-Id: I5e123fd8f0b9d2b0f77bae77db03a67906ce389c
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 26 Sep 2017 08:46:24 +0000 (17:46 +0900)]
tpl_worker_thread: Add checking return value of tdm event
Change-Id: I8cfb9f9b872694bfc5f84f4997937469f6bd5f33
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Wed, 27 Sep 2017 01:59:18 +0000 (10:59 +0900)]
tpl_worker_thread: Fix tizen coding rule violation
Change-Id: I4b1ec310b03045dff6e434a83e6b90ea9f62b0de
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 26 Sep 2017 08:25:01 +0000 (17:25 +0900)]
tpl_wl_egl_thread: Add missing mutex unlock in error handling
Change-Id: I45ab54c170de85a8a1b7feb59b9303a40483cfec
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Hoyub Lee [Tue, 26 Sep 2017 08:09:15 +0000 (17:09 +0900)]
tpl_wayland_egl_thread: Add missing mutex unlock in error handling
Change-Id: I15a558d8f88c30990231c759b9ca3b171ff7eb35
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Fri, 22 Sep 2017 08:22:13 +0000 (17:22 +0900)]
Package version up to 1.4.9
- libwayland-egl: package version up to 1.2.3
Change-Id: Idd5f9da7e3caf7219afa5bdb63ee6dcb940aa450
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 22 Sep 2017 08:21:18 +0000 (17:21 +0900)]
tpl_wayland_egl_thread: Changed the calling order of g_source_remove_fd().
Change-Id: Idd1250427579bb6cf9b1b5ff92515c708952ec3c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 22 Sep 2017 05:58:39 +0000 (14:58 +0900)]
tpl_wayland_egl_thread: modified the wl_surf_source to be destroyed in the thread.
- It is destroyed in thread through del_source like tdm_source and wl_disp_source.
Change-Id: Ic65e5521d4fafb9734de87f114ae292195b008a1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 21 Sep 2017 03:15:54 +0000 (12:15 +0900)]
tpl_wayland_egl_thread: modified the tdm_source to be destroyed in the thread.
- The tdm_source is created in the thread.
- The tdm_del_source is created in the main thread after the tdm_source is created.
- When twe_thread_destroy() is called, the tdm_source is destroyed in the thread
by triggering an event on tdm_del_source.
Change-Id: Icc88a9b92e446071d3776191fc120153a4c62502
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 22 Sep 2017 06:54:30 +0000 (15:54 +0900)]
tpl_wayland_egl_thread: protected the process of twe_display_del with mutex.
- The function twe_display_del is called by the main thread,
but the actual destroy process is handled by the thread through twe_del_source.
Therefore, while the del_source is being processed by the thread,
the main thread must wait in cond_wait.
Change-Id: I7cffdc1d6fd477213d8258cf87871aa3de0c75f2
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Fri, 15 Sep 2017 08:46:48 +0000 (17:46 +0900)]
tpl_wayland_egl_thread: Protect twe_thread_create() with mutex
Currently, main thread does not wait for newly creating threads which
has its own initialization process. As initalization happens on newly
created thread, without protecting, undesirable behaviour can occur.
Therefore, change main thread to wait newly creating thread with mutex.
Change-Id: Id32092d77c35bd7b8d705057a1b07798820e8e20
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Wed, 20 Sep 2017 05:29:29 +0000 (14:29 +0900)]
tpl_wayland_egl_thread: Modified the function ordering.
Change-Id: I95102a262924c06fa4243e81192cca5b2c0f25dd
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 20 Sep 2017 04:25:25 +0000 (13:25 +0900)]
tpl_wayland_egl_thread: Modified naming and usage of twe_del_source.
- To extend the usability of the 'twe_wl_disp_del_source'
that was created to delete the disp_source, I changed naming
to 'twe_del_source' and changed the associated functions to be common.
Change-Id: I6b7eddbfaf1434ec189e75211932258419945200
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 20 Sep 2017 00:25:11 +0000 (09:25 +0900)]
tpl_wayland_egl_thread: Implemented destroy callback of wl_egl_window.
- If wl_egl_window is destroyed before the surface is destroyed,
wl_egl_window and wl_surface are not accessed by any routine.
Change-Id: I15dd945fbe50007eda7bd6783f687f705fb97852
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 18 Sep 2017 06:19:11 +0000 (15:19 +0900)]
wayland-egl: Added wl_egl_window destroy callback.
libwayland-egl: package version up to 1.2.3
Change-Id: Ifd7713dee2ed521b22b4a2601e623b717882f57f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 13 Sep 2017 09:04:08 +0000 (18:04 +0900)]
Package version up to 1.4.8
Change-Id: I38d174f445385738037984afd6762dde05d4ecb9
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 13 Sep 2017 07:59:59 +0000 (16:59 +0900)]
tpl_wl_egl_thread: Modified to ensure thread safety between enqueue and destroy.
Change-Id: I36af6adb3956112093ddcd2304f31b5ab26705f3
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 13 Sep 2017 05:29:25 +0000 (14:29 +0900)]
tpl_wayland_egl_thread: Modified twe_surface_destroy to unref the tbm_surface in in_user_buffers.
- When eglSurfaceDestroy is called on the main thread,
the function twe_surface_del() waits for the worker thread
to finish rendering the buffer no longer
Change-Id: Ieb3921eedd990b8621122cb1db9d42cb5933c2c1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Fri, 8 Sep 2017 04:06:23 +0000 (13:06 +0900)]
build: Add missing flag on ENABLE_TTRACE
Change-Id: If08ede24479cfed51d22144a3dccc8c01c70df0f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Mon, 4 Sep 2017 08:57:01 +0000 (17:57 +0900)]
Package version up to 1.4.7
Change-Id: I5e80a40c17f6b3b0cde035242c0837e8eb9c6621
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 4 Sep 2017 07:47:48 +0000 (16:47 +0900)]
tpl_wayland_egl_thread: Fixed ref count bug in gsources.
- g_source_new() must match g_source_unref(),
g_source_attach() must match g_source_destroy().
Change-Id: I5bfe99de2bed6abfbff9f0a61ff20eeb33533048
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 4 Sep 2017 07:44:17 +0000 (16:44 +0900)]
tpl_wayland_egl_thread: Modified the destroy process of disp_source.
- Changed the last unref of gsource to be executed in the main thread.
Change-Id: Ifbcfe438f2aed8f82662eb675576d5dc3792e674
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 1 Sep 2017 02:06:18 +0000 (11:06 +0900)]
tpl_wayland_egl_thread: Added object lock/unlock at the time of in_use_buffer list finalizing.
Change-Id: I9e6d3ae6fea8df6caa4fc2ffba7d7ce348408d2c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 1 Sep 2017 01:13:10 +0000 (10:13 +0900)]
tpl_wayland_egl_thread: Added exception checking.
- Added an exception checking to prevent to access destroyed gsource.
Change-Id: I7ba78f28c03d836f27132d9f1e16095d4313ca41
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 31 Aug 2017 01:15:18 +0000 (10:15 +0900)]
tpl_wayland_egl_thread: Format of tpl_surface is used instead of ARGB8888
Reference commit log below
#
48e698ce0dbff338b6cb3db8733838e6e0ff44be
tpl_wayland_egl: Format of tpl_surface is now used instead of ARGB8888
Because there was no real use case using format other than ARGB8888,
the format value in __tpl_wayland_egl_surface_init() was fixed as ARGB8888.
However, there were cases using other formats on CTS.
Therefore, the format of tpl_surface is going to be used.
#Change-Id: I427d1a989267b9ec0fbe03f5bb67b02ba985a039
#Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Change-Id: Id2249dd8efb12afff44248ae98f8a0db28aed1af
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 4 Sep 2017 09:17:04 +0000 (18:17 +0900)]
tpl_wl_egl_thread: Added some exception checking.
Change-Id: I8c4ef999cbd0c8a537cfa2a6cf2f07d877a004ab
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Fri, 11 Aug 2017 07:10:02 +0000 (16:10 +0900)]
Apply autotools on build system
Applying autotools on build system provides following benefits:
- Many open source projects are using autotools, so with autotools
applied, open source developers can easily understand our project's
build system.
- Autotools provides many powerful features like powerful
cross-compilation, diverse and useful command options for build,
configure many parts automatically, and so on.
- Human errors on writing Makefile can be reduced.
Change-Id: I62a6129fa4a9a0fb6ab48509ef163ea7fc0369b9
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
joonbum.ko [Tue, 22 Aug 2017 02:57:57 +0000 (11:57 +0900)]
Package version up to 1.4.6
Change-Id: I707c4be1cdcc680063f4fe73a109c92868d1d6f1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 22 Aug 2017 02:50:07 +0000 (11:50 +0900)]
tpl_wayland_egl_thread: Modified the procedure of finalizing disp_source.
- Added twe_wl_disp_del_source, an event gsource to delete twe_wl_disp_source.
- When delete twe_wl_disp_source, calling _twe_thread_wl_disp_del_trigger()
wakes up twe_wl_disp_del_source and removes twe_wl_disp_source in the thread.
Change-Id: I6a9ab462e8ab464663ee60db1548d822c50d7f00
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Fri, 18 Aug 2017 08:04:53 +0000 (17:04 +0900)]
Change build option spacing for consistency
Change-Id: I538e69f3c79a03e679d0102e445c141cee177d13
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Fri, 18 Aug 2017 01:50:46 +0000 (10:50 +0900)]
Package version up to 1.4.5
Change-Id: I90e1e34df853156515ad07e8298acbd2d1e71d8e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Fri, 18 Aug 2017 01:46:56 +0000 (10:46 +0900)]
tpl_wayland_egl_thread: Fixed an error related to prepared flag.
- The code that set prepared to TRUE was wrong.
- Fixed an issue where wl_display_cancel_read() could be called multiple times,
even if wl_display_prepare_read_queue was only called once due to the prepared flag.
Change-Id: Ibdbe92ed3bbe00ffac6570fac5f76cf8f243d706
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 14 Aug 2017 06:16:59 +0000 (15:16 +0900)]
Package version up to 1.4.4
Change-Id: I093a6e829cc4c1afdaf75c7123aaceb9ec41216c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 14 Aug 2017 06:12:23 +0000 (15:12 +0900)]
tpl_wayland_egl_thread: Added a prepared flag to match prepare and read/cancel pairs.
- Some problem occurs when gsource calls several prepare functions in one loop sequence.
- prepared flag can prevent that problem.
Change-Id: Idf715b43af37fab527b996c8c52d62f1b28367ee
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 10 Aug 2017 07:47:14 +0000 (16:47 +0900)]
Package version up to 1.4.3
Change-Id: I4d2f50d9fc1241744f2c8575218b423b069e160d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 10 Aug 2017 07:31:24 +0000 (16:31 +0900)]
tpl_wayland_egl_thread: Added window rotate callback for prerotation.
- Before this patch, there was no way to update the tpl_surface->rotation value.
- So added an internal function to register rotation callback to know rotation value.
- Added New internal API :
tpl_result_t twe_surface_set_rotate_callback(twe_surface_h, void *data, tpl_surface_cb_func_t)
- By registering a callback with above internal API at the time of wayland_egl_surface init,
tpl_surface can know whether window is rotating or not and can update the value of rotation.
Change-Id: I32de635145d434e822423202e5311c5024cca16c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 8 Aug 2017 10:30:13 +0000 (19:30 +0900)]
Package version up to 1.4.2
Change-Id: I1d448a8a1512d68f665aeca2937d3e278bdd547d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
SooChan Lim [Wed, 9 Aug 2017 00:45:04 +0000 (09:45 +0900)]
tpl_wayland_egl: remove the unused variable
Change-Id: Id25e309dbcd59f67fa9edaa0b048577bf7a263ee
joonbum.ko [Wed, 2 Aug 2017 06:22:55 +0000 (15:22 +0900)]
tpl_wayland_egl: Fixed wrong procedure of cancel_dequeued_buffer
Change-Id: Iac13118c24e87546ffaef6116bf826285a0766e0
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 1 Aug 2017 06:04:47 +0000 (15:04 +0900)]
Package version up to 1.4.1
libwayland-egl : package version up to 1.2.2
Change-Id: Ic80a31bb98a5521578a57048818208ef335017dc
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Tue, 1 Aug 2017 05:55:35 +0000 (14:55 +0900)]
libtpl-egl.spec: libwayland-egl.so was included again.
- Since libwayland-egl.so is often directly dlopen,
it is included again temporarily.
Change-Id: Ica57a476e4d7d3a470c591a7424928b69f129e42
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Hoyub Lee [Tue, 25 Jul 2017 10:58:15 +0000 (19:58 +0900)]
tpl_wayland_egl: Format of tpl_surface is now used instead of ARGB8888
Because there was no real use case using format other than ARGB8888,
the format value in __tpl_wayland_egl_surface_init() was fixed as ARGB8888.
However, there were cases using other formats on CTS.
Therefore, the format of tpl_surface is going to be used.
Change-Id: I427d1a989267b9ec0fbe03f5bb67b02ba985a039
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
joonbum.ko [Wed, 19 Jul 2017 10:44:35 +0000 (19:44 +0900)]
Package version up to 1.4.0
- DDK can use WAYLAND_EGL_THREAD backend to enable multi-thread
since this version 1.4.0
Change-Id: Ic8156273e06ae6c3600ebda631e9d42a9f2f04f5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 19 Jul 2017 10:17:08 +0000 (19:17 +0900)]
libtpl-egl.spec: Excluded worker_test binary building.
Change-Id: I47724d2be1cbdabb503d24adcf0998aad388b5d4
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>