Coregl_fastpath: Change fast path process for GLES 1.1 63/85263/3
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Tue, 23 Aug 2016 21:04:18 +0000 (05:04 +0800)
committerGwan-gyeong Mun <kk.moon@samsung.com>
Fri, 26 Aug 2016 12:08:17 +0000 (05:08 -0700)
commitce119e6ed19e74ce7a5f33ac6f75b5f131d25796
tree85e71ea350819465585b08439228c4411aa5e3b1
parentfb7b279451cb4fabc8fe4f856f9b6a4b5cd81b85
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
src/coregl.c
src/coregl_export.c
src/coregl_export.h
src/coregl_internal.h
src/modules/coregl_module.c
src/modules/fastpath/coregl_fastpath_egl.c