platform/core/uifw/coregl.git
4 years agoDeleted the dependency of libgbm. 45/209245/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.015932 accepted/tizen/5.5/unified/mobile/hotfix/20201027.075802 accepted/tizen/5.5/unified/wearable/hotfix/20201027.110845 accepted/tizen/unified/20190708.114211 submit/tizen/20190704.042625 submit/tizen/20190704.050204 submit/tizen/20190708.030211 submit/tizen_5.5/20191031.000005 submit/tizen_5.5_mobile_hotfix/20201026.185105 submit/tizen_5.5_wearable_hotfix/20201026.184305 tizen_5.5.m2_release
Joonbum Ko [Thu, 4 Jul 2019 01:53:41 +0000 (10:53 +0900)]
Deleted the dependency of libgbm.

Change-Id: Ia2eaf60d5be80663b9aceb23f5409f3e7ae79a02
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoexport_initialized is set to '0' when called coregl terminate 13/198113/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20190125.004617 accepted/tizen/unified/20190128.061654 submit/tizen/20190123.085446 submit/tizen_5.0/20190123.085434
Joonbum Ko [Mon, 21 Jan 2019 04:42:10 +0000 (13:42 +0900)]
export_initialized is set to '0' when called coregl terminate

Change-Id: Ia4d342f0234660ae54967a9573afb654507677c0
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoModified to resolve some coding rule violations. 15/198115/1
Joonbum Ko [Mon, 21 Jan 2019 04:49:30 +0000 (13:49 +0900)]
Modified to resolve some coding rule violations.

Change-Id: I399b2072593d90171268900ce6e72cfe4a42a95b
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
6 years agoRestore -fcommon flag for ASan builds. 92/170492/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20180226.061610 accepted/tizen/5.0/unified/20181102.022937 accepted/tizen/unified/20180322.145005 submit/tizen/20180320.075658 submit/tizen_4.0/20180221.051822 submit/tizen_5.0/20181101.000005
Slava Barinov [Thu, 6 Apr 2017 09:59:20 +0000 (12:59 +0300)]
Restore -fcommon flag for ASan builds.

Change-Id: Idae111f8d1e33de6620b7671ffe765221ba8a8bb
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
6 years agocoregl_tracepath_gl: Fix possible dereferencing null of _add_glbuf_object() 71/139771/2 accepted/tizen/4.0/unified/20170829.020129 accepted/tizen/unified/20170809.135001 submit/tizen/20170808.030621 submit/tizen_4.0/20170828.100004 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Hoyub Lee [Thu, 20 Jul 2017 09:30:10 +0000 (18:30 +0900)]
coregl_tracepath_gl: Fix possible dereferencing null of _add_glbuf_object()

Change-Id: Ic65618a0dfcfb0b2a1ca7df4c6757351f4aa9c98
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agocoregl_tracepath: Fix possible dereferencing null of _get_trace_data() 70/139770/2
Hoyub Lee [Thu, 20 Jul 2017 09:25:45 +0000 (18:25 +0900)]
coregl_tracepath: Fix possible dereferencing null of _get_trace_data()

Change-Id: Ie88cd415c2a65dacd291d94f0acb59f732164521
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agocoregl_trace: Fix possible dereferencing null of add_to_general_trace_list() 69/139769/2
Hoyub Lee [Thu, 20 Jul 2017 09:23:38 +0000 (18:23 +0900)]
coregl_trace: Fix possible dereferencing null of add_to_general_trace_list()

Change-Id: If80f80530059424af185f7cb034909c554e20dc6
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agocoregl_fastpath_egl: Fix possible dereferencing null svace issues 68/139768/2
Hoyub Lee [Wed, 19 Jul 2017 07:30:01 +0000 (16:30 +0900)]
coregl_fastpath_egl: Fix possible dereferencing null svace issues

Change-Id: If477139a0d0c43649edd69830492eb2b5a2de87e
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agocoregl_fastpath_gl: Fix svace issues - unreachable, null deref 66/139766/2
Hoyub Lee [Thu, 20 Jul 2017 05:37:02 +0000 (14:37 +0900)]
coregl_fastpath_gl: Fix svace issues - unreachable, null deref

Change-Id: Ie7110d8b14d2c9bf14caa07f9a8d4f80b6824f9f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agocoregl_faspath: Fix possible dereferencing null of init_modules_tstate_fastpath() 65/139765/1
Hoyub Lee [Thu, 20 Jul 2017 05:32:14 +0000 (14:32 +0900)]
coregl_faspath: Fix possible dereferencing null of init_modules_tstate_fastpath()

Change-Id: If96545ebd1d4245dbe9080349875309c888c4d47
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agocoregl: Fix possible dereferencing null of init_new_thread_state() 64/139764/1
Hoyub Lee [Wed, 19 Jul 2017 07:35:43 +0000 (16:35 +0900)]
coregl: Fix possible dereferencing null of init_new_thread_state()

Change-Id: I8828e0c2fc85caed9d1d9d53b96dd6b0854b81a8
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoAdded libtpl-egl to requires package. 50/139050/1 accepted/tizen/4.0/unified/20170816.013445 accepted/tizen/unified/20170720.164901 submit/tizen/20170718.051559 submit/tizen/20170719.053735 submit/tizen/20170719.075143 submit/tizen_4.0/20170811.094300
joonbum.ko [Mon, 17 Jul 2017 05:32:05 +0000 (14:32 +0900)]
Added libtpl-egl to requires package.

 - This is to include libtpl-egl in the target binary which coregl is installed.

Change-Id: Ic8b37b9be2c09b8ecbb6c3923afdb71e6f16a56d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agocoregl_fastpath : fix wrong GLEnum usage for glGetIntegerv 54/127354/2
Changwoo Kim [Wed, 26 Apr 2017 08:36:19 +0000 (17:36 +0900)]
coregl_fastpath : fix wrong GLEnum usage for glGetIntegerv

Missing "_BINDING_" on few pname argument of glGetIntegerv

Change-Id: Ic969d58748e486393e2f6853836f465f73d5076a

7 years agoeglext.h: Revised the wrong proc name of eglFrontBufferSetSEC. 96/129296/1
joonbum.ko [Tue, 16 May 2017 04:00:38 +0000 (13:00 +0900)]
eglext.h: Revised the wrong proc name of eglFrontBufferSetSEC.

