platform/core/uifw/libtpl-egl.git
7 years agotpl_wayland_egl: Add Null check on wayland_egl_buffer and wayland_egl_surface of... 43/84843/1 accepted/tizen/common/20160824.154228 accepted/tizen/ivi/20160824.055144 accepted/tizen/mobile/20160824.055013 accepted/tizen/tv/20160824.055049 accepted/tizen/wearable/20160824.055116 submit/tizen/20160823.022539
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>
7 years agotpl-wayland-egl: Add tracking list of tbm_surface in order to track dequeued buffers. 77/83277/2 accepted/tizen/common/20160811.145708 accepted/tizen/ivi/20160811.002732 accepted/tizen/mobile/20160811.002712 accepted/tizen/tv/20160811.002709 accepted/tizen/wearable/20160811.003039 submit/tizen/20160810.082140
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>
7 years agotpl-wayland-egl: Change some contents of the structure tpl_wayland_egl_buffer_t,... 80/82580/3
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>
7 years agotpl-wayland-egl: Add tracking list of tbm_surface in order to track attached buffers. 79/82579/2
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

8 years agoAdded the exception checking codes about tbm_surface when release_cb called. 74/80574/2 accepted/tizen/common/20160805.125741 submit/tizen/20160804.041907
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>
8 years agoCall wl_display_dispatch_pending() once before client surface is finalized. 81/80481/3
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>
8 years agoAdded codes about processing for event_queue of wl_tbm_queue. 75/79775/4
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>
8 years agotpl-wayland-egl: change usage of libtdm-cleint api 58/77858/4 sandbox/hoyub/devel
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

8 years agoDeleted unnecessary code. 25/76225/1 accepted/tizen/common/20160703.125905 accepted/tizen/ivi/20160629.020953 accepted/tizen/mobile/20160629.021022 accepted/tizen/tv/20160629.020958 accepted/tizen/wearable/20160629.021002 submit/tizen/20160628.092313 submit/tizen_common/20160701.180000
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>
8 years agoPrevent the case that cannot receive the release event. 24/76224/1
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>
8 years agoAdd fd polling for receive the vsync event. 84/74984/1
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

8 years agoReorganize TPL log system. 83/74983/1
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>
8 years agotpl-wayland-egl: remove a wl_queue 25/74025/2
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

8 years agoAdd Null check on wl_surface of wl_egl_create_window(). 28/68028/2
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

8 years agoInitialize reset flag after tbm_surface_queue_dequeue. 81/70081/1 accepted/tizen/common/20160519.191042 accepted/tizen/ivi/20160519.002720 accepted/tizen/mobile/20160519.002655 accepted/tizen/tv/20160519.002714 accepted/tizen/wearable/20160519.002702 submit/tizen/20160518.053034
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>
8 years agoChange indent : 8 tab size -> 4 tab size 80/69280/1
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

8 years agoSupport frontbuffer mode 70/69270/1
Sangjin Lee [Thu, 28 Apr 2016 05:42:27 +0000 (14:42 +0900)]
Support frontbuffer mode

Change-Id: Ie40e463ceaa83c34ea6e12fd76b660275f11c951

8 years agoAdd routine for validation checking about tbm_surface before using tbm_surface_intern... 60/68460/3 accepted/tizen/common/20160513.123254 accepted/tizen/ivi/20160513.004524 accepted/tizen/mobile/20160513.004531 accepted/tizen/tv/20160513.004519 accepted/tizen/wearable/20160513.004508 submit/tizen/20160512.073631
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

8 years agoOrganize ttrace log. 63/68163/5
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

8 years agoAdd Null Check before pointer dereference on tbm backend. 65/68765/1 accepted/tizen/common/20160511.141944 accepted/tizen/ivi/20160512.050520 accepted/tizen/mobile/20160512.050515 accepted/tizen/tv/20160512.050504 accepted/tizen/wearable/20160512.050458 submit/tizen/20160510.120322
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

8 years agoAdd missing requires on libwayland-egl-devel 95/67995/1 accepted/tizen/common/20160504.125106 accepted/tizen/ivi/20160503.092522 accepted/tizen/mobile/20160503.092433 accepted/tizen/tv/20160503.092443 accepted/tizen/wearable/20160503.092507 submit/tizen/20160502.043551 submit/tizen/20160502.114011
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

