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

8 years agoAdd libtpl-egl test case version 2
xuelian.bai [Wed, 12 Aug 2015 07:06:37 +0000 (15:06 +0800)]
Add libtpl-egl test case version 2

1. Add env TPL_TEST_LOG_LEVEL to control test log level
2. Add tpl buffer and surface stress test
3. Support -t to chose a single test case
4. Add resourse free procedure
5. Fix tab error and file format.

Change-Id: I090e2bbdf2b82f95d5e994bdc33e47d10dc20512

9 years agoReturn TPL_FALSE if tpl_surface_post() fails due to NULL frame->buffer
Sangwon Ha [Fri, 7 Aug 2015 00:45:26 +0000 (09:45 +0900)]
Return TPL_FALSE if tpl_surface_post() fails due to NULL frame->buffer

Change-Id: I646dd659c5e7841b0572cb077e8e085ce02bbc8d

9 years agoRegister Wayland bind functions to backend init function
Xuelian Bai [Thu, 30 Jul 2015 01:04:55 +0000 (09:04 +0800)]
Register Wayland bind functions to backend init function

- Add bind_client_display_handle/unbind_client_display_handle
  (avoid direct calling from ddk)

Change-Id: I24e48ec18e915f4d1e7a2f5ac2406b3803593c76

9 years agoAdd API doc. and TC
Sangwon Ha [Mon, 3 Aug 2015 07:01:29 +0000 (16:01 +0900)]
Add API doc. and TC

Change-Id: I37b7072aabdaf722d77fdd5f6429ed2b912ffa9c

9 years agoAdd hash list and remove DDK dependency
Sangwon Ha [Thu, 30 Jul 2015 02:33:05 +0000 (11:33 +0900)]
Add hash list and remove DDK dependency

- Depend on libwayland-egl-devel for build until Mesa3D is removed
- Change type of 'key' to size_t counteract cases where 'key' is used
  to store pointers in 32/64 bit environments for Wayland backend
- Disable unreachable functions in X11
- Remove un-used variables

Change-Id: I6c92ac0298f3f8ee73771fbd5ace9cd7d2c54fca

9 years agoIncorporate gbm_tbm into release pkg
Sangwon Ha [Fri, 24 Jul 2015 04:54:03 +0000 (13:54 +0900)]
Incorporate gbm_tbm into release pkg

Change-Id: Ib9696d264e28cc1910db1eb5ffb38b1c92d47459

9 years agoEnable X11 backend (DRI2 & DRI3)
joonbum.ko [Wed, 22 Jul 2015 04:21:50 +0000 (13:21 +0900)]
Enable X11 backend (DRI2 & DRI3)

- Unify WINSYS build macro
- Add TTrace
- Separate hash list functions for Utgard and Midgard

Change-Id: I28ba48e3c8b5cb7fe02d8a39ac657e815f8c51c3

9 years agoSet window system backend based on target build config
Sangwon Ha [Wed, 22 Jul 2015 07:14:00 +0000 (16:14 +0900)]
Set window system backend based on target build config

- Add manifest file

Change-Id: I84788be14f58dcb366ccb68733871acc8361636d

9 years agoImplement atomic functions
Sangwon Ha [Tue, 21 Jul 2015 09:54:28 +0000 (18:54 +0900)]
Implement atomic functions

Change-Id: Icff6126cd08ea48f706619a4365e61bba0f2317f

9 years agoAdd libgbm depedency for Wayland and unify backend macro definition
Sangwon Ha [Tue, 21 Jul 2015 06:06:28 +0000 (15:06 +0900)]
Add libgbm depedency for Wayland and unify backend macro definition

Change-Id: Ic519cb2c2548989737fd32b7b404d007757cabaf

9 years agoRemove ARM 32-bit requirement
Sangwon Ha [Tue, 21 Jul 2015 03:57:25 +0000 (12:57 +0900)]
Remove ARM 32-bit requirement