Change-Id: I63c5419a1ab90f295baab765aeef6966db4ee4a1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agocoregl_tracepath_egl: Added EGL_SEC_frontbuffer_set extension API to tracepath_egl. 95/129295/1
joonbum.ko [Tue, 16 May 2017 03:58:05 +0000 (12:58 +0900)]
coregl_tracepath_egl: Added EGL_SEC_frontbuffer_set extension API to tracepath_egl.

Change-Id: I0115540ae4df4214a8520553219d338042019d02
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoRevert "add libpng License to the spec file" 97/125597/2
SooChan Lim [Tue, 18 Apr 2017 05:27:36 +0000 (14:27 +0900)]
Revert "add libpng License to the spec file"

libpng License is the same as Zlib license.

https://opensource.org/licenses/Zlib

This reverts commit 5658c9df0da2f4bf053d970a0a9f424b8e80e2ae.

Change-Id: I7515b0a0f9d1602a99cf7ae93776f24acb13bb68

7 years agoadd libpng License to the spec file 56/125556/1
SooChan Lim [Tue, 18 Apr 2017 04:29:29 +0000 (13:29 +0900)]
add libpng License to the spec file

Change-Id: I5fd081211997174af2cce98b0c3e5fb85a20f906

7 years agocoregl_fastpath_egl: Fix possible null pointer dereference 62/122962/1 accepted/tizen/unified/20170406.053435 submit/tizen/20170404.080448 tizen_4.0.m1_release
Hoyub Lee [Tue, 4 Apr 2017 05:39:43 +0000 (14:39 +0900)]
coregl_fastpath_egl: Fix possible null pointer dereference

Change-Id: I1bd8def6cde39b0cbfdf13463f53ae54167d682f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agouse %license macro to copy the COPYING file. 14/120214/2 accepted/tizen_3.0_ivi accepted/tizen_3.0_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/3.0/common/20170329.150915 accepted/tizen/3.0/ivi/20170329.021448 accepted/tizen/3.0/mobile/20170329.020823 accepted/tizen/3.0/tv/20170329.021047 accepted/tizen/3.0/wearable/20170329.021236 accepted/tizen/common/20170331.152521 accepted/tizen/ivi/20170329.034206 accepted/tizen/mobile/20170329.034000 accepted/tizen/tv/20170329.034115 accepted/tizen/unified/20170329.034228 accepted/tizen/wearable/20170329.034138 submit/tizen/20170328.072410 submit/tizen_3.0/20170328.074051
SooChan Lim [Wed, 22 Mar 2017 06:26:06 +0000 (15:26 +0900)]
use %license macro to copy the COPYING file.

Change-Id: Ib8b6144656ef05cebd999b7af74cf1db077f46d5

7 years agocoregl_fastpath: add support for create context robustness 54/114754/1
Zhaowei Yuan [Tue, 14 Feb 2017 15:37:42 +0000 (23:37 +0800)]
coregl_fastpath: add support for create context robustness

This extension allows creating an OpenGL or OpenGL ES
context supporting robust buffer access behavior and
a specified graphics reset notification behavior

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I43baf5232ff0dadf150145da363bf8b80350a93b

7 years agoCoreGL: Add support for OVR extensions 64/109064/3 tizen_3.0_tv accepted/tizen/3.0/common/20170119.105903 accepted/tizen/3.0/ivi/20170119.021025 accepted/tizen/3.0/mobile/20170119.020932 accepted/tizen/3.0/tv/20170119.020951 accepted/tizen/3.0/wearable/20170119.021008 accepted/tizen/common/20170119.171703 accepted/tizen/ivi/20170118.223552 accepted/tizen/mobile/20170118.223500 accepted/tizen/tv/20170118.223519 accepted/tizen/unified/20170309.034704 accepted/tizen/wearable/20170118.223534 submit/tizen/20170118.080808 submit/tizen_3.0/20170118.081015 submit/tizen_unified/20170308.100410
Zhaowei Yuan [Fri, 6 Jan 2017 17:51:04 +0000 (01:51 +0800)]
CoreGL: Add support for OVR extensions

These OVR extensions include glFramebufferTextureMultiviewOVR,
and glFramebufferTextureMultisampleMultiviewOVR

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I5b8509b30a40f719044f15f88599cae23ca666c2

7 years agocoregl_fastpath: remove gl_color_writemask_for_glColorMask 55/106755/1
xing.huang [Fri, 23 Dec 2016 01:15:39 +0000 (09:15 +0800)]
coregl_fastpath: remove gl_color_writemask_for_glColorMask
1.glColorMask and glColorMaski should share the same state.
2.add GL_CLOR_WRITEMASK_NUM to define the size of gl_color_writemask

Signed-off-by: xing.huang <xing.huang@samsung.com>
Change-Id: I534fb2a8094495571596e033efb287a75ecde486

7 years agocoregl: Open driver library libGLESv1_CM.so forwardly 77/103677/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141758 accepted/tizen/3.0.m2/tv/20170104.142135 accepted/tizen/3.0.m2/wearable/20170104.142429 accepted/tizen/3.0/common/20161221.180801 accepted/tizen/3.0/ivi/20161221.005627 accepted/tizen/3.0/mobile/20161221.010049 accepted/tizen/3.0/tv/20161221.005545 accepted/tizen/3.0/wearable/20161221.005609 accepted/tizen/common/20161210.161923 accepted/tizen/ivi/20161212.024057 accepted/tizen/mobile/20161212.024023 accepted/tizen/tv/20161212.024035 accepted/tizen/wearable/20161212.024048 submit/tizen/20161209.083001 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161209.083106 submit/tizen_3.0/20161219.222759
Zhaowei Yuan [Thu, 8 Dec 2016 18:09:15 +0000 (02:09 +0800)]
coregl: Open driver library libGLESv1_CM.so forwardly

In case of GL driver library is separated into more
than 1 file, it's necessary to open low version ones
forwardly while opening a library

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ibf54d5f859aeec23a6860cf430488ea60e7a234f

