YaGL: OpenGL versioning support added 31/13131/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Tue, 22 Oct 2013 10:18:04 +0000 (14:18 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Tue, 22 Oct 2013 10:18:04 +0000 (14:18 +0400)
commit6796bfef32f2ef39499684d3fb71b7b05732cc07
tree8173f5cb8c7ba2eece7494e72bfafed84429f7a4
parenta88aa297a08de781b3002cb9131b804f004699d3
YaGL: OpenGL versioning support added

In order to implement GLESv3 we need proper host
OpenGL versioning. There're 3 cases:
* If host OpenGL <= 3.1 and GL_ARB_ES3_compatibility not supported - GLESv2 only on target
* If host OpenGL >= 3.1 and GL_ARB_ES3_compatibility supported - GLESv3 on target - no shader patch
* If host OpenGL > 3.1 and GL_ARB_ES3_compatibility not supported - GLESv3 on target - shader patch

Change-Id: I5ccc554bf9f662fe29391e027d6299a4dd952a12
23 files changed:
hw/yagl_apis/egl/yagl_egl_config.c
hw/yagl_apis/gles/yagl_host_gles_calls.c
hw/yagl_backends/egl_offscreen/yagl_egl_offscreen.c
hw/yagl_backends/egl_onscreen/yagl_egl_onscreen.c
hw/yagl_device.c
hw/yagl_drivers/egl_glx/yagl_egl_glx.c
hw/yagl_drivers/gles_ogl/yagl_gles_ogl.c
hw/yagl_drivers/gles_ogl/yagl_gles_ogl.h
hw/yagl_drivers/gles_onscreen/yagl_gles_onscreen.c
hw/yagl_egl_backend.c
hw/yagl_egl_backend.h
hw/yagl_egl_driver.c
hw/yagl_egl_driver.h
hw/yagl_gles_driver.c
hw/yagl_gles_driver.h
hw/yagl_inc/EGL/eglext.h
hw/yagl_inc/EGL/eglmesaext.h
hw/yagl_inc/EGL/eglplatform.h
hw/yagl_inc/KHR/khrplatform.h
hw/yagl_server.c
hw/yagl_server.h
hw/yagl_types.h
hw/yagl_version.h