Change-Id: Ifc6c9ffbcb5b696ac6765027ddf500048e3ed42b

9 years agoResolve tbm_bo_map timeout warning
Sangwon Ha [Mon, 20 Jul 2015 04:35:14 +0000 (13:35 +0900)]
Resolve tbm_bo_map timeout warning

Change-Id: I45e569def5668dfb5043ab466fbdc95996ed026d

9 years agoFix incorrect pkg-config info
Sangwon Ha [Mon, 20 Jul 2015 02:04:59 +0000 (11:04 +0900)]
Fix incorrect pkg-config info

Change-Id: Iab8474e0fe3dec772879b7e1239176affd3daa5d

9 years agoSeparate hash list function calls for Midgard and Utgard
Sangwon Ha [Fri, 17 Jul 2015 08:09:43 +0000 (17:09 +0900)]
Separate hash list function calls for Midgard and Utgard

Change-Id: I3cf3234bbbeb6fe6bb37539f31a91ab1f086af81

9 years agoChange pkg name to libtpl-egl and ABI scheme
Sangwon Ha [Fri, 17 Jul 2015 04:33:00 +0000 (13:33 +0900)]
Change pkg name to libtpl-egl and ABI scheme

- ABI now includes minor version
- Remove yield function dependency on DDK

Change-Id: I360af430a266b809944ca4047b3d915a1cb369ca

9 years agoEnable WL_bind_wayland_display extension
Sangwon Ha [Thu, 16 Jul 2015 09:38:06 +0000 (18:38 +0900)]
Enable WL_bind_wayland_display extension

Change-Id: I1cd9e6ea1d80013445a51c231b0ae6e44809f67c

9 years agoAdd missing dependency and modify devel pkg
Sangwon Ha [Thu, 16 Jul 2015 08:42:39 +0000 (17:42 +0900)]
Add missing dependency and modify devel pkg

- Add libwayland-drm dependency for Wayland
- Include all TPL header files in devel pkg

Change-Id: Ic755c859ccf886388655b58ee709a1f1602f5ba5

9 years agoFix build error for Wayland backend
Sangwon Ha [Wed, 15 Jul 2015 10:58:05 +0000 (19:58 +0900)]
Fix build error for Wayland backend

Change-Id: Id890cc46a3b7e04f90da9b647acc48d6c3c557b6

9 years agoAdd missing TPL source files
Sangwon Ha [Wed, 15 Jul 2015 09:30:16 +0000 (18:30 +0900)]
Add missing TPL source files

Change-Id: I48a1da8cf9ab3ea67e773d9225589c4f16e0485f

9 years agoRemove clz function dependecy on DDK
Sangwon Ha [Tue, 14 Jul 2015 13:30:24 +0000 (22:30 +0900)]
Remove clz function dependecy on DDK

Change-Id: I03a3aaed05e6aac5d0278971ee27b1b40074c9e7

9 years agoRemove EGL/OpenGL ES dependency
Sangwon Ha [Tue, 14 Jul 2015 07:30:16 +0000 (16:30 +0900)]
Remove EGL/OpenGL ES dependency

Change-Id: I8672095f217a02066dba4bd14773987fbf2e0e5b

9 years agoAdd initial TPL implementation
Sangwon Ha [Tue, 14 Jul 2015 02:45:22 +0000 (11:45 +0900)]
Add initial TPL implementation

Change-Id: I67a88ac40581f72dfe0d0d751edcbbb8653a3eb3

9 years agoSetup build environment
Sangwon Ha [Fri, 10 Jul 2015 04:41:28 +0000 (13:41 +0900)]
Setup build environment

Change-Id: I8c72161c28e9349e812c0cadcf61a07415f3df15

9 years agoInitial commit
Sangwon Ha [Mon, 6 Jul 2015 06:09:56 +0000 (15:09 +0900)]
Initial commit

Change-Id: I62b56a4101ae9d65463af86c89dbd2e051487801