summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES2_dbg
Commit message (Collapse)AuthorAgeFilesLines
* remove unused codeMathias Agopian2012-01-2820-10596/+0
| | | | Change-Id: If900fcc50f9ffc424e270cb6063b16a2d7bc04d3
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-035-24/+24
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* glestrace: Framework for GLES tracing librarySiva Velusamy2011-12-021-50/+0
| | | | | | | | | | | | | | | | | | | | 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
* fix EGL debuggerMathias Agopian2011-09-198-33/+29
| | | | | | | always use GL_RGBA, GL_UNSIGNED_BYTE for screen capture and make sure to handle GL_BGRA_EXT used on some gpu. Change-Id: If9c973677fec8a5c4e72be22e7ef7d4bf5f008f4
* fix another bug that prevented the gl debugger to workMathias Agopian2011-09-011-1/+1
| | | | | | we didn't set the debug tls properly Change-Id: Iad9cc5b5d230a8eb7f680c4b70925c5e43e73051
* Remove the simulator target from all makefiles.Jeff Brown2011-07-112-11/+7
| | | | | | Bug: 5010576 Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
* refactor EGL source codeMathias Agopian2011-05-163-55/+43
| | | | | no changes is functionality. split various objects into their own files. make egl_display objec's lock internal.
* GLES2Dbg: noop - format & commentDavid Li2011-04-212-6/+6
| | | | | Change-Id: Ibb36508181d4322e236b6595b28d253f282c36d7 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: send some GL implementation constants to clientDavid Li2011-04-197-21/+107
| | | | | Change-Id: Ic6c51c09b1c3d2e1e1a28c6ed552714c3243827c Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: initial testsDavid Li2011-04-199-18/+991
| | | | Change-Id: Ibf07eff68d39267fd5c9bec2870f59a5ae2f51e3
* GLES2Dbg: added CaptureDraw and CaptureSwap optionsDavid Li2011-04-128-51/+203
| | | | | | | | CaptureDraw specifies how many glDrawArrays/Elements to glReadPixel CaptureSwap similarly applies to eglSwapBuffers Change-Id: Ie7a7e3392b4ecdc0659dcee04f4bab97c35267dc Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: use dump.gles2dbg file when fails to create socketDavid Li2011-04-126-26/+57
| | | | | | | | | | | | setprop debug.egl.debug_forceUseFile 1: always use file setprop debug.egl.debug_maxFileSize <int MB>: exit when reached setprop debug.egl.debug_filePath <path>: may need to make the file writable first. setprop debug.egl.debug_port <unsigned short> setprop debug.egl.debug_proc <proc cmdline>: to match debuggee process Change-Id: I34ca1f3092f3abf17e2ded9d1689d0cdef6e07e8 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: add EXTEND_AFTER_CALL_Debug_* macro and improve protocolDavid Li2011-04-1212-120/+245
| | | | | | | | | | To allow auto generate of Debug_glReadPixels function. Also added AfterGeneratedCall messag type, and client override of expectResponse for improving protocol. Also implemented callers for client to get shader/program iv & infolog Change-Id: I8426de0be4b7ffcb8b2b4f063ad85d19a9d2d72e Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: change GLES2_dbg to shared libraryDavid Li2011-04-127-16/+35
| | | | | Change-Id: I493e9bff431bd939f4e80e1e9c614dd557307fa2 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: use 256KB chunks for lzf compressionDavid Li2011-03-284-39/+43
| | | | | | | | | | | | Data format is uint32_t totalDecompressedSize, then repeat: uint32_t chunkDecompressedSize, chunkCompressedSize, chunk data. If chunkCompressedSize == 0, then chunk is not compressed. Also start fixing integer sizes on server. On client, set endianness to match server. Change-Id: I0d5afa16976ea6019b91c4e21d284605da7e135e Signed-off-by: David Li <davidxli@google.com>
* GLESv2Dbg: ability to create GL calls from clientDavid Li2011-03-227-9/+1308
| | | | | | | | caller.cpp Is generated by generate_caller_cpp.py Hand written functions are in caller.h Change-Id: I27ed9792df52569159a2d1b8a78207c7a7518537 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: added SETPROP expectResponseDavid Li2011-03-2213-614/+343
| | | | | | | | to allow "stepping" in functions. Also fix bug in reference frame. Change-Id: Ia33620eaf2c5f4e615f7aad2df277b6afc617060 Signed-off-by: David Li <davidxli@google.com>
* GLES2Dbg: added reference frame for glReadPixelsDavid Li2011-03-229-44/+318
| | | | Change-Id: I37398d8d835e54a1764dfabd617fdc2c640864c2
* GLES2Dbg: use libLZF for compressing imagesDavid Li2011-03-216-132/+54
| | | | | | | liblzf is in external/liblzf, it's BSD-type licence (optionally GPL2) Change-Id: Idc7883fe2155f366cda384e64796a1493335ae4f Signed-off-by: David Li <davidxli@google.com>
* GLES2Debugger: Make command exchange async to improve performance.David Li2011-03-118-66/+93
| | | | | | | | In message loop, use select to check for available commands from client, rather than always expecting commands in eglSwapBuffers. Change-Id: Ifc34dd77c2528c8b9c71f594e3eda4f93400cd2b Signed-off-by: David Li <davidxli@google.com>
* GLES2Debugger: Added DbgContext and vertex data capturing.David Li2011-03-1013-2374/+481
| | | | | | | | | 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>
* Added screenshot after glDraw* option to GLES2 DebuggerDavid Li2011-03-0419-5889/+6126
| | | | | | | | | | Also added timing mode option using utils/Timers.h. Factored out common code to reduce size. Improved Protobuf message. Uploads data from glBufferData and glBufferSubData. Change-Id: Iaae5e706235d942df81c7eada7223fb0b0583911 Signed-off-by: David Li <davidxli@google.com>
* Initial commit of GLESv2 debugger serverDavid Li2011-03-0316-0/+9681
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>