platform/core/uifw/libtpl-egl.git
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

8 years agoAdd missed library linking of wayaland-tbm-server.
Mun, Gwan-gyeong [Sun, 22 Nov 2015 10:51:57 +0000 (19:51 +0900)]
Add missed library linking of wayaland-tbm-server.

Change-Id: Ia2e33a17a7a8648849959f66df4a6f6dd9a753df

8 years agoAdd wayland display unbind on wayland display fini.
Mun, Gwan-gyeong [Sun, 22 Nov 2015 07:50:38 +0000 (16:50 +0900)]
Add wayland display unbind on wayland display fini.

Change-Id: I2c21ba31bef36da36ff2ab6183b3fce7c9621576

8 years agoMerge branch 'sandbox/lsj119/devel' into tizen_3.0
Sangjin Lee [Fri, 20 Nov 2015 12:58:08 +0000 (21:58 +0900)]
Merge branch 'sandbox/lsj119/devel' into tizen_3.0
gbm-tbm: move to libgbm
Add COPYING for MIT license

Change-Id: I1a83fd77b02e5876e37b6b9f93c1dc54712f58be

8 years agoAdd COPYING for MIT licese
Sangjin Lee [Fri, 20 Nov 2015 11:23:30 +0000 (20:23 +0900)]
Add COPYING for MIT licese

Change-Id: Ie9040ab8d06668496a7ffce34ca326d4e9c27135
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agogbm-tbm: move to libgbm
Sangjin Lee [Fri, 20 Nov 2015 08:38:21 +0000 (17:38 +0900)]
gbm-tbm: move to libgbm

Change-Id: I758dd151c58fe36e1e5bea8ab200460a3871ebc2
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
8 years agoFix for memory leak issue.
joonbum.ko [Mon, 16 Nov 2015 04:27:56 +0000 (13:27 +0900)]
Fix for memory leak issue.

 - When server uses wl_drm_buffer there are not correct pair of tbm_bo_ref/unref.
   It was fixed by deleting code about tbm_bo_ref when getting pixmap surface buffer.
 - Add [HOT-FIX] for same reason about when server uses wl_tbm.

Change-Id: I7f2a9a29d3fcf433f6920eb90faac3f7cf38f3e3

8 years agoFix missed tbm_bo unreference (free) on wayland_surface_create_buffer_from_wl_egl...
Mun, Gwan-gyeong [Sun, 15 Nov 2015 13:58:53 +0000 (22:58 +0900)]
Fix missed tbm_bo unreference (free)  on wayland_surface_create_buffer_from_wl_egl() while using WL_TBM protocol.

Change-Id: Iba0a40a13c995e0ace4f1342f588a18ebae0272d

8 years agoSupport gbm_bo_import for wl_buffer on WL_TBM protocol
Mun, Gwan-gyeong [Sun, 15 Nov 2015 13:57:02 +0000 (22:57 +0900)]
Support gbm_bo_import for wl_buffer on WL_TBM protocol
  usecase: if compositor wants direct-rendering with client's wl_buffer, compositor can use gbm_bo_import with wl_buffer.

Change-Id: I05c89a1aa76eec0b9b3ea24fc78fdd2583e44225

8 years agoFix TPL_USING_WAYLAND_TBM build scope
Mun, Gwan-gyeong [Sun, 15 Nov 2015 13:25:11 +0000 (22:25 +0900)]
Fix TPL_USING_WAYLAND_TBM build scope
 - for tbm_bufmgr_deinit
Remove unused code.

Change-Id: Ib2988505e63bb974e33f70f71bb4330390a51be9

8 years agoChange internal buffer management on tbm_bo of wayland module.
Mun, Gwan-gyeong [Sun, 15 Nov 2015 13:24:26 +0000 (22:24 +0900)]
Change internal buffer management on tbm_bo of wayland module.
   - previous: using create tbm_bo / unref_tbm_bo
   - current: create tbm_surface / destroy_tbm_surface / get tbm_bo from tbm_surface