8 years agoAdd build enable architecture on emulator: x86, x86_64 39/67539/1
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

8 years agoMerge "tbm: check need_dpy_deinit" into tizen
Gwan-gyeong Mun [Tue, 26 Apr 2016 12:16:33 +0000 (05:16 -0700)]
Merge "tbm: check need_dpy_deinit" into tizen

8 years agotbm: check need_dpy_deinit 32/67432/1
Sangjin Lee [Tue, 26 Apr 2016 11:54:50 +0000 (20:54 +0900)]
tbm: check need_dpy_deinit

Change-Id: Ib13fe70e133e2f63f4a520acda4f068dc34d33d4

8 years agoMove tpl_surface's query_supported_buffer_count feature to tpl_display. 40/66840/2 accepted/tizen/common/20160425.145011 accepted/tizen/ivi/20160425.231441 accepted/tizen/mobile/20160425.231419 accepted/tizen/tv/20160425.231434 accepted/tizen/wearable/20160425.231423 submit/tizen/20160425.054500
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

8 years agoDelete repeated wrong code. 03/66503/1 accepted/tizen/common/20160421.161322 accepted/tizen/ivi/20160420.043048 accepted/tizen/mobile/20160420.043001 accepted/tizen/tv/20160420.043013 accepted/tizen/wearable/20160420.043029 submit/tizen/20160419.083457
joonbum.ko [Tue, 19 Apr 2016 08:09:48 +0000 (17:09 +0900)]
Delete repeated wrong code.

Change-Id: I3cf3cfd3b84b65fe8fb62d95c000102c8341745a

8 years agotbm_surface_internal_unref has to called before get_user_data. 78/66478/2
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

8 years agoChange file mode bits. 28/66428/1
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

8 years agoSet user_data to tbm_surface not tbm_bo 74/66274/1
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

8 years agoFix "tpl_surface_get_swapchain_buffers() returns only one buffer" problem 41/66141/1
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

8 years agoMerge "Add internal function for wl_surface_commit." into tizen
Gwan-gyeong Mun [Fri, 15 Apr 2016 08:14:50 +0000 (01:14 -0700)]
Merge "Add internal function for wl_surface_commit." into tizen

8 years agoRevert "Add Null check on wl_surface of wl_egl_create_window()." 06/66106/2
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

8 years agoAdd internal function for wl_surface_commit. 82/66082/3
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

8 years agoset the wl_tbm_queue proxy to the wl_queue 27/65427/3
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

8 years agoAdd Null check on wl_surface of wl_egl_create_window(). 72/64772/1
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

8 years agoSupport wayland vulkan wsi backend / frontend 72/64672/4 accepted/tizen/common/20160405.132514 accepted/tizen/common/20160412.130601 accepted/tizen/ivi/20160405.013146 accepted/tizen/ivi/20160412.005831 accepted/tizen/mobile/20160405.013054 accepted/tizen/mobile/20160412.005813 accepted/tizen/tv/20160405.013113 accepted/tizen/tv/20160412.005720 accepted/tizen/wearable/20160405.013133 accepted/tizen/wearable/20160412.005741 submit/tizen/20160404.145152 submit/tizen/20160411.104859
Mun, Gwan-gyeong [Fri, 1 Apr 2016 12:05:47 +0000 (21:05 +0900)]
Support wayland vulkan wsi backend / frontend

Change-Id: I0ba8249947b470c20d467e536b55ca0ad1d30f17

8 years agoCall wl_display_dispatch_queue_pending before checking dequeuable. 39/64139/2
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

8 years agowayland: Change for scanout-queue 12/62212/2 accepted/tizen/ivi/20160324.011832 accepted/tizen/mobile/20160324.011644 accepted/tizen/tv/20160324.011725 accepted/tizen/wearable/20160324.011752 submit/tizen/20160323.123653 submit/tizen/20160323.130249 submit/tizen/20160323.180254 submit/tizen/20160324.002022
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

8 years agoChange the function of describing error number: strerror to strerror_r 85/62685/1 accepted/tizen/common/20160318.145601 accepted/tizen/ivi/20160318.113546 accepted/tizen/mobile/20160318.113325 accepted/tizen/tv/20160318.113429 accepted/tizen/wearable/20160318.113405 submit/tizen/20160317.105611
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

