replicant-frameworks_native/opengl/libs
Alistair Strachan 89301eaf21 Fix EGL shim extension injection for GL ES 3 drivers.
The Android EGL shim injects GL_EXT_debug_marker into the ES driver
EXTENSIONS string for the OpenGL ES 1.x and 2.0/3.0/3.1 drivers if
the extension is not already provided. This feature is used by
GLES_trace.

In Open GL ES 3.0 it became possible to query an indexed version of
the EXTENSIONS string via GetStringi(). NUM_EXTENSIONS Gets were
also added to the specification (taken from Open GL).

If the shim does not have to inject the extension, then there is no
problem, as glGetString() and glGetStringi() / NUM_EXTENSIONS will
be consistent. However, if the Android EGL shim injects the
extension, NUM_EXTENSIONS and GetStringi() will report one less
extension than is really available.

Consistency between these methods is tested by the dEQP framework
with the dEQP-GLES3.functional.state_query.string.extensions test.
If the driver does not provide GL_EXT_debug_marker, this test
fails.

This change wraps all of the affected entry points so that the
wrapped driver extensions are never visible directly to dEQP,
eliminating the inconsistency.
2015-05-28 15:34:31 -07:00
..
EGL Fix EGL shim extension injection for GL ES 3 drivers. 2015-05-28 15:34:31 -07:00
ETC1 Fix convert8To4, convert8To5 2011-12-09 14:06:07 -08:00
GLES2 Fix EGL shim extension injection for GL ES 3 drivers. 2015-05-28 15:34:31 -07:00
GLES_CM [MIPS] Fix mips32r1 build 2015-02-02 16:54:15 -08:00
GLES_trace Revert "Revert "Update protobuf library from 2.3 to 2.6."" 2015-01-12 20:07:43 +00:00
tools Rationalize GLES2/3 .in files. 2014-05-17 19:31:48 -07:00
Android.mk Switch libGLESv1_CM/libGLESv2 to hash-style=both 2015-05-13 15:05:07 -07:00
egl_impl.h Fix EGL shim extension injection for GL ES 3 drivers. 2015-05-28 15:34:31 -07:00
entries.in opengl: Regenerate code with ES 3.1 and new extensions 2014-05-21 15:32:23 -07:00
enums.in opengl: Regenerate code with ES 3.1 and new extensions 2014-05-21 15:32:23 -07:00
glestrace.h gltrace: Add support for tracing running applications. 2012-12-20 10:38:47 -08:00
hooks.h opengl: Regenerate code with ES 3.1 and new extensions 2014-05-21 15:32:23 -07:00
trace.in opengl: Regenerate code with ES 3.1 and new extensions 2014-05-21 15:32:23 -07:00