Change-Id: I631568445223f35223dace0819ace2a365dd98c9

8 years agoChange file mode bits.
Mun, Gwan-gyeong [Wed, 11 Nov 2015 06:29:29 +0000 (15:29 +0900)]
Change file mode bits.
  : remove execute bit on source file.

Change-Id: I8713857102a8676f7f2fbae54048a2bfe4019af4

8 years agoAdd routine of getting tbm_surface for pixmap surface using wayland-tbm.
joonbum.ko [Tue, 10 Nov 2015 13:28:12 +0000 (22:28 +0900)]
Add routine of getting tbm_surface for pixmap surface using wayland-tbm.

 - It will be good works using WL_TBM interface.
 - But it has to work with fixed enlightenment.
   buffer->type == E_COMP_WL_BUFFER_TYPE_NATIVE

Change-Id: I7ba21ba07fb89c1e5f3a2750fb620f4e423081b3

8 years ago[Hot fix] for 'e19 crash issue'
joonbum.ko [Fri, 6 Nov 2015 10:28:49 +0000 (19:28 +0900)]
[Hot fix] for 'e19 crash issue'

 - It will be deleted after kernel side problem is fixed.

Change-Id: I59abc42d4ebefa381d2508b01a6a85174cfc61cc

8 years agoChange tbm buffer allocating method for hardware dependant stride (pitch).
Mun, Gwan-gyeong [Thu, 5 Nov 2015 08:44:16 +0000 (17:44 +0900)]
Change tbm buffer allocating method for hardware dependant stride (pitch).
 - tbm_surface_internal_create_with_flags() function allocate buffer with hardware's right stride.

Change-Id: Ibead122e802b1b81dade6c12748fefa4906bb18e

8 years agoAdd build config for using wayland-tbm at spec file.
joonbum.ko [Thu, 5 Nov 2015 06:12:03 +0000 (15:12 +0900)]
Add build config for using wayland-tbm at spec file.

Change-Id: I36cabc27eab81d0c0bd76b01d58fd780b15cd193

8 years agoAdd png dumping util for only dev-code.
joonbum.ko [Wed, 4 Nov 2015 10:16:05 +0000 (19:16 +0900)]
Add png dumping util for only dev-code.

- How to use dump utils
  1. At codes, add TPL_IMAGE_DUMP to where you want.
     TPL_IMAGE_DUMP((bo_handle.ptr)data, (int)width, (int)height, (int)tpl_surface->dump_count)
  2. Build the codes. (gbs build)
     If you want to use dumping to PNG image, set value ENABLE_PNG_DUMP to 1.
  3. Install this package to target, and set environment TPL_DUMP_LEVEL=1 or 2.
     TPL_DUMP_LEVEL=1 (bmp dump)    TPL_DUMP_LEVEL=2 (png dump)
  4. If dump processing was surccess, result images will be saved at '/tmp/tpl_dump' directory.

Change-Id: I36cb83d60fdfe0c0635203cf775186fe999298e7

8 years agoDelete code about wayland-tbm-server.
joonbum.ko [Wed, 4 Nov 2015 08:12:28 +0000 (17:12 +0900)]
Delete code about wayland-tbm-server.

 - It will be iniatialized and used in E19(server).
 - libtpl-egl only support wayland-tbm-client.

Change-Id: Ieb8ebd603e1e29e18336322c5555999c25dee140

8 years agoInitial empty repository master
KyungMi Lee [Thu, 5 Nov 2015 04:25:24 +0000 (20:25 -0800)]
Initial empty repository

8 years agoDelete unnecessary code and add TPL_DUMP util.
joonbum.ko [Tue, 3 Nov 2015 04:51:34 +0000 (13:51 +0900)]
Delete unnecessary code and add TPL_DUMP util.

 - Modify the wrong use of wl_resource/wl_buffer to using wl_proxy.