8 years agoRemove unused internal APIs 02/62602/1 accepted/tizen/common/20160317.160637 accepted/tizen/ivi/20160318.112835 accepted/tizen/mobile/20160318.112117 accepted/tizen/tv/20160318.112507 accepted/tizen/wearable/20160318.112451 submit/tizen/20160317.041106
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

8 years agoChange deprecated API 07/62107/1 accepted/tizen/common/20160315.221245 accepted/tizen/ivi/20160315.002954 accepted/tizen/mobile/20160315.002910 accepted/tizen/tv/20160315.002923 accepted/tizen/wearable/20160315.002940 submit/tizen/20160314.102122
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

8 years agoRemove potential defect: It doest not need to call __tpl_hashlist_delete() when the... 63/61463/3 submit/tizen/20160314.085344
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

8 years agoChange timing of buffer reset on egl_window resize case. 04/62004/1
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

8 years agoFix compile warning: suggest parentheses around assignment used as truth value 03/62003/1
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

8 years agoAdd get_buffer_from_native_pixmap, get_pixmap_info for supporting of eglCreateImageK... 07/60607/2
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

8 years agoModify spec file for installing license files. 95/61895/1 accepted/tizen/ivi/20160313.233621 accepted/tizen/mobile/20160313.233432 accepted/tizen/tv/20160313.233541 accepted/tizen/wearable/20160313.233516 submit/tizen/20160311.062829
joonbum.ko [Fri, 11 Mar 2016 05:39:48 +0000 (14:39 +0900)]
Modify spec file for installing license files.

Change-Id: I37072c36733b622bf39aab09a14e4e7cb8d1297d

8 years agoFix No unlock for mutex 'runtime_mutex' case. 95/61395/1 accepted/tizen/common/20160308.142426 accepted/tizen/ivi/20160308.023735 accepted/tizen/mobile/20160308.023603 accepted/tizen/tv/20160308.023633 accepted/tizen/wearable/20160308.023705 submit/tizen/20160307.123230
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

8 years agoFix free after use. 94/61394/1
Mun, Gwan-gyeong [Mon, 7 Mar 2016 11:04:56 +0000 (20:04 +0900)]
Fix free after use.

Change-Id: I336fff939247d4b3da8b921e0846360d1f983191

8 years agoAdd enqueue buffer dump on gbm backend 93/61393/1
Mun, Gwan-gyeong [Mon, 7 Mar 2016 10:55:39 +0000 (19:55 +0900)]
Add enqueue buffer dump on gbm backend

Change-Id: Ib5b998d7d9f66fa9f9ea809568acd5ca87bf9262

8 years agoFix unreachable state. 92/61392/1
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

8 years agoApply coding style 68/59868/1 accepted/tizen/wearable/20160307.020709 submit/tizen_wearable/20160304.133021
Mun, Gwan-gyeong [Fri, 19 Feb 2016 05:37:35 +0000 (14:37 +0900)]
Apply coding style

Change-Id: I5c3d76f1ba6fcabb98d3d472a9985eb7887ba86a

8 years agoIncrement version to 1.0.0 27/59727/2
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

8 years agoFix indent, typo, build warnning 11/59711/1
Mun, Gwan-gyeong [Wed, 17 Feb 2016 17:25:48 +0000 (02:25 +0900)]
Fix indent, typo, build warnning

Change-Id: I0430791e127f5d3035cc2b57550b66022eff100b

8 years agoAdd enumeration for tpl result type. 64/59664/2
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

8 years agoAdd API tpl_surface_enqueue_buffer_with_damage. 63/59663/1
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

8 years agoDelete API tpl_surface_set/get_damage. 62/59662/1
joonbum.ko [Tue, 16 Feb 2016 08:09:32 +0000 (17:09 +0900)]
Delete API tpl_surface_set/get_damage.

Change-Id: I911464516280f88d802c99f79aac8f7940f88ae6

8 years agoRemove meanless APIs 68/59568/2
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

8 years agorevise tpl_util_map 74/59574/1
Sangjin Lee [Tue, 16 Feb 2016 11:59:44 +0000 (20:59 +0900)]
revise tpl_util_map

