summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/Loader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glestrace: Framework for GLES tracing librarySiva Velusamy2011-12-021-2/+2
| | | | | | | | | | | | | | | | | | | | This patch provides a framework for tracing GLES 1.0 and 2.0 functions. It is missing a lot of features, but here are the things it accomplishes: - Stop building the glesv2dbg library, and build the glestrace library instead. - Replace the hooks for glesv2dbg with the ones for glestrace. - Add the basics for the trace library. Currently, this traces all GL functions, but not all required data is sent for all the functions. As a result, it will not be possible to reconstruct the entire GL state on the host side. The files gltrace.pb.* and gltrace_api.* are both generated using the tools/genapi.py script. Change-Id: Id60a468f7278657f008bc6ea1df01f9bdfecfdd3
* opengl: EGL: special case for GLES emulationDavid 'Digit' Turner2011-09-021-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix x86 buildMathias Agopian2011-05-231-3/+2
| | | | Change-Id: I03cfbfeaeb8b13842248856b14b4a23711036e10
* fix (Again) adding OES postfix when looking for gl functionsMathias Agopian2011-05-111-9/+6
| | | | Change-Id: Ib14723ed5355fdc423226ec20a32e26fe7dd68fe
* add OES postfix without truncating functionJeff Boody2011-05-111-4/+6
| | | | Change-Id: Id47304cf38914190cec58d703801f456ab916f63
* GLES2Debugger: Added DbgContext and vertex data capturing.David Li2011-03-101-1/+1
| | | | | | | | | Send VBO related commands to client, which tracks the state. Maintain index buffer content and vertex attrib pointer/buffer state on server. During glDrawArrays/Elements, send user memory data to client. Change-Id: Ia920e90479329b301ae4b5735e833eeb20293c94 Signed-off-by: David Li <davidxli@google.com>
* Initial commit of GLESv2 debugger serverDavid Li2011-03-031-0/+2
| | | | | | | | | | Use debug.egl.debug_proc property to match process cmdline. Binds to TCP:5039 and waits for client connection. Sends function call parameters, textures and shaders using Protobuf. Java Eclipse client plug-in is next. Change-Id: I183b755263663f87e86dde1ad12f527d0445fd57 Signed-off-by: David Li <davidxli@google.com>
* support loading EGL libraries from /vendor/lib/egl as well as /system/lib/eglBrian Swetland2010-09-201-13/+15
| | | | Change-Id: Idd9ca85ce3ba6c92234375071b53e5365e689062
* fix [2187212] add support for GLESv2 dispatch based on TLSMathias Agopian2009-10-141-12/+14
| | | | | | | | | | | | | Instead of using a different function pointer table for ES 1.x and ES 2.x, we use a single one that is the union (sort|uniq) of both tables. Two instances of this table are initialized with pointers to GL ES 1.x and GL ES 2.x entry-points. When a context is created, we store its version number and when it is bound to a thread we set the approruiate table based on the stored version. This introduce no penalty while dispatching gl calls to the right API version. [Pending Dr No approval for MR1]
* log an error when loading an existing GL driver failsMathias Agopian2009-09-201-5/+14
|
* fix a bug in ComponentSizeChooser where it could pick a software EGLConfig ↵Mathias Agopian2009-08-201-2/+2
| | | | | | instead of a better h/w one. We now just try to honor the stencil / depth buffer "at least", while doing a "shortest distance" on the colors.
* GLESv2 couldn't be loaded due to wrong path specificationMathias Agopian2009-07-291-1/+1
|
* Make opengl loader use an absolute path.Marco Nelissen2009-07-071-1/+1
|
* remove some spurious debuging LOGDMathias Agopian2009-06-031-1/+1
|
* fix/clean these Android.mk following dbort and joeo's commentsMathias Agopian2009-06-031-4/+2
|
* implement a real loader for EGL driversMathias Agopian2009-05-281-0/+278
we now look for a config file in /system/lib/egl/egl.cfg that describes the association of a display to a driver. these drivers are named: /system/lib/egl/lib{[EGL|GLESv1_CM|GLESv2] | GLES}_$TAG.so