Change-Id: I5c6b314ff3767533e31018fd2a102d4750d0efa8

8 years agoAdd functional flag TPL_USING_WL_TBM.
joonbum.ko [Tue, 27 Oct 2015 06:28:07 +0000 (15:28 +0900)]
Add functional flag TPL_USING_WL_TBM.

 - It will be used to enable/disable for wl_tbm.

Change-Id: If57b93605e22bfb3caa09346d693ce3575d52f2b

8 years agoFixing back buffer management for client.(2/2)
joonbum.ko [Fri, 23 Oct 2015 08:14:32 +0000 (17:14 +0900)]
Fixing back buffer management for client.(2/2)

Change-Id: I0d938e76cab84d9b0543102d8b83deb38d8074b7

8 years agoFixing back buffer management for client.(1/2)
joonbum.ko [Thu, 22 Oct 2015 03:59:42 +0000 (12:59 +0900)]
Fixing back buffer management for client.(1/2)

 - This patch is similar to 862bdee886fc25e6b204b45622c853e4600688b3(SHA1 ID)

Change-Id: I6140002541bbd5846e26b8184d12974f4e46b433

8 years agoChange TBM_DEVICE_MM to TBM_DEVICE_3D when using tbm_bo_map.
joonbum.ko [Tue, 20 Oct 2015 10:49:44 +0000 (19:49 +0900)]
Change TBM_DEVICE_MM to TBM_DEVICE_3D when using tbm_bo_map.

Change-Id: Ica2c1d2f70db8e27f2fb1d14cee5ae58729217e7

8 years agoReducing function call for checking type of display.
joonbum.ko [Tue, 20 Oct 2015 07:22:18 +0000 (16:22 +0900)]
Reducing function call for checking type of display.

 - The function '__tpl_wayland_display_is_wl_display' was called over 2 times in every frame.
  It was an inefficiency code structure. so, After this modification,
  this function will be called just one time when display initialized.

Change-Id: I1e29e29025e976ad1b99a37923eef45d7a76197b

8 years agoFixing back buffer management for server.
joonbum.ko [Mon, 19 Oct 2015 06:21:41 +0000 (15:21 +0900)]
Fixing back buffer management for server.

 - Server is not going to use able_rendering_queue for management of back buffers.
 - Pointer array is more suitable than list queue for management.

Change-Id: I18de8d5d6f2f1c8cb8108f02ca79f80f098b6c72

8 years agoApplying wayland-tbm-server instead of wayland-drm
joonbum.ko [Thu, 8 Oct 2015 08:22:26 +0000 (17:22 +0900)]
Applying wayland-tbm-server instead of wayland-drm

 - It will be deleted.
 - wayland-tbm-server will be used by e19.

Change-Id: If0a6b7e01699f6fb98aea4f91de0bebb8e8fb1bd

8 years agoApplying wayland-tbm-client instead of wayland-drm
joonbum.ko [Wed, 7 Oct 2015 10:27:10 +0000 (19:27 +0900)]
Applying wayland-tbm-client instead of wayland-drm

Change-Id: Ia6d42e3d2da8ead4022aef895e3846b6a62ec8b2

8 years ago[Ver-0.8.8] Remove unneccessary tbm_bo_map/unmap
Keeho Song [Wed, 4 Nov 2015 08:00:14 +0000 (17:00 +0900)]
[Ver-0.8.8] Remove unneccessary tbm_bo_map/unmap

Change-Id: I573d4ceb9663182931af2419347265e1cca65fcb

8 years ago[Ver-0.8.7] Delete hard code about ARGB8888 format.
joonbum.ko [Tue, 3 Nov 2015 07:12:17 +0000 (16:12 +0900)]
[Ver-0.8.7] Delete hard code about ARGB8888 format.

Change-Id: I9af3c49c932be5f4069d898257720890c3230c11