7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glTexImage2D() 52/102652/1 accepted/tizen/3.0/common/20161207.194624 accepted/tizen/3.0/ivi/20161207.012535 accepted/tizen/3.0/mobile/20161207.012440 accepted/tizen/3.0/tv/20161207.012458 accepted/tizen/3.0/wearable/20161207.012516 accepted/tizen/common/20161207.184030 accepted/tizen/ivi/20161207.030010 accepted/tizen/mobile/20161207.025915 accepted/tizen/tv/20161207.025930 accepted/tizen/wearable/20161207.025952 submit/tizen/20161206.090232 submit/tizen_3.0/20161206.090328
Mun, Gwan-gyeong [Tue, 6 Dec 2016 08:56:08 +0000 (17:56 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glTexImage2D()

Change-Id: Ic05af8e6b6e89a5eaf8458f19ac672ea5d9001f5
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferSt... 51/101251/1 accepted/tizen/3.0/common/20161203.012216 accepted/tizen/3.0/ivi/20161201.075441 accepted/tizen/3.0/mobile/20161201.075431 accepted/tizen/3.0/tv/20161201.075434 accepted/tizen/3.0/wearable/20161201.075437 accepted/tizen/common/20161201.135922 accepted/tizen/common/20161202.233538 accepted/tizen/ivi/20161202.005454 accepted/tizen/mobile/20161202.005357 accepted/tizen/tv/20161202.005411 accepted/tizen/wearable/20161202.005438 submit/tizen/20161201.053512 submit/tizen_3.0/20161201.053840 submit/tizen_common/20161201.141915
Hoyub Lee [Wed, 30 Nov 2016 12:44:02 +0000 (21:44 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferStorageMultisampleEXT()

Change-Id: I50e880589d41b0b32db5724bb833b08999f00316
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferSt... 49/101249/1
Hoyub Lee [Wed, 30 Nov 2016 12:43:09 +0000 (21:43 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferStorageMultisample()

Change-Id: Ia9aa69492b206bb7df35d424c13a0d4a3266780e
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferSt... 34/101234/3
Hoyub Lee [Wed, 30 Nov 2016 12:16:23 +0000 (21:16 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferStorageMultisample()

Change-Id: I1462e965f5b5dfdfeae1c1ffb053539d2ba8b7db
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of glGenRenderBuffersOES. 30/101230/1
joonbum.ko [Wed, 30 Nov 2016 12:09:42 +0000 (21:09 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of glGenRenderBuffersOES.

Change-Id: Icd93fad03cdc3f8d17867a0fdc586eac8cb4d047
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agocoregl_fastpath_egl: Fix null reference in failure path of _dump_context_info. 25/101225/2
joonbum.ko [Wed, 30 Nov 2016 12:02:45 +0000 (21:02 +0900)]
coregl_fastpath_egl: Fix null reference in failure path of _dump_context_info.

Change-Id: I944e4cc10da8fd5f94b76152e7555bb27c6c7024
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoMerge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderb...
Joonbum Ko [Wed, 30 Nov 2016 12:06:12 +0000 (04:06 -0800)]
Merge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferStorage()" into tizen

7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferSt... 27/101227/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 12:04:17 +0000 (21:04 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferStorage()

Change-Id: Iaa31abc89156c12fd08ecc6b0a0d39578850f099
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agoMerge "coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenTexture...
Joonbum Ko [Wed, 30 Nov 2016 12:03:59 +0000 (04:03 -0800)]
Merge "coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenTextures()" into tizen

7 years agoMerge "coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenRenderb...
Joonbum Ko [Wed, 30 Nov 2016 12:03:36 +0000 (04:03 -0800)]
Merge "coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenRenderbuffers()" into tizen

7 years agocoregl_tracepath_gl: Fix null reference in failure path tracepath_glGenTextures() 20/101220/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 11:58:22 +0000 (20:58 +0900)]
coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenTextures()

Change-Id: Id4404d90f9f9ae3d7d9109b08499d0313d5cc4e5
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_tracepath_egl: Fix null reference in failure path of _dump_context_info. 21/101221/1
joonbum.ko [Wed, 30 Nov 2016 11:58:03 +0000 (20:58 +0900)]
coregl_tracepath_egl: Fix null reference in failure path of _dump_context_info.

 Fix wrong codes related with below commit
 I5a0527f3ba9b69ae5e324731a3bd77b897eefa36

Change-Id: I8dc84beae920227c41d64a93adfe570b51601c2b
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path tracepath_glGenRenderbuffers() 18/101218/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 11:55:47 +0000 (20:55 +0900)]
coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenRenderbuffers()

Change-Id: I592d033452d58e4df723a0f7996a9abeed9b00c4
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path tracepath_glDeleteRenderbuffe... 13/101213/2
Hoyub Lee [Wed, 30 Nov 2016 11:33:49 +0000 (20:33 +0900)]
coregl_tracepath_gl: Fix null reference in failure path tracepath_glDeleteRenderbuffersOES()

Change-Id: I750fb6fa689d33cc9a68eeec17d1d6b167920948
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agocoregl_tracepath_egl: Fix null reference in failure path of _dump_context_info. 12/101212/1
joonbum.ko [Wed, 30 Nov 2016 11:44:14 +0000 (20:44 +0900)]
coregl_tracepath_egl: Fix null reference in failure path of _dump_context_info.

Change-Id: I5a0527f3ba9b69ae5e324731a3bd77b897eefa36
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoMerge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteT...
Joonbum Ko [Wed, 30 Nov 2016 11:45:55 +0000 (03:45 -0800)]
Merge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteTextures()" into tizen

7 years agoMerge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteR...
Joonbum Ko [Wed, 30 Nov 2016 11:45:34 +0000 (03:45 -0800)]
Merge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteRenderbuffers()" into tizen

7 years agoMerge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_fbdump_up...
Joonbum Ko [Wed, 30 Nov 2016 11:45:10 +0000 (03:45 -0800)]
Merge "coregl_tracepath_gl: Fix null reference in failure path of tracepath_fbdump_update()" into tizen

7 years agocoregl_tracepath_gl: Fix null reference in failure path tracepath_glEGLImageTargetRen... 01/101201/2
Hoyub Lee [Wed, 30 Nov 2016 11:30:58 +0000 (20:30 +0900)]
coregl_tracepath_gl: Fix null reference in failure path tracepath_glEGLImageTargetRenderbufferStorageOES

Change-Id: If512bacde333daa2c85459ac9e8de8a4f3bf841a
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glEGLImageTarget... 93/101193/2
Hoyub Lee [Wed, 30 Nov 2016 11:17:40 +0000 (20:17 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glEGLImageTargetTexture2DOES()

Change-Id: I644f51ef2a485bc4b5a61c7014f0fcfb7acf170b
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteTextures() 92/101192/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 11:12:24 +0000 (20:12 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteTextures()

Change-Id: I875d36228bf7c2aeddb94327f12a65b7aaee2681
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteRenderbu... 87/101187/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 11:05:33 +0000 (20:05 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteRenderbuffers()

Change-Id: Ice5a724ec5411caad7c165598e67032b0a3c9e64
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_tracepath_gl: Fix null reference in failure path of tracepath_fbdump_update() 85/101185/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 11:01:21 +0000 (20:01 +0900)]
coregl_tracepath_gl: Fix null reference in failure path of tracepath_fbdump_update()

Change-Id: I656eff9408cdc55643406552a61d1a8effc5eea1
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_fastpath: Fix null reference in failure path of _create_program_object() 78/101178/1
Mun, Gwan-gyeong [Wed, 30 Nov 2016 10:33:14 +0000 (19:33 +0900)]
coregl_fastpath: Fix null reference in failure path of _create_program_object()

Change-Id: Ifc32a640aa1cc9f37b88819671af5e405ef31015
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl: Re-organize log solution 81/96281/2 accepted/tizen/3.0/common/20161114.082120 accepted/tizen/3.0/ivi/20161110.020454 accepted/tizen/3.0/mobile/20161110.020359 accepted/tizen/3.0/tv/20161110.020419 accepted/tizen/3.0/wearable/20161110.020437 accepted/tizen/common/20161109.140321 accepted/tizen/ivi/20161109.002937 accepted/tizen/mobile/20161109.002925 accepted/tizen/tv/20161109.002931 accepted/tizen/wearable/20161109.002934 submit/tizen/20161108.110211 submit/tizen_3.0/20161108.110713 submit/tizen_3.0_common/20161110.084657
Zhaowei Yuan [Sun, 16 Oct 2016 20:14:05 +0000 (04:14 +0800)]
coregl: Re-organize log solution

1. Create macro DLOG_DEFAULT_ENABLE to determine whether to use dlog or not
2. Replace orginal LOG functions with new created API COREGL_ERR, COREGL_WARN and COREGL_DBG
   - default log output: dlog
   - default log level: debug
      debug: COREGL_LOG_LEVEL=1, warning: COREGL_LOG_LEVEL=2, error: COREGL_LOG_LEVEL=3
   - howto change default log level or output?
     1) build time: change spec file's COREGL_DEFAULT_LOG_LEVEL / COREGL_DLOG_ENABLE macro
     2) execute time: execute with COREGL_LOG_LEVEL / COREGL_TRACE_DLOG   option
       example command: COREGL_LOG_LEVEL=2 COREGL_TRACE_DLOG=0 COREGL_TRACE_API=1 elementary_test -to "GLView gears"

3. Remove orginal color schemes and symbol "\n" since new API specify uniformly

4. Replace COREGL_LOG with TRACE for trace path
   - example command for logging to file: COREGL_LOG_FILE=/tmp/coregl_log.txt COREGL_TRACE_API=1 elementary_test -to "GLView gears"

Change-Id: I61cbc8d6dad6ce86ba4391c6dc846d08188ffaeb
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
7 years agoupdate Khronos GLES/EGL headers 61/95961/1
Mun, Gwan-gyeong [Mon, 7 Nov 2016 06:49:16 +0000 (15:49 +0900)]
update Khronos GLES/EGL headers

- egl.h / eglext.h
  Revision: 33226
  https://www.khronos.org/registry/egl/api/EGL/egl.h
  https://www.khronos.org/registry/egl/api/EGL/eglext.h

- eglplatform.h
  Revision: 30994
  https://www.khronos.org/registry/egl/api/EGL/eglplatform.h

- gl2.h
  Revision: 33248
  https://www.khronos.org/registry/gles/api/GLES2/gl2.h

- gl2ext.h
  Revision: 33260
  https://www.khronos.org/registry/gles/api/GLES2/gl2ext.h

- gl3.h
  Revision: 33222
  https://www.khronos.org/registry/gles/api/GLES3/gl3.h

- gl31.h
  Generated on date 20161024
  https://www.khronos.org/registry/gles/api/GLES3/gl31.h

- gl32.h
  Generated on date 20161024
  https://www.khronos.org/registry/gles/api/GLES3/gl32.h

Change-Id: I178c7181ae1dfd07c772de52e4fc867fd5e74bd3

7 years agocoregl_fastpath: avoid "Invalid context attribute" from efl_webview_app 99/95699/5
xing.huang [Fri, 4 Nov 2016 08:43:53 +0000 (16:43 +0800)]
coregl_fastpath: avoid "Invalid context attribute" from efl_webview_app

- Add support of EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT
  eglCreateContex supports EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT
  and EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR

Signed-off-by: xing.huang <xing.huang@samsung.com>
Change-Id: I8ed870fb03add25f59077cc46405388f95483229

7 years agocoregl_fastpath: Separate glColorMask state from glColorMaski and glColorMaskiOES 85/95585/5
xing.huang [Fri, 4 Nov 2016 01:57:35 +0000 (09:57 +0800)]
coregl_fastpath: Separate glColorMask state from glColorMaski and glColorMaskiOES

Fix showing of black screen while efl_webview_app renders aquarium.html page. ( test command: COREGL_FASTPATH=1 /usr/apps/org.tizen.chromium-efl/bin/efl_webview_app http://webglsamples.org/aquarium/aquarium.html )

- Reason:
   glColorMask, glColorMaski and glColorMaskiOES share common gl_color_writemask
   state, gl_color_writemask's size was obtained by glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS).
   But, tm1 gl driver does not support GL_MAX_COLOR_ATTACHMENTS.
   So, if "gl_color_writemask_num = 0" in the fastpath_glColorMask, it bypasses the calling of glColorMask to GLES/EGL Driver.

- Solution:
   Separate the glColorMask from glColorMaski and glColorMaskiOES.
   And assign another array to store state of glColorMask.

Signed-off-by: xing.huang <xing.huang@samsung.com>
Change-Id: Ia9250ece2ffa5f6ea750f92b68bf3bbcfb577bc8

7 years agoBuild: Fix loading path of real vendor driver. 31/94131/1 accepted/tizen/3.0/ivi/20161103.121333 accepted/tizen/3.0/mobile/20161103.121105 accepted/tizen/3.0/tv/20161103.121315 accepted/tizen/3.0/wearable/20161103.121322 accepted/tizen/common/20161028.114823 accepted/tizen/ivi/20161028.152859 accepted/tizen/mobile/20161028.152809 accepted/tizen/tv/20161028.152826 accepted/tizen/wearable/20161028.152841 submit/tizen/20161028.071840 submit/tizen_3.0/20161103.052640
Mun, Gwan-gyeong [Thu, 27 Oct 2016 06:09:31 +0000 (15:09 +0900)]
Build: Fix loading path of real vendor driver.
 - before: it loads from /usr/lib/driver
 - after : 32bit case; /usr/lib/driver
           64bit case; /usr/lib64/driver
   and it uses absolute path becasue, loading a library dynamically without specifying an absolute path could allow an attacker to link a malicious library by changing `$LD_LIBRARY_PATH` or other aspects of the program's execution environment

Change-Id: I02c8ae6d093cade42186da857335655ff93ac236

7 years agocoregl_fastpath_gl: Fix string over flow at _COREGL_FASTPATH_SUPPORTED_EXTENSION 72/92072/1 accepted/tizen/3.0/ivi/20161028.134039 accepted/tizen/3.0/mobile/20161028.133149 accepted/tizen/3.0/tv/20161028.133501 accepted/tizen/3.0/wearable/20161028.133756 accepted/tizen/common/20161018.175359 accepted/tizen/ivi/20161019.044319 accepted/tizen/mobile/20161019.044227 accepted/tizen/tv/20161019.044243 accepted/tizen/wearable/20161019.044257 submit/tizen/20161018.110254 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
xing.huang [Thu, 13 Oct 2016 06:17:26 +0000 (14:17 +0800)]
coregl_fastpath_gl: Fix string over flow at _COREGL_FASTPATH_SUPPORTED_EXTENSION

    - add size check before strcpy

Change-Id: Ib8528863340a3a003fc9f799d22ec796d76c886d

7 years agocoregl_tracepath: Clear thread state for trace path terminating 85/90485/2
Zhaowei Yuan [Thu, 29 Sep 2016 19:08:17 +0000 (03:08 +0800)]
coregl_tracepath: Clear thread state for trace path terminating

Thread state referenced by tarce path should be cleared
when it terminates

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ic0adb719b82d398ab8cf56c3d7f68248509bdccf

7 years agocoregl: Correct a typo 99/91699/2
Zhaowei Yuan [Mon, 10 Oct 2016 13:58:34 +0000 (21:58 +0800)]
coregl: Correct a typo

This patch corrects a typ0

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I3857811b507edb1eec833c48677775b43fb16b0e

7 years agocoregl_fastpath: Pass buffer to GL driver for GLES 1.x 83/91483/1
Zhaowei Yuan [Sat, 8 Oct 2016 00:41:13 +0000 (08:41 +0800)]
coregl_fastpath: Pass buffer to GL driver for GLES 1.x

GLES 1.x doesn't support fast path, so just pass the
original argument buffer to GL driver rather than the
real object

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I56226fff779acf8576b193605c811c73ea6c2907

7 years agocoregl_fastpath: Create image with native surface 80/91480/1
Zhaowei Yuan [Fri, 7 Oct 2016 20:55:42 +0000 (04:55 +0800)]
coregl_fastpath: Create image with native surface

Native surface which is neither texture nor renderbuffer
is possible passed to fastpath_eglCreateImageKHR() to
create image

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I62aadeb21b7f89157d9a213b70d0e71ac9ff2e82

7 years agocoregl_fastpath: Keep frame buffer binding state synchronization 38/87638/3 accepted/tizen/3.0/ivi/20161011.043906 accepted/tizen/3.0/mobile/20161015.032815 accepted/tizen/3.0/tv/20161016.004200 accepted/tizen/3.0/wearable/20161015.082015 accepted/tizen/common/20161004.194348 accepted/tizen/ivi/20161005.231845 accepted/tizen/mobile/20161005.231758 accepted/tizen/tv/20161005.231812 accepted/tizen/wearable/20161005.231827 submit/tizen/20161004.102645 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
Zhaowei Yuan [Thu, 8 Sep 2016 14:53:42 +0000 (22:53 +0800)]
coregl_fastpath: Keep frame buffer binding state synchronization

Calling function fastpath_glBindFramebuffer() with target
GL_FRAMEBUFFER indicates bind to GL_READ_FRAMEBUFFER and
GL_DRAW_FRAMEBUFFER in the meantime.

If GL driver supports GL_READ_FRAMEBUFFER_BINDING and
GL_DRAW_FRAMEBUFFER_BINDING, clue state
gl_framebuffer_binding_read and gl_framebuffer_binding_draw
are both necessary to keep state synchronization, or state
gl_framebuffer_binding is enough.

Add judgement on current_ctx->gl_framebuffer_binding_draw_used
to make sure read and draw are both supproted.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ia74ff7b4d67dfaf0b2cf00e97d996e4bb2dd640d

7 years agocoregl_fastpath: Fix NULL pointer access 55/88655/2
Zhaowei Yuan [Mon, 19 Sep 2016 18:42:51 +0000 (02:42 +0800)]
coregl_fastpath: Fix NULL pointer access

Check if gctx->gl_current_program is NULL before
accessing it

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I48521476422be2cb3c7d77af6df47ddc96ca069f

7 years agocoregl_fastpath: Fix logic error for module override switching 28/87128/3
Zhaowei Yuan [Mon, 5 Sep 2016 23:21:51 +0000 (07:21 +0800)]
coregl_fastpath: Fix logic error for module override switching

1. Execute override changing only when modules are enabled
2. Reset override when got 1.x as initial version
3. Execute override changing only when version is changed
to 1.x or from 1.x
4. Add log to show override resetting executed

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ifbb655be126fbdceb93c98e99344e061c50d551e

7 years agowraps/coregl : Fix loading of CoreGL libary path 22/90122/1
Mun, Gwan-gyeong [Wed, 28 Sep 2016 10:39:51 +0000 (19:39 +0900)]
wraps/coregl : Fix loading of CoreGL libary path

- before: relative path ( libCOREGL.so )
  after: absolute path ( /usr/lib/libCOREGL.so or /usr/lib64/libCOREGL.so)

- Loading a library dynamically without specifying an absolute path could allow an attacker to link a malicious library by changing `$LD_LIBRARY_PATH` or other aspects of the program's execution environment

Change-Id: Ie5d4d2dfa3ed692e6785cd909502fc7971ff7451
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_fastpath: Change the module overriding when the API version is changed. 55/86855/3
Zhaowei Yuan [Sun, 4 Sep 2016 19:53:40 +0000 (03:53 +0800)]
coregl_fastpath: Change the module overriding when the API version is changed.

Change the setting of module overriding when the GLES
API version is changed, it reduces unecessary operations.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I42ab27b8ad18875259bf8e0a78e6a7f2a63004c9

7 years agocoregl_fastpath: Fix memory overread issue 54/86854/2
Zhaowei Yuan [Sun, 4 Sep 2016 19:44:17 +0000 (03:44 +0800)]
coregl_fastpath: Fix memory overread issue

The real size of state gl_draw_buffers should be
gl_draw_buffers_num[0] which is not maybe the same
as max value 16, so it can raise the overreading of memory

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ia68aa7dcfe6eddf6b6bf6e9f8f625e5b30909204

7 years agocoregl_fastpath: Keep states synchronization between color mask functions 95/86395/2
Zhaowei Yuan [Wed, 31 Aug 2016 15:33:11 +0000 (23:33 +0800)]
coregl_fastpath: Keep states synchronization between color mask functions

Functions glColorMask, glColorMaski and glColorMaskiOES
operate common states, they should be kept synchronization
state gl_color_writemask should be an array in the form
of a two-dimensional array whose size if 4*4, glColorMask
set them all uniformly, glColorMaski and glColorMaskiOES
set them respectively

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Icbb59a06a66942929d01be54921eeecd794cb475

7 years agocoregl_fastpath: Keep state synchronization between binding functions 90/86390/2
Zhaowei Yuan [Wed, 31 Aug 2016 15:22:30 +0000 (23:22 +0800)]
coregl_fastpath: Keep state synchronization between binding functions

Functions glBindBuffer, glBindBufferBase and glBindBufferRange
operate on common states of following targets:
GL_TRANSFORM_FEEDBACK_BUFFER
GL_UNIFORM_BUFFER
GL_SHADER_STORAGE_BUFFER
GL_ATOMIC_COUNTER_BUFFER
Those states should be keep synchronization

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I4617c7a2d28e242f5900c335eb329a78374b3f2b

7 years agocoregl_fastpath: Synchronize transform feedback buffer binding state 88/86388/2
Zhaowei Yuan [Wed, 31 Aug 2016 15:15:28 +0000 (23:15 +0800)]
coregl_fastpath: Synchronize transform feedback buffer binding state

Successfully call function glBindTransformFeedback() makes
transform feedback buffer related states out of date, clear
to them to keep synchronization

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Iacada4e08d4409972cf472e442c4ea7d8e3d671c

7 years agocoregl_fastpath: Bypass fast path handling for GLES API 1.x 85/86385/2
Zhaowei Yuan [Wed, 31 Aug 2016 15:05:25 +0000 (23:05 +0800)]
coregl_fastpath: Bypass fast path handling for GLES API 1.x

If current GLES API version is 1.x, fastpath_eglCreateImageKHR
should call eglCreateImageKHR directly without any fast path
handling

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I21a7a24e444c156dff30931e9a888a787beafad8

7 years agocoregl_fastpath: Re-enable modules overiding if needed 83/86383/3
Zhaowei Yuan [Wed, 31 Aug 2016 14:59:44 +0000 (22:59 +0800)]
coregl_fastpath: Re-enable modules overiding if needed

When a context with GLES API version 2.x or higher
is switched to current, fast path or trace path
related overiding should be re-enabled
Remove warning information in COREGL_INIT_ORIGINAL
since it becomes acceptable

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ie32a5018272dc55b79731780dfcd05e60ef004da

7 years agocoregl_fastpath: Claim fast path support for 2 extensions 82/86382/1
Zhaowei Yuan [Wed, 31 Aug 2016 14:53:55 +0000 (22:53 +0800)]
coregl_fastpath: Claim fast path support for 2 extensions

Add GL_EXT_texture_type_2_10_10_10_REV and
GL_OES_required_internalformat to fast path
extension supporting string

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Iad65733ba7b5c41a21146f97daf0dc157b2c5d2f

7 years agocoregl: Apply coding style and add coding style document for astyle. 69/85769/1 accepted/tizen/common/20160830.150231 accepted/tizen/ivi/20160830.235641 accepted/tizen/mobile/20160830.235430 accepted/tizen/tv/20160830.235511 accepted/tizen/wearable/20160830.235557 submit/tizen/20160829.120328 submit/tizen/20160830.063644
Mun, Gwan-gyeong [Mon, 29 Aug 2016 05:02:16 +0000 (14:02 +0900)]
coregl: Apply coding style and add coding style document for astyle.

Change-Id: Ib6f3fc50a31b477466361edc2d858c1dd220668a
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_fastpath_egl: Add Null check on _pack_egl_context_option 91/85691/4
Mun, Gwan-gyeong [Fri, 26 Aug 2016 12:51:10 +0000 (21:51 +0900)]
coregl_fastpath_egl: Add Null check on _pack_egl_context_option

Change-Id: I9ba2e56d0784480d11da8c23bc88b8fc9a1a7d3f
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agocoregl_tracepath: Clear GL error after calling _sym_glGetIntegerv 17/85717/2
Zhaowei Yuan [Fri, 26 Aug 2016 21:35:15 +0000 (05:35 +0800)]
coregl_tracepath: Clear GL error after calling _sym_glGetIntegerv

Calling _sym_glGetIntegerv in tracepath_dump_context_states() may
cause an accetpable GL error, clear it.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I2419469604ad690612584f1420a37c8dcf866d4c

7 years agoThis patch does not create right result. 18/85718/1
Gwan-gyeong Mun [Sat, 27 Aug 2016 11:57:58 +0000 (04:57 -0700)]
This patch does not create right result.
When we run gl application, we expect the result like as
"  [CoreGL] <1004> (Sat Aug 27 11:08:17 UTC 2016) Library initializing... [CoreGL] Driver GL version 3.2  "

but this patch shows "  [CoreGL] <1026> (fatal: Not a git repository (or any of the parent directories): .git) Library initializing... [CoreGL] Driver GL version 3.2 "

so we should fix it

Revert "build: Use commit date instead of build date to avoid unnecessary rebuilds."

This reverts commit c74c199cfbab5d54dad0046b0d747ace552aebe4.

Change-Id: I370d5ea701bd6635be1b99972607c5fff6fbfd58

7 years agobuild: Use commit date instead of build date to avoid unnecessary rebuilds. 73/85373/3
Junghyun Kim [Thu, 25 Aug 2016 00:14:08 +0000 (09:14 +0900)]
build: Use commit date instead of build date to avoid unnecessary rebuilds.

- Problem
We use OBS to build packages in Tizen.
There is a mechanism not to rebuild when the result binary is the same.
For example, there is a dependency graph: A->B->C.
If A is modified, B would be built.
If the result RPM of B is not changed, OBS does not trigger a build of C.
To effectively use this mechanism, each packages make sure that
the result binary should be the same if the input source is the same.

There is a reason we found is including build date.

In coregl, bash command 'date' is used in CMakeList.txt.
In this case, everytime we build coregl, the build result is always different.

- Solution
Use commit date instead of build date.
There was a hint in Makefile.
COMPILE_DATE = "\"`git log -1 --pretty=format:%ci`\""
I used this command in CMakeList.txt
I tested this in my test OBS server, and the build result is unchanged
when this patch is applied.

Change-Id: Iea70e74b6808aa81905eba4afc9e72b6867c097d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agocoregl_tracepath: Copy name with the real size 70/85670/4
Zhaowei Yuan [Thu, 25 Aug 2016 21:54:32 +0000 (05:54 +0800)]
coregl_tracepath: Copy name with the real size

Memory region newitm->name is new allocated here
whose content is uncertain, so the result of
strlen(newitm->name) is 0 or a random number

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I9a08350c2f2326089101f3cc8df74077dd3dd37d

7 years agocoregl: Clear GL error after getting state 26/85526/2
Zhaowei Yuan [Thu, 25 Aug 2016 01:15:07 +0000 (09:15 +0800)]
coregl: Clear GL error after getting state

Getting state in function fastpath_dump_context_states
and tracepath_dump_context_states is possible failed,
but it's acceptable due to GL API version difference,
so clear the possible GL error after getting state.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I35cf758aa999498f001e2463c2b7988bc4579071

7 years agoCoregl_fastpath: Change fast path process for GLES 1.1 63/85263/3
Zhaowei Yuan [Tue, 23 Aug 2016 21:04:18 +0000 (05:04 +0800)]
Coregl_fastpath: Change fast path process for GLES 1.1

Since contexts with different GLES API version can coexist
in a same thread, the real API version can't be decided by
driver_gl_version, so create a new global vriable to hold
the real GLES API after context switching finished. When
real GLES API version becomes 1.1, then disable fast path for
all GL interfaces.

Modification includes:
1. Create variable current_gl_api_version which will be
updated once context switching finished, if it becomes
1.1, disable fast path for all GL interfaces.
2. Change arguments list of function init_export and
_clean_overrides in order to reset egl and gl respectively
3. in function _clean_overrides(): Override all interfaces
listed in file sym_gl1.h, sym_gl2.h and sym_gl_common.h,
regardless of current GLES API version, because interface
of low version maybe called during a high version context.
Overriding here doesn't cause any problem.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I48adacc063105c53276a9c5003142e670dce0ed3

7 years agocoregl_fastpath: Change GL error number as driver does 22/85222/2
Zhaowei Yuan [Tue, 23 Aug 2016 19:54:02 +0000 (03:54 +0800)]
coregl_fastpath: Change GL error number as driver does

GL error number should be set according to the behavior
of GL driver or specification files

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I20e2426fd8e472eba4be54b721748e4479a68e05

7 years agocoregl_fastpath: Fix issue occurs in vertex array Enable/Disabe 15/85215/3
Zhaowei Yuan [Tue, 23 Aug 2016 19:30:15 +0000 (03:30 +0800)]
coregl_fastpath: Fix issue occurs in vertex array Enable/Disabe

Whether an vertex array is bounded or not, value of
state gl_vertex_array_enabled should be always
updated once fastpath_glEnableVertexAttribArray or
fastpath_glDisableVertexAttribArray is called, if not,
it will cause state confusion

Once an vertex array is unbounded or an new vertex
array is bounded, value of state gl_vertex_array_enabled
should be cleared

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I7d686cc603dfb74e305c64687eaea36be6f1aea1

7 years agocoregl_fastpath: Adjust Sequence of functions according their category 10/85210/2
Zhaowei Yuan [Tue, 23 Aug 2016 19:20:04 +0000 (03:20 +0800)]
coregl_fastpath: Adjust Sequence of functions according their category

It's better to put functions together which belong to
a same category

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I9919b884df98515bc85e3777fb407e3ff638874f

7 years agoMerge "coregl_fastpath: reconstruct two functions" into tizen accepted/tizen/common/20160816.130338 submit/tizen_common/20160812.144252
Gwan-gyeong Mun [Thu, 11 Aug 2016 12:21:19 +0000 (05:21 -0700)]
Merge "coregl_fastpath: reconstruct two functions" into tizen

7 years agoMerge "coregl_fastpath: Fix some issue in core_fastpath_gl.c" into tizen
Gwan-gyeong Mun [Thu, 11 Aug 2016 12:19:43 +0000 (05:19 -0700)]
Merge "coregl_fastpath: Fix some issue in core_fastpath_gl.c" into tizen

7 years agoMerge "coregl_fastpath: Change GL error for failed real object getting" into tizen
Gwan-gyeong Mun [Thu, 11 Aug 2016 12:14:49 +0000 (05:14 -0700)]
Merge "coregl_fastpath: Change GL error for failed real object getting" into tizen

7 years agoMerge "coregl_fastpath: Convert for more parameter types" into tizen
Gwan-gyeong Mun [Thu, 11 Aug 2016 11:57:14 +0000 (04:57 -0700)]
Merge "coregl_fastpath: Convert for more parameter types" into tizen

7 years agoMerge "coregl_fastpath: Add support for some extensions" into tizen
Gwan-gyeong Mun [Thu, 11 Aug 2016 11:55:44 +0000 (04:55 -0700)]
Merge "coregl_fastpath: Add support for some extensions" into tizen

7 years agoMerge "coregl_fastpath: Remove support for unnecessary interface" into tizen
Gwan-gyeong Mun [Thu, 11 Aug 2016 11:51:13 +0000 (04:51 -0700)]
Merge "coregl_fastpath: Remove support for unnecessary interface" into tizen

7 years agoMerge "coregl_fastpath: Add process of some missed state" into tizen
Gwan-gyeong Mun [Thu, 11 Aug 2016 11:46:36 +0000 (04:46 -0700)]
Merge "coregl_fastpath: Add process of some missed state" into tizen

7 years agocoregl_fastpath: reconstruct two functions 37/83137/2
Zhaowei Yuan [Mon, 8 Aug 2016 20:37:30 +0000 (04:37 +0800)]
coregl_fastpath: reconstruct two functions

This patch reconstruct function fastpath_glBindFramebuffer
and fastpath_glBindFramebufferOES, make them more readable

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I4409475b970408da31bf95564954c43861657868

7 years agocoregl_fastpath: Fix some issue in core_fastpath_gl.c 36/83136/2
Zhaowei Yuan [Mon, 8 Aug 2016 20:34:17 +0000 (04:34 +0800)]
coregl_fastpath: Fix some issue in core_fastpath_gl.c

Modification includes:
1. Add process for missed target
2. Pass real object to GL driver
3. Convert output parameters as needed

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Idcb6a992db8204d5880f098d6d8b37fdaae6e553

7 years agocoregl_fastpath: Change GL error for failed real object getting 21/83121/4
Zhaowei Yuan [Mon, 8 Aug 2016 19:58:43 +0000 (03:58 +0800)]
coregl_fastpath: Change GL error for failed real object getting

If failed to get a real object, GL error should be set according
to the same behavior of GL driver

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I2f3f3506aa459ad1a0409a58e0364cfae3e75837

7 years agocoregl_fastpath: Convert for more parameter types 08/83108/4
Zhaowei Yuan [Mon, 8 Aug 2016 19:40:09 +0000 (03:40 +0800)]
coregl_fastpath: Convert for more parameter types

Output paremeters which have types added by this
patch should be converted by attaching object type

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Idd582f5810062b2423e8e81e621d3eecdb5735b6

7 years agocoregl_fastpath: Add support for some extensions 03/83103/4
Zhaowei Yuan [Mon, 8 Aug 2016 19:21:09 +0000 (03:21 +0800)]
coregl_fastpath: Add support for some extensions

This patch adds fast path support for extensions
and add missed override process of some interfaces

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ie6a700c80048ea37310c2214063f71f6370ab85a

7 years agocoregl_fastpath: Remove support for unnecessary interface 97/83097/2
Zhaowei Yuan [Mon, 8 Aug 2016 19:09:02 +0000 (03:09 +0800)]
coregl_fastpath: Remove support for unnecessary interface

This patch removes some interfaces which are not supposed
to go through fast path

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: If7865ad9aee404ebaaaf7dc04e92d3f7123cf017

7 years agocoregl_fastpath: Add process of some missed state 55/82855/3
Zhaowei Yuan [Sun, 7 Aug 2016 19:20:04 +0000 (03:20 +0800)]
coregl_fastpath: Add process of some missed state

1. Redefine macro STATE_COMPARE
2. Add handling for state array in function
fastpath_make_context_current()

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I2e3a4b098acfbad02265e3115da38bb0006a31e4

7 years agocoregl_fastpath_egl: Check type before retrieving object 48/82848/2
Zhaowei Yuan [Sun, 7 Aug 2016 17:54:28 +0000 (01:54 +0800)]
coregl_fastpath_egl: Check type before retrieving object

Object type of argument buffer maybe either
TEXTURE or RENDERBUFFER, check it

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I5468ef8105d29a6c655b064f2b2406dc9b1655e6

7 years agoAdd support for some missing processing of state which is detected by Khronos CTS 94/81294/7
Zhaowei Yuan [Sun, 24 Jul 2016 21:20:18 +0000 (05:20 +0800)]
Add support for some missing processing of state which is detected by Khronos CTS

Modification including:
1. Add missing contest states and related processing like
gl_shader_storage_buffer_binding
2. Rename all context states in the from of gl_num_xxx
to gl_xxx_num, for convenient macro processing in
fastpath_glBindBuffer()
3. Clear all buffer binding related state arrays which are
set in fastpath_glBindBufferBase() if argument buffer 0 is
passed to fastpath_glBindBuffer()

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: Ie28eaac2bdff8299c4575e6415c34ae41273f39f

7 years agoAdd considering of initial value when compare state 60/81260/4
Zhaowei Yuan [Sun, 24 Jul 2016 18:17:36 +0000 (02:17 +0800)]
Add considering of initial value when compare state

Initial value of each state can be possible the same
with the variable which it is going to compare
with, it blocks caller from calling of GPU Verndor GL Driver's mistaken

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I8ecfb62a4679f34d3925ba41ddad52892183f16d

7 years agoAdd support for extensions needed by Khronos CTS 40/81240/4
Zhaowei Yuan [Sun, 24 Jul 2016 15:06:17 +0000 (23:06 +0800)]
Add support for extensions needed by Khronos CTS

Those extensions are needed by Khronos CTS test case
"ES3-CTS.gtf.GLCoverage.CoverageES30"

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I5acee917083d9af9a48593ddf588ce8b2ea307ed

7 years agoFix runtime warning about "GL_MAX_UNIFORM_BUFFER_BINDINGS" 37/81237/5
Zhaowei Yuan [Sun, 24 Jul 2016 14:13:35 +0000 (22:13 +0800)]
Fix runtime warning about "GL_MAX_UNIFORM_BUFFER_BINDINGS"

Vaule of initial_ctx->gl_num_uniform_buffer_bindings[0]
is get by calling glGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS..)
Various GPU Vendor GLES/EGLDirvers can return the result from 36 to 72.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I8e25dbd7f166933a1718ebbaf8d923c383b5e508

7 years agoRemove assert in eglReleaseThread,according to spec, 18/78818/2 submit/tizen/20160804.042831
xuelian.bai [Thu, 7 Jul 2016 11:02:28 +0000 (19:02 +0800)]
Remove assert in eglReleaseThread,according to spec,
Even if EGL is not initialized on any EGLDisplay,
eglReleaseThread should succeed
Change-Id: Ie15e8f57305d2a8f81cb6e3ddb623ca8bae08358
Signed-off-by: xuelian.bai <xuelian.bai@samsung.com>