Change-Id: I9474d38989c4ad6c79ac32c0f892a4d262789384

8 years agoSupport tpl_objet_set_user_data() by key 87/59487/3
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

8 years agoChange API: tpl_display_get() 81/59481/1
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

8 years agoRemove unused APIs on tpl_display. 77/59477/1
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

8 years agoDelete API tpl_display_get_bufmgr_fd. 97/59397/2
joonbum.ko [Mon, 15 Feb 2016 05:16:56 +0000 (14:16 +0900)]
Delete API tpl_display_get_bufmgr_fd.

Change-Id: I2617aa29b5d7716723b5f3715076453d6828e7a4

8 years agoRename some front-end APIs of tpl_display. 96/59396/3
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

8 years agoAdd API tpl_get_native_buffer. 94/59294/1
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

8 years agoChange API names about get_buffer & post. 93/59293/1
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

8 years agoDelete tpl_format_t and replace with tbm_format. 92/59292/1
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

8 years agoDelete tpl_frame_t and change some APIs 91/59291/1
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

8 years agoAdd exclude architecture - x86, x86_64 81/57381/2 accepted/tizen/common/20160128.122159 accepted/tizen/ivi/20160218.024211 accepted/tizen/mobile/20160127.002655 accepted/tizen/tv/20160127.002716 submit/tizen/20160126.081256 submit/tizen_common/20160127.121751 submit/tizen_common/20160127.161648 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000004
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

8 years agoadd tbm backend 99/57799/1
Sangjin Lee [Thu, 21 Jan 2016 06:47:13 +0000 (15:47 +0900)]
add tbm backend

Change-Id: Ide4b4b55f6c8f3a006b1126f309690ef85f2e391

8 years agoAdd tpl_display_get_bufmgr_fd() to scheduled to deprecated api 16/57416/1
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

8 years agoRemove unnecessary tpl_display_get_bufmgr_fd() api. 87/57287/1
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

8 years agoRemove unnecessary TPL_OBJECT type. 86/57286/1
Mun, Gwan-gyeong [Mon, 18 Jan 2016 14:38:28 +0000 (23:38 +0900)]
Remove unnecessary TPL_OBJECT type.

Change-Id: Icbe7d442bb061a3c25226920d7a2cc5455f57a93

8 years agoRemove specific GPU name. libtpl-egl is not dependant on the specific gpu. 85/57285/1
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

8 years agoUnnecessary APIs and file related to tpl_buffer was deleted. 44/56744/1
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

8 years agoPatch for keyboard scenario. 43/56743/1
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

8 years agoDelete/disable tpl_buffer_t usages. 42/56742/1
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

8 years agoCheck validation of target buffer before eglSwapBuffers. 48/56348/1
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

8 years agoAdd exclude architecture - emulator 98/56298/1 accepted/tizen/mobile/20160108.010220 accepted/tizen/tv/20160108.010522 submit/tizen_mobile/20160105.110407 submit/tizen_tv/20160105.110358
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

8 years agoRemove comment: specific GPU Vendor name. 83/56083/2 submit/tizen_common/20160104.140200
Mun, Gwan-gyeong [Mon, 4 Jan 2016 07:24:12 +0000 (16:24 +0900)]
Remove comment: specific GPU Vendor name.

Change-Id: I88bfead48fd49bc220992d8362e58295acc564c7

8 years agoModify dequeue procedure for client. 75/55375/2
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

8 years agoPrevent an exception about getenv() for EGL_PLATFORM. 12/55212/1
joonbum.ko [Tue, 22 Dec 2015 08:34:25 +0000 (17:34 +0900)]
Prevent an exception about getenv() for EGL_PLATFORM.

Change-Id: I308247b16807a25ad11bcae377e07071ba20f906

8 years agoApply tbm_surface_queue(free queue only) for wl-egl(client). 63/55163/2
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

8 years agoSeperate wayland backend : tpl_wayland and tpl_gbm 81/55081/2 accepted/tizen/mobile/20151223.053232 accepted/tizen/tv/20151223.053401 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_mobile/20151222.091330 submit/tizen_tv/20151222.090910
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

8 years agoAdd tpl APIs for destroying/updating cached buffer of client 55/54155/1
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

