replicant-frameworks_native/opengl/libs
David 'Digit' Turner 80b30c24ff opengl: EGL: special case for GLES emulation
This patch modifies the library loaded in libEGL.so to
handle the case of GLES emulation as follows:

- if we detect that we run inside the emulator, check the
  GPU emulation status through ro.kernel.qemu.gles, which
  will be set to 1 if supported, or 0 otherwise.

  When trying to run on an older version of the emulator,
  the kernel parameter will not be defined at all.

- if GPU emulation is supported, use egl.cfg as usual.
  It will contain a line like "0 0 emulation" that will
  load libEGL_android.so appropriately.

- nothing is changed if we don't run inside the emulator.

NOTE: Ideally, we would modify libEGL_emulation.so to
      redirect all calls to libEGL_android.so in this case.

      However, this turns out to be extremely tedious to implement
      (too many functions with different signatures).

      As such,  it is much simpler to make the check before
      loading the library.

Change-Id: I9930bc168d9013cc8700feedc57b979384467c37
2011-09-02 15:41:13 +02:00
..
EGL opengl: EGL: special case for GLES emulation 2011-09-02 15:41:13 +02:00
ETC1 A library for encoding and decoding ETC1 textures. 2009-12-31 13:31:04 +08:00
GLES2 am 4eb1ad5e: am 524a6d8e: Merge "better fix for [3028370] GL get error should return a valid error if no context is bound." into gingerbread 2010-09-23 21:41:30 -07:00
GLES2_dbg fix another bug that prevented the gl debugger to work 2011-09-01 17:50:52 -07:00
GLES_CM better fix for [3028370] GL get error should return a valid error if no context is bound. 2010-09-23 16:44:48 -07:00
tools OpenGL tracing. 2010-10-26 15:21:24 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:16 -07:00
debug.in Initial commit of GLESv2 debugger server 2011-03-03 18:28:43 -08:00
egl_impl.h fix x86 build 2011-05-23 17:48:36 -07:00
entries.in update GL ES stub libraries with the new GL ES headers 2010-06-09 18:20:21 -07:00
enums.in OpenGL tracing. 2010-10-26 15:21:24 -07:00
glesv2dbg_functions.h GLES2Debugger: Added DbgContext and vertex data capturing. 2011-03-10 16:40:37 -08:00
glesv2dbg.h refactor EGL source code 2011-05-16 19:02:45 -07:00
hooks.h fix x86 build 2011-05-23 17:48:36 -07:00
trace.in OpenGL tracing. 2010-10-26 15:21:24 -07:00