8 years ago[Ver-0.8.6] Fix some bugs for enabling dri2 backend.
joonbum.ko [Fri, 30 Oct 2015 02:25:25 +0000 (11:25 +0900)]
[Ver-0.8.6] Fix some bugs for enabling dri2 backend.

Change-Id: Ie32a94c4cb22e93e67fbb9f236d3206c1d88e61a

8 years ago[Ver-0.8.6] Add map count value for tpl_buffer management.
joonbum.ko [Thu, 29 Oct 2015 07:13:14 +0000 (16:13 +0900)]
[Ver-0.8.6] Add map count value for tpl_buffer management.

Change-Id: I61676c17c7cefc8dd48823b07eb6fab8b1dd830a

8 years ago[Ver-0.8.6] Change TBM_DEVICE_MM to TBM_DEVICE_3D when using tbm_bo_map.
joonbum.ko [Tue, 20 Oct 2015 10:49:44 +0000 (19:49 +0900)]
[Ver-0.8.6] Change TBM_DEVICE_MM to TBM_DEVICE_3D when using tbm_bo_map.

Change-Id: Icdeb50dddd5a0ca5dc663b7ba2376a5543dfb9a3

8 years ago[Ver-0.8.6] Add missing tbm_bo reference count & set wl_drm for gbm_tbm
joonbum.ko [Fri, 23 Oct 2015 08:46:12 +0000 (17:46 +0900)]
[Ver-0.8.6] Add missing tbm_bo reference count & set wl_drm for gbm_tbm

Change-Id: I182c417d0fa131d23bae58391d979537bb9519c5

8 years ago[Ver-0.8.5] Change log printing to using DLOG.
joonbum.ko [Mon, 5 Oct 2015 09:45:43 +0000 (18:45 +0900)]
[Ver-0.8.5] Change log printing to using DLOG.

Change-Id: Idd28b1ca51d98747d7bfc3d917e65fb9801d0b65

8 years ago[rel-05] Temporary fix to e19 crash on boot
Keeho Song [Thu, 1 Oct 2015 07:59:19 +0000 (16:59 +0900)]
[rel-05] Temporary fix to e19 crash on boot

Change-Id: I84ca98452d3484458271b0a3375750a825c3d0db

8 years ago[Ver-0.8.4] Hot fix for failure of tpl_display_get when client use other language.
joonbum.ko [Wed, 30 Sep 2015 09:57:52 +0000 (18:57 +0900)]
[Ver-0.8.4] Hot fix for failure of tpl_display_get when client use other language.

Change-Id: Ief6755c7a314111e03960b842dc48b23160ffdbb

8 years ago[Ver-0.8.3] Add a function for giving backend type to ddk.
joonbum.ko [Mon, 14 Sep 2015 07:11:14 +0000 (16:11 +0900)]
[Ver-0.8.3] Add a function for giving backend type to ddk.

 - Delete TPL_ASSERT checking region is null.

Change-Id: Ic8ff39f85be4ba5b07ff4e079dcd806694013fc0

8 years agoAdd YUV format
Xuelian Bai [Wed, 9 Sep 2015 01:39:43 +0000 (09:39 +0800)]
Add YUV format

Change-Id: I7e0b8694b83b42ad17c31a5e9f5861460480a388

8 years ago[Ver-0.8.2] Get depth from tpl_format
xing.huang [Wed, 26 Aug 2015 06:08:18 +0000 (14:08 +0800)]
[Ver-0.8.2] Get depth from tpl_format

- Depth was hard-coded to 32

Change-Id: I8d2fc28ff012794f316f44429030ba3cce88ea86

8 years ago[Ver-0.8.1] Add error checking code
Sangwon Ha [Fri, 7 Aug 2015 02:36:39 +0000 (11:36 +0900)]
[Ver-0.8.1] Add error checking code

- Distinguish internal functions and externally exposed functions
- Assert non-null arguments for internal functions
- Reinforce error checking in externally exposed functions
- Add documentation

Change-Id: Id1ff07a28515e0ac75c4c098a450e68d361d22d4