8 years agoWayland server can use buffer_cache for their render buffer. 54/54154/1
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

8 years agoReplace tbm_bo_ref/unref with tbm_surface_internal_ref/unref. 53/54153/1
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

8 years agoTPL_WAYLAND: Add USE_TBM_QUEUE Macro for gbm_tbm_get_surface_queue function prototype. 38/53938/1
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

8 years agoDelete unnecessary code about wayland-drm. 08/53708/1
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

8 years agoTPL_WAYLAND: replace tbm_surface_get_info() to tbm_surface_internal_get_plane_data() 33/53633/1
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

8 years agoMerge changes I9765c65c,Ie82458a6 into tizen submit/devel/coregl/20151207.044116
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)

8 years agotpl_wayland: Fix memory leak 97/53397/1
Sangjin Lee [Fri, 4 Dec 2015 12:17:10 +0000 (21:17 +0900)]
tpl_wayland: Fix memory leak

Change-Id: I9765c65c40e297d4cb8f488def5db29920b80516
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agoAdd arm architecture build feature : ARM_ATOMIC_OPERATION 59/53159/1 submit/devel/coregl/20151204.063909 submit/tizen_mobile/20151204.053947 submit/tizen_tv/20151204.053802
Mun, Gwan-gyeong [Wed, 2 Dec 2015 08:20:58 +0000 (17:20 +0900)]
Add arm architecture build feature : ARM_ATOMIC_OPERATION

Change-Id: I395898836f364e7d3b13b1005aa9090972cbc996

8 years agoApply tbm_surface_queue. (default:disabled) 22/53022/2
joonbum.ko [Wed, 25 Nov 2015 13:34:18 +0000 (22:34 +0900)]
Apply tbm_surface_queue. (default:disabled)

Change-Id: Ie82458a69cd254da25746960258a3a4bfcf78db5

8 years agoEnable wayland-tbm buffer cache feature. 08/53108/3 submit/tizen_mobile/20151202.065613 submit/tizen_tv/20151202.065316
Sangjin Lee [Wed, 2 Dec 2015 02:03:51 +0000 (11:03 +0900)]
Enable wayland-tbm buffer cache feature.

Change-Id: Ifde1adc4975f9087a351c0a414ad5506c19b5504

8 years agoDisable tpl_buffer_cache on wayland_tbm 04/53104/1
Mun, Gwan-gyeong [Wed, 2 Dec 2015 01:24:28 +0000 (10:24 +0900)]
Disable tpl_buffer_cache on wayland_tbm
  : Wayland_TBM protocol does not support client's buffer destroy callback.

Change-Id: Ibb8d58070f69a33137bfd4a03a3ff73255ad5778

8 years agoRemove unnecessary tbm_bo_unref. 03/53103/1
Mun, Gwan-gyeong [Wed, 2 Dec 2015 01:15:42 +0000 (10:15 +0900)]
Remove unnecessary tbm_bo_unref.

Change-Id: I76f3de03a295241a110bc659f42eb3f708df239a

8 years agoDisable wayland-drm dependancy. 56/52956/1
Mun, Gwan-gyeong [Mon, 30 Nov 2015 08:01:28 +0000 (17:01 +0900)]
Disable wayland-drm dependancy.

Change-Id: Ifde340ffc0a73510c3a1f2a11508ac0f1dd00b09

8 years agoMerge branch 'spin-tizen_3.0' into tizen
Mun, Gwan-gyeong [Mon, 30 Nov 2015 07:29:05 +0000 (16:29 +0900)]
Merge branch 'spin-tizen_3.0' into tizen

Change-Id: I2a53815ebaa42fbd449418d3a36778f1dc9e8b7e

8 years agoGet stride info from gbm_tbm_bo for buffer creating.
joonbum.ko [Fri, 20 Nov 2015 13:38:42 +0000 (22:38 +0900)]
Get stride info from gbm_tbm_bo for buffer creating.

Change-Id: I0e0d8096527e46100787363c64da8b082ea7d936

8 years agoAdd libwayland-egl package
Mun, Gwan-gyeong [Tue, 24 Nov 2015 08:55:26 +0000 (17:55 +0900)]
Add libwayland-egl package

Change-Id: Icac4d36d3eab4186ea38a3984db10cab2e9ea628