Mun, Gwan-gyeong [Mon, 29 Aug 2016 04:51:32 +0000 (13:51 +0900)]
libtpl-egl: Apply coding style and add coding style document for astyle.
Change-Id: Ie39cc4244e19532bb000a16b97776575352aab69
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
joonbum.ko [Wed, 24 Aug 2016 11:04:33 +0000 (20:04 +0900)]
tpl_wayland_egl: Delete unnecessary polling for tdm vblank.
The necessary polling is already exist inside libtdm.
Change-Id: I5cf90dd599a2bee99ac3ba0094d8d4a36a7ca8bb
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 24 Aug 2016 10:58:30 +0000 (19:58 +0900)]
tpl_wayland_egl: Create tdm_vblank object directly and maintain every surfaces until destroy.
tdm_vblank object decide to be maintained every tpl_wayland_egl_surface
for the case where one or more surfaces are created in one display connection.
Change-Id: I74a3195d1d7f6662d233edf30f43ac87902da4b5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
deasung.kim [Wed, 24 Aug 2016 08:14:20 +0000 (17:14 +0900)]
libtpl-egl: change the usage of libtbm_sync api
remove tbm_sync objects and use fd
tbm sync related api change reference: https://review.tizen.org/gerrit/#/c/85169/ submitted
Change-Id: Ia291424c127487bed3af99759b6f37e9bd76c27a
deasung.kim [Mon, 1 Aug 2016 08:31:10 +0000 (17:31 +0900)]
tpl_wayland_vk_wsi: [sync - thread] added worker thread
the worker thread do wait buffer's draw done signal before attach/commit
and wait buffer enqueue with pthread_condition.
main thread support timeout in dequeue_buffer with worker thread.(single thread not support timeout)
this patch can modify clear after libtbm support timeout(can dequeue/can acquire)
Change-Id: I90fe6340c4457169073537f18c1fd7368b5b5f7b
deasung.kim [Mon, 1 Aug 2016 05:45:07 +0000 (14:45 +0900)]
tpl_wayland_vk_wsi: [sync] divide __tpl_wayland_vk_wsi_surface_enqueue_buffer
added func __tpl_wayland_vk_wsi_surface_commit_buffer
this func do 'attach/commit/insert free queue' buffer
for worker thread
Change-Id: I609c5a1e2d59e5340b5f27e1c61e6147e8189bd6
deasung.kim [Fri, 29 Jul 2016 06:56:30 +0000 (15:56 +0900)]
tpl_wayland_vk_wsi: [sync] wait driver's sync in enqueue (without thread)
wait driver's draw done signal with sync_fd before attach/commit
Change-Id: I8c85231693a4b8c5e646bb5d0ef5eca10c17515c
deasung.kim [Fri, 29 Jul 2016 03:33:06 +0000 (12:33 +0900)]
tpl_wayland_vk_wsi: [sync] move buffer_release after buffer_acquire
move buffer_release after buffer_acquire for vulkan's acquireNextImage spec.
and insert wl_display_dispatch in enqueue_buffer's last line.
if not call wl_display_dispatch it occur broken pipe.
see code's comments.
Change-Id: If2d1e52404c1e9425a0196392b99eba8f28b6d60
deasung.kim [Thu, 28 Jul 2016 07:31:45 +0000 (16:31 +0900)]
tpl_wayland_vk_wsi: [sync] implement make sync timeline and send
create timeline when buffer created
and transfer to server and server increase timeline value
create fence when buffer acquired and client wait fence before draw
this patch client side
need server side patch
Change-Id: Ibfb4bb9dbc6bd0c7bb1fb0fbb36c1faeac7a23d7
deasung.kim [Thu, 28 Jul 2016 06:02:56 +0000 (15:02 +0900)]
[sync] added dequeue/enqueue with sync interface
added function
- tpl_surface_dequeue_buffer_with_sync
- tpl_surface_enqueue_buffer_with_damage_and_sync
added parameter in backend function
dequeue_buffer timeout, tbm_sync_fence_h
enqueue_buffer tbm_sync_fence_h
this patch dependent https://review.tizen.org/gerrit/#/c/84089/
Change-Id: I2eb7bf54c43fc75dcb73dc6a12b76eb21659eaca
Mun, Gwan-gyeong [Mon, 22 Aug 2016 14:30:58 +0000 (23:30 +0900)]
tpl_wayland_egl: Add Null check on wayland_egl_buffer and wayland_egl_surface of __tpl_wayland_egl_surface_enqueue_buffer()
Change-Id: Ice0924f4a9a068ad5962d3743538f03ce46cf766
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
joonbum.ko [Mon, 8 Aug 2016 05:01:26 +0000 (14:01 +0900)]
tpl-wayland-egl: Add tracking list of tbm_surface in order to track dequeued buffers.
When tbm_surface_queue was reset, if the dequeued buffer(s) render done,
don't call tbm_surface_enqueue and do wl_surface_commit directly.
Change-Id: I095964f3fbb6c21f4fffc43f2682182f3cedb34a
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 4 Aug 2016 09:28:55 +0000 (18:28 +0900)]
tpl-wayland-egl: Change some contents of the structure tpl_wayland_egl_buffer_t, tpl_wayland_egl_display_t.
tpl_wayland_egl_display_t has handle for 'struct wl_display'.
tpl_wayland_egl_buffer_t has handle for tpl_wayland_display_t instead of tpl_display_t.
Change-Id: I2aa27f55741256b8633808212313a500093ae58c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 3 Aug 2016 05:35:20 +0000 (14:35 +0900)]
tpl-wayland-egl: Add tracking list of tbm_surface in order to track attached buffers.
If wayland-client dependes on release_cb to free the resources related to buffer,
there are some problem occured in situation when cannot expect. (unexpected process kill)
wayland-client doesn't depend any more on release_cb, it will release the resources
related to buffer when surface was destroyed or reset immediately.
Change-Id: Ic97b37d54226b6b478fc13dd5a2ffe1a518782d3
joonbum.ko [Tue, 19 Jul 2016 01:53:14 +0000 (10:53 +0900)]
Added the exception checking codes about tbm_surface when release_cb called.
Change-Id: Ia5ddf37d3b6a41c99475616dfb62ed3c3883084f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Mon, 18 Jul 2016 08:29:53 +0000 (17:29 +0900)]
Call wl_display_dispatch_pending() once before client surface is finalized.
Change-Id: I15721d89dc9d8dea14a02aefc36db42a3bad89f2
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Wed, 13 Jul 2016 00:50:43 +0000 (09:50 +0900)]
Added codes about processing for event_queue of wl_tbm_queue.
Change-Id: I687624549548c405a2325e68072991a21b7e6a54
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Boram Park [Fri, 1 Jul 2016 09:37:50 +0000 (18:37 +0900)]
tpl-wayland-egl: change usage of libtdm-cleint api
remove the deprecated name and use the new name of structure and enumeration of
libtdm client. In libtdm library, tdm_client_error and TDM_CLIENT_ERROR_xxx prefix
changed to tdm_error and TDM_ERROR_xxx.
Change-Id: I2ccdc493f9cb26cb49914d5de59137b1c19331f3
joonbum.ko [Thu, 23 Jun 2016 07:04:38 +0000 (16:04 +0900)]
Deleted unnecessary code.
- It is not useful any more but if it exist continuously, this exception code can cause some problem.
Change-Id: Ib56805fee97cc99e8f25338c08fabb93e04db180
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 23 Jun 2016 06:56:20 +0000 (15:56 +0900)]
Prevent the case that cannot receive the release event.
- While doing the wl_buffer proxy set with the private queue, process the event in the default queue once more.
Change-Id: Ifa02c80c7cee05416db3fb7da1e66e54c087f8f6
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
joonbum.ko [Thu, 16 Jun 2016 07:01:15 +0000 (16:01 +0900)]
Add fd polling for receive the vsync event.
- The logic which wl_client check the vsync events in order to perform only one commit
for one vsync was added.
- If TPL_WAIT_VBLANK env value set to 0, this login will be disabled.
Change-Id: I559f709e2272c3904d9690c68f53ce800d60d97a
joonbum.ko [Fri, 10 Jun 2016 08:43:55 +0000 (17:43 +0900)]
Reorganize TPL log system.
- Logs will be printed out using fprintf.
- ENABLE_DLOG flag set to 1 all logs will be printed out using dlog.
- TPL_LOG_LEVEL
1: Only frontend API logs.
2: Frontend API logs + Backend detail logs.
3: Frontend + Backend + Debug logs.
4: Only Debug logs.
Change-Id: Iceacc4163b225c1b0595b2c02dc119f85cee59b3
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Sangjin Lee [Fri, 10 Jun 2016 11:13:02 +0000 (20:13 +0900)]
tpl-wayland-egl: remove a wl_queue
The wayland-egl backend just event dispatch in main-thread.
So it is sufficient to use just default display event queue.
But in dequeue function, create other event queue for wait to
buffer-release event.
Change-Id: I66edc877cfef6ab91598e8b3c5042ba00d871447
Mun, Gwan-gyeong [Mon, 2 May 2016 00:38:11 +0000 (09:38 +0900)]
Add Null check on wl_surface of wl_egl_create_window().
Change-Id: Id52668525b55aa176b17874a7b85c9ad351c3ae0
joonbum.ko [Wed, 18 May 2016 04:44:31 +0000 (13:44 +0900)]
Initialize reset flag after tbm_surface_queue_dequeue.
Change-Id: I657b1f52603d49821820ecd3802c245e7566ab8c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Mun, Gwan-gyeong [Thu, 12 May 2016 11:11:54 +0000 (20:11 +0900)]
Change indent : 8 tab size -> 4 tab size
Change-Id: Ic33e79873e5d15947c36675f13ce436f3ba06fc6
Sangjin Lee [Thu, 28 Apr 2016 05:42:27 +0000 (14:42 +0900)]
Support frontbuffer mode
Change-Id: Ie40e463ceaa83c34ea6e12fd76b660275f11c951
joonbum.ko [Wed, 4 May 2016 10:10:09 +0000 (19:10 +0900)]
Add routine for validation checking about tbm_surface before using tbm_surface_internal API.
Change-Id: I430e3699b0a8737659961a9ea66d03afa150938e
joonbum.ko [Tue, 3 May 2016 00:37:53 +0000 (09:37 +0900)]
Organize ttrace log.
- The flag in the .spec file, ENABLE_TTRACE default value is Zero(disable).
- If you want to use this feature, change the value of ENABLE_TTRACE zero to one(enable).
Change-Id: If03bb923700fb5a3d1e3c889e2de4138af8a7d6e
Mun, Gwan-gyeong [Mon, 9 May 2016 12:55:56 +0000 (21:55 +0900)]
Add Null Check before pointer dereference on tbm backend.
Change-Id: I4028c9d2f3e3906a69e6045dbbb6be8559515268
Mun, Gwan-gyeong [Fri, 29 Apr 2016 14:47:17 +0000 (23:47 +0900)]
Add missing requires on libwayland-egl-devel
: add requires of libwayland-egl to libwayland-egl-devel
Change-Id: I38a215d1097e2ae4e4e01310624673b007f6b85e
Mun, Gwan-gyeong [Wed, 27 Apr 2016 07:44:20 +0000 (16:44 +0900)]
Add build enable architecture on emulator: x86, x86_64
Change-Id: I0a5816e5857237ff2c161510c1644488e48c956e
Gwan-gyeong Mun [Tue, 26 Apr 2016 12:16:33 +0000 (05:16 -0700)]
Merge "tbm: check need_dpy_deinit" into tizen
Sangjin Lee [Tue, 26 Apr 2016 11:54:50 +0000 (20:54 +0900)]
tbm: check need_dpy_deinit
Change-Id: Ib13fe70e133e2f63f4a520acda4f068dc34d33d4
Mun, Gwan-gyeong [Thu, 21 Apr 2016 11:14:18 +0000 (20:14 +0900)]
Move tpl_surface's query_supported_buffer_count feature to tpl_display.
Change-Id: I2bab1fbd738a7c5c016dc3e1c79d4ec3fe438524
joonbum.ko [Tue, 19 Apr 2016 08:09:48 +0000 (17:09 +0900)]
Delete repeated wrong code.
Change-Id: I3cf3cfd3b84b65fe8fb62d95c000102c8341745a
joonbum.ko [Tue, 19 Apr 2016 06:26:28 +0000 (15:26 +0900)]
tbm_surface_internal_unref has to called before get_user_data.
- When client received release_cb from server, if client surface already destroyed
released tbm_surface should be destroyed before checking its own user_data.
Change-Id: I5ed2c880182e1f64c6e2b70bdcfe9b6722b204d0
Mun, Gwan-gyeong [Tue, 19 Apr 2016 02:22:42 +0000 (11:22 +0900)]
Change file mode bits.
: remove execute bit on source file.
Change-Id: I1d553aa0ed6446dc84a7db951d64f28c9b23dfe9
joonbum.ko [Mon, 18 Apr 2016 06:59:25 +0000 (15:59 +0900)]
Set user_data to tbm_surface not tbm_bo
Change-Id: Ibc478c60764662e3bb6ba0493e5dfbc089e7ae0f
Mun, Gwan-gyeong [Fri, 15 Apr 2016 10:29:10 +0000 (19:29 +0900)]
Fix "tpl_surface_get_swapchain_buffers() returns only one buffer" problem
Change-Id: I74aadeecdabc2b1fe13927e5b2812dc1c3efd968
Gwan-gyeong Mun [Fri, 15 Apr 2016 08:14:50 +0000 (01:14 -0700)]
Merge "Add internal function for wl_surface_commit." into tizen
Gwan-gyeong Mun [Fri, 15 Apr 2016 08:06:23 +0000 (01:06 -0700)]
Revert "Add Null check on wl_surface of wl_egl_create_window()."
This reverts commit
0dedb2b4e15dfa862fa142f0335d7deeafd87676.
Change-Id: Ib1073db0da011f2845d0a1583e0a118e1392e9b1
joonbum.ko [Fri, 15 Apr 2016 05:37:38 +0000 (14:37 +0900)]
Add internal function for wl_surface_commit.
- Do wl_surface_commit forcibly although failed to tbm_surface_queue_enqueue.
- Only when getting ERR_NONE in tbm_surface_queue_enqueue, do unref the tbm_surface to prevent destruction.
Change-Id: I4ea4cc531903c63e138d9850be03a010d82dd330
SooChan Lim [Mon, 11 Apr 2016 02:42:54 +0000 (11:42 +0900)]
set the wl_tbm_queue proxy to the wl_queue
The gl application which does not have an event loop cannot
get the event from wl_tbm_queue interface.
The tpl wayland checks the event of the wl_tbm_queue interface.
Change-Id: I0f6d828c47a1d19c862a5f654d192db299c0f954
Mun, Gwan-gyeong [Tue, 5 Apr 2016 08:55:17 +0000 (17:55 +0900)]
Add Null check on wl_surface of wl_egl_create_window().
Change-Id: Id0ece99fd81410bbcd8e05ec2c0ba3c0a9ddc02c
Mun, Gwan-gyeong [Fri, 1 Apr 2016 12:05:47 +0000 (21:05 +0900)]
Support wayland vulkan wsi backend / frontend
Change-Id: I0ba8249947b470c20d467e536b55ca0ad1d30f17
joonbum.ko [Wed, 30 Mar 2016 08:17:18 +0000 (17:17 +0900)]
Call wl_display_dispatch_queue_pending before checking dequeuable.
- Before the dequeuable checking, call the function wl_display_dispatch_queue_pending() in order to process the accumulated events(release) received from server.
Change-Id: I92abae0ae6fdda80367c2193d0926b5c1637d24e
Sangjin Lee [Tue, 15 Mar 2016 02:04:21 +0000 (11:04 +0900)]
wayland: Change for scanout-queue
For support fixed-scanout buffer target.
wayland-tbm expand protocol.
(commit
9979f19d9639652b61ca9903c2961b7059deabc2)
Change-Id: Id7938309f1c917a425a32203792b1cf83ca5eeae
Mun, Gwan-gyeong [Thu, 17 Mar 2016 10:42:12 +0000 (19:42 +0900)]
Change the function of describing error number: strerror to strerror_r
because strerror_r is thread safe.
Change-Id: I37b59e15c63f5af7a29d1dcff0850beb8d60358e
Mun, Gwan-gyeong [Thu, 17 Mar 2016 02:43:58 +0000 (11:43 +0900)]
Remove unused internal APIs
- __tpl_display_flush()
- __tpl_runtime_flush_all_display
Change-Id: I1260b65452feaeb3b48d06790d8dbb08b185350a
Sangjin Lee [Mon, 14 Mar 2016 10:12:14 +0000 (19:12 +0900)]
Change deprecated API
tbm_surface_queue_set_destroy_cb() is depercated.
So use tbm_surface_queue_add_destroy_cb().
Change-Id: Idb602e2a1b7dffe31b8d720a3fbc21c2c7d51646
Mun, Gwan-gyeong [Tue, 8 Mar 2016 05:05:57 +0000 (14:05 +0900)]
Remove potential defect: It doest not need to call __tpl_hashlist_delete() when the __tpl_hashlist_insert() fails on __tpl_rintime_add_display().
Change-Id: Icfa9e0d05a0a906bc2cee33573b6aa06b8b536be
Mun, Gwan-gyeong [Sun, 13 Mar 2016 08:59:18 +0000 (17:59 +0900)]
Change timing of buffer reset on egl_window resize case.
Change-Id: Ie7112fa1b7d4ff857439b7b8f5bcb5d981eb004f
Mun, Gwan-gyeong [Sun, 13 Mar 2016 08:58:27 +0000 (17:58 +0900)]
Fix compile warning: suggest parentheses around assignment used as truth value
Change-Id: I7f076dfa978f8db5add7e5cdcd9f1bc7d25007d6
Mun, Gwan-gyeong [Mon, 29 Feb 2016 09:12:20 +0000 (18:12 +0900)]
Add get_buffer_from_native_pixmap, get_pixmap_info for supporting of eglCreateImageKHR() EGL_WAYLAND_BUFFER_WL target on wayland backend
Change-Id: I30a95056d2045c643b02b060f12a6875bc0f056c
joonbum.ko [Fri, 11 Mar 2016 05:39:48 +0000 (14:39 +0900)]
Modify spec file for installing license files.
Change-Id: I37072c36733b622bf39aab09a14e4e7cb8d1297d
Mun, Gwan-gyeong [Mon, 7 Mar 2016 11:17:57 +0000 (20:17 +0900)]
Fix No unlock for mutex 'runtime_mutex' case.
Change-Id: Ib5935d5ab3f4bdafd89acbaca628e4e1884a0b57
Mun, Gwan-gyeong [Mon, 7 Mar 2016 11:04:56 +0000 (20:04 +0900)]
Fix free after use.
Change-Id: I336fff939247d4b3da8b921e0846360d1f983191
Mun, Gwan-gyeong [Mon, 7 Mar 2016 10:55:39 +0000 (19:55 +0900)]
Add enqueue buffer dump on gbm backend
Change-Id: Ib5b998d7d9f66fa9f9ea809568acd5ca87bf9262
Mun, Gwan-gyeong [Mon, 7 Mar 2016 10:45:35 +0000 (19:45 +0900)]
Fix unreachable state.
- fwrite() only retrurns a short item count (or zero). so program does not reach under zero state.
Change-Id: Ibed62e2933f88dcbaccc74a15d18253ea9681c77
Mun, Gwan-gyeong [Fri, 19 Feb 2016 05:37:35 +0000 (14:37 +0900)]
Apply coding style
Change-Id: I5c3d76f1ba6fcabb98d3d472a9985eb7887ba86a
Mun, Gwan-gyeong [Thu, 18 Feb 2016 02:41:32 +0000 (11:41 +0900)]
Increment version to 1.0.0
Add coding style guide.
Change-Id: I30511764157000b01db040e8b35ba4a85aea0a7b
Mun, Gwan-gyeong [Wed, 17 Feb 2016 17:25:48 +0000 (02:25 +0900)]
Fix indent, typo, build warnning
Change-Id: I0430791e127f5d3035cc2b57550b66022eff100b
joonbum.ko [Wed, 17 Feb 2016 04:36:49 +0000 (13:36 +0900)]
Add enumeration for tpl result type.
- Enum
TPL_ERROR_NONE : Successful
TPL_ERROR_INVALID_PARAMETER : Error, Invalid parameter
TPL_ERROR_INVALID_OPERATION : Error, Invalid operation
Change-Id: Idc7d9112ccb146b83aa7f96a0a49e3736f0957cf
joonbum.ko [Tue, 16 Feb 2016 09:51:18 +0000 (18:51 +0900)]
Add API tpl_surface_enqueue_buffer_with_damage.
- Deleted usages of tpl_region_t and file because the need that
tpl_surface_t has tpl_region_t(damage info) disappeared.
Change-Id: I076352c21042007ebf166f80229658c963cafa30
joonbum.ko [Tue, 16 Feb 2016 08:09:32 +0000 (17:09 +0900)]
Delete API tpl_surface_set/get_damage.
Change-Id: I911464516280f88d802c99f79aac8f7940f88ae6
Mun, Gwan-gyeong [Tue, 16 Feb 2016 11:48:24 +0000 (20:48 +0900)]
Remove meanless APIs
- tpl_display_bind_client_display_handle()
- tpl_display_unbind_client_display_handle()
wayland client's tbm_bufmgr_init() is called by wayland_tbm protocol().
( when the tpl_egl used wayland-drm protocol, explicity, tpl-egl calls client's tbm_bufmgr_init().
But current implementation wayland-tbm calls tbm_bufmgr_init() internally.)
Change-Id: If97466b45298c567b737e2467dc6e932daff43aa
Sangjin Lee [Tue, 16 Feb 2016 11:59:44 +0000 (20:59 +0900)]
revise tpl_util_map
Change-Id: I9474d38989c4ad6c79ac32c0f892a4d262789384
Sangjin Lee [Tue, 16 Feb 2016 05:00:51 +0000 (14:00 +0900)]
Support tpl_objet_set_user_data() by key
- add utils apis for map
tpl_map support int32, int64 and pointer data type to hash key.
and tpl_object use the pointer type map, key is treated as
a normal variable. Thus, tpl_object_set/get_user_data() is
modified to use the pointer value itself as a key.
Change-Id: I0bffd9dba61aeeedcb498eaff1f8099c628aca8d
Mun, Gwan-gyeong [Tue, 16 Feb 2016 03:48:53 +0000 (12:48 +0900)]
Change API: tpl_display_get()
seperate tpl_display_get() to tpl_display_create() and tpl_display_get()
Change-Id: I8c044fba19bd522d23a32dbef72c3bb7b880b7c1
Mun, Gwan-gyeong [Tue, 16 Feb 2016 02:40:05 +0000 (11:40 +0900)]
Remove unused APIs on tpl_display.
- Removed API:
tpl_display_flush
tpl_display_wait_native
tpl_display_get_backend_type
tpl_display_choose_backend_type
Change-Id: Ic34210f80d024073570d4c726a1f764dd140edaf
joonbum.ko [Mon, 15 Feb 2016 05:16:56 +0000 (14:16 +0900)]
Delete API tpl_display_get_bufmgr_fd.
Change-Id: I2617aa29b5d7716723b5f3715076453d6828e7a4
joonbum.ko [Mon, 15 Feb 2016 01:25:17 +0000 (10:25 +0900)]
Rename some front-end APIs of tpl_display.
- tpl_get_native_window_info -> tpl_display_get_native_window_info
- tpl_get_native_pixmap_info -> tpl_display_get_native_pixmap_info
- tpl_get_native_buffer -> tpl_display_get_buffer_from_native_pixmap
Change-Id: I7ec481f4830c54a1aa87873dcf953c89929b2437
joonbum.ko [Fri, 12 Feb 2016 02:05:54 +0000 (11:05 +0900)]
Add API tpl_get_native_buffer.
- This API will be called by compositor when it needs native buffer from pixmap.
Change-Id: I9ccb3a5aa93dfd79582cf587b8375cca3482b8c8
joonbum.ko [Thu, 11 Feb 2016 04:54:28 +0000 (13:54 +0900)]
Change API names about get_buffer & post.
- tpl_surface_get_buffer changed to tpl_surface_dequeue_buffer.
- tpl_surface_post changed to tpl_surface_enqueue_buffer.
- Fix some build warnings.
Change-Id: I9e49ccfa50bd44f7d875d33e9b3b1bb4982d2647
joonbum.ko [Thu, 11 Feb 2016 00:39:33 +0000 (09:39 +0900)]
Delete tpl_format_t and replace with tbm_format.
Change-Id: Ia5925408225262af23781e4862a40edac2e38b01
joonbum.ko [Tue, 26 Jan 2016 08:08:51 +0000 (17:08 +0900)]
Delete tpl_frame_t and change some APIs
- Deleted codes(APIs) and file related to tpl_frame_t.
- Add argument tbm_surface_h to API tpl_surface_post.
Change-Id: Ib5e034aaafe2dc059ed98efe708759c24bfb1815
Mun, Gwan-gyeong [Tue, 19 Jan 2016 13:33:04 +0000 (22:33 +0900)]
Add exclude architecture - x86, x86_64
: x86 architecture uses mesa which creates gles, egl, egl-wayland package.
Change-Id: I5ec823b54e5cddcb943f5d4275bb0cc895e2620f
Sangjin Lee [Thu, 21 Jan 2016 06:47:13 +0000 (15:47 +0900)]
add tbm backend
Change-Id: Ide4b4b55f6c8f3a006b1126f309690ef85f2e391
Mun, Gwan-gyeong [Wed, 20 Jan 2016 02:32:12 +0000 (11:32 +0900)]
Add tpl_display_get_bufmgr_fd() to scheduled to deprecated api
Change-Id: Ia3d6caa72794e18626ac61aea40e526d4f722f76
Mun, Gwan-gyeong [Mon, 18 Jan 2016 14:43:33 +0000 (23:43 +0900)]
Remove unnecessary tpl_display_get_bufmgr_fd() api.
Change-Id: I422dedd4007877fd81608b83e61aa90a05b4cc30
Mun, Gwan-gyeong [Mon, 18 Jan 2016 14:38:28 +0000 (23:38 +0900)]
Remove unnecessary TPL_OBJECT type.
Change-Id: Icbe7d442bb061a3c25226920d7a2cc5455f57a93
Mun, Gwan-gyeong [Mon, 18 Jan 2016 14:33:25 +0000 (23:33 +0900)]
Remove specific GPU name. libtpl-egl is not dependant on the specific gpu.
Change-Id: If24219e36bbc6c87a5424e9acf11b80e5a7aaf6b
joonbum.ko [Tue, 12 Jan 2016 10:04:57 +0000 (19:04 +0900)]
Unnecessary APIs and file related to tpl_buffer was deleted.
- This patch is operated in Wayland/GBM backends.
- TODO: It has to be applied to x11 backend.
Change-Id: Ie206dd43fbb93e7cf7c131360f9f667e98a6abb6
joonbum.ko [Tue, 12 Jan 2016 06:44:50 +0000 (15:44 +0900)]
Patch for keyboard scenario.
- After DDK gets a buffer, if egl surface is destroyed, the buffer which cannot start rendering
cannot be unrefernced in the case of a mali400.
- This problem that doesn't occur in the previous case using cached buffers(tpl_buffer_t).
- This patch doesn't have an effect on midgard ddk.
- And some logs added, but it will be deleted after deleting tpl_frame_t.
Change-Id: I5f042679aee64b0ad527105f54f527c4fdcdc1ad
joonbum.ko [Wed, 23 Dec 2015 08:15:47 +0000 (17:15 +0900)]
Delete/disable tpl_buffer_t usages.
- Replaced tpl_buffer_t with tbm_surface_h.
- Backend buffer becomes to set by user data of tbm_surface.
Change-Id: Ie99accac51e47c7a672416f9522be72e9a1606a5
joonbum.ko [Tue, 5 Jan 2016 11:41:52 +0000 (20:41 +0900)]
Check validation of target buffer before eglSwapBuffers.
- Add callback function for wl_egl_window_resize.
Change-Id: I066b64e255d21b06b8dc0cabb65f0644b300e84f
Mun, Gwan-gyeong [Thu, 24 Dec 2015 07:22:27 +0000 (16:22 +0900)]
Add exclude architecture - emulator
: emulator uses emulator-yagl which creates egl-wayland package.
Change-Id: Ia13fd1d40e4f757a54fb4adbfc9bb9b880a7fd18
Mun, Gwan-gyeong [Mon, 4 Jan 2016 07:24:12 +0000 (16:24 +0900)]
Remove comment: specific GPU Vendor name.
Change-Id: I88bfead48fd49bc220992d8362e58295acc564c7
joonbum.ko [Wed, 23 Dec 2015 10:04:08 +0000 (19:04 +0900)]
Modify dequeue procedure for client.
- Before this patch, can_dequeue will be locked up when ddk runs heavy rendering.
Change-Id: Iec48aee77158c83cb6b3dfed0a977b9a5595402a
joonbum.ko [Tue, 22 Dec 2015 08:34:25 +0000 (17:34 +0900)]
Prevent an exception about getenv() for EGL_PLATFORM.
Change-Id: I308247b16807a25ad11bcae377e07071ba20f906
joonbum.ko [Tue, 22 Dec 2015 05:52:26 +0000 (14:52 +0900)]
Apply tbm_surface_queue(free queue only) for wl-egl(client).
Change-Id: I138dd23a0f01073a45955215b26f5596a63911bc
Mun, Gwan-gyeong [Fri, 18 Dec 2015 08:13:01 +0000 (17:13 +0900)]
Seperate wayland backend : tpl_wayland and tpl_gbm
Change-Id: I0e94240d16309086edaa35303c5f79050e132748
joonbum.ko [Sun, 13 Dec 2015 14:23:26 +0000 (23:23 +0900)]
Add tpl APIs for destroying/updating cached buffer of client
Change-Id: I4d6d571e40eb39a8d2c5da80de9639ab767d13dc
joonbum.ko [Sun, 13 Dec 2015 14:03:19 +0000 (23:03 +0900)]
Wayland server can use buffer_cache for their render buffer.
- and fix some memory leak.
Change-Id: I616be5365fd3c2b6979581a880279faa2643389f
joonbum.ko [Wed, 9 Dec 2015 05:02:12 +0000 (14:02 +0900)]
Replace tbm_bo_ref/unref with tbm_surface_internal_ref/unref.
- TPL is using only tbm_surface. so replaced tbm_bo_ref/unref functions with
tbm_surface_internal_ref/unref functions.
Change-Id: I3e604629cf881029d889bebbc7b775a2de1c78d2
Mun, Gwan-gyeong [Thu, 10 Dec 2015 08:36:43 +0000 (17:36 +0900)]
TPL_WAYLAND: Add USE_TBM_QUEUE Macro for gbm_tbm_get_surface_queue function prototype.
Fix incorrect function argument type.
Change-Id: If56e7813cf21042257a54896aa6ae84852ab3848
joonbum.ko [Mon, 7 Dec 2015 05:40:32 +0000 (14:40 +0900)]
Delete unnecessary code about wayland-drm.
- Change default protocol of wl_buffer wayland-drm to wayland-tbm.
- Delete build dependency about libwayland-drm.
- Delete unnecessary and unused code.
Change-Id: I3c47d646642cca0afb0b12b3332947b8d06f766a
Mun, Gwan-gyeong [Tue, 8 Dec 2015 07:44:23 +0000 (16:44 +0900)]
TPL_WAYLAND: replace tbm_surface_get_info() to tbm_surface_internal_get_plane_data()
for non supportig hw of gem memory size get.
Change-Id: I4569715e00f35468a8d775b4909950b78f0220e5
Gwan-gyeong Mun [Fri, 4 Dec 2015 12:29:18 +0000 (04:29 -0800)]
Merge changes I9765c65c,Ie82458a6 into tizen
* changes:
tpl_wayland: Fix memory leak
Apply tbm_surface_queue. (default:disabled)