Commit Graph

1501 Commits

Author SHA1 Message Date
Sriram Raman
6bacf7b761 Comment out jdwpspy Makefile temporarily to fix build
Change-Id: I3b77d3ec9c9f5267ac3a05716a64fc073b60cec2
2011-04-25 12:05:40 -04:00
David Li
a130006227 GLES2Dbg: more tests and minor fixes/improvements
Change-Id: I55c360372623c019da0c1ba2eebbc68f73f0f211
Signed-off-by: David Li <davidxli@google.com>
2011-04-22 18:18:30 -07:00
David Li
9df3fc14d2 GLES2Dbg: use GL implementation constants sent from server
Change-Id: I29d48a3e1454a284e714bc3b2f9e6350b0085c21
Signed-off-by: David Li <davidxli@google.com>
2011-04-19 15:33:41 -07:00
David Li
7698df91fa GLES2Dbg: initial tests
Also remove GLFunction enum, since the enums already exist in
DebuggerMessage.Function

Change-Id: If273041b73ab51c9aff405ce6d6cce387b4a3725
Signed-off-by: David Li <davidxli@google.com>
2011-04-18 15:21:53 -07:00
David Li
c26ad8b03b GLES2Dbg: noop - camelCase function names
Change-Id: Ifff2157fc9acd6d51b652a157a086dd0f81a67ae
Signed-off-by: David Li <davidxli@google.com>
2011-04-18 15:21:53 -07:00
David Li
3a9021e615 GLES2Dbg: generate Android.mk and main function
Change-Id: Ib44a86cf4b675f6ace930bebf12873178d49c989
Signed-off-by: David Li <davidxli@google.com>
2011-04-18 15:21:32 -07:00
David Li
5d916dff8b GLES2Dbg: reconstruct vertex attributes to match indices
Rather than converting glDrawElements into glDrawArrays and
 uploading all attributes each draw call.
Also added CaptureDraw and CaptureSwap options.

Change-Id: If8ac6556a2674868ce83f074ce4068a6af2d3a0e
Signed-off-by: David Li <davidxli@google.com>
2011-04-18 15:21:32 -07:00
David Li
7befbd7dee GLES2Dbg: cache Messages to RandomAccessFile
-Load and format Message when the frame is selected to save memory.

Change-Id: I4ff9edf049dc724a73d6643bde1d53ec8b625114
Signed-off-by: David Li <davidxli@google.com>
2011-04-18 15:21:32 -07:00
David Li
e80cdf2ade Merge "GLES2Dbg: code gen for frame" 2011-04-18 15:14:50 -07:00
David Li
2e0807eba1 Merge "GLES2Dbg: organize calls into frames and contexts" 2011-04-18 15:14:41 -07:00
David Li
7a4f65dd8e Merge "GLES2Dbg: add more state tracking and snapshot of state per GL call" 2011-04-18 15:14:29 -07:00
David Li
c558c07533 Merge "GLES2Dbg: use mesa glsl_compiler for syntax checking" 2011-04-18 15:14:20 -07:00
David Li
b2e5b062a0 Merge "GLES2Dbg: improve protocol and error check after shader upload" 2011-04-18 15:14:06 -07:00
David Li
9468e9e68b Merge "GLES2Dbg: implemented shader tracking and editing" 2011-04-18 15:13:57 -07:00
David Li
07b8cde297 Merge "GLES2Dbg: use 256KB chunks for lzf compression" 2011-04-18 15:13:47 -07:00
David Li
04a1304456 Merge "GLES2Dbg: implemented MessageParser" 2011-04-18 15:13:40 -07:00
David Li
77161b6f0c Merge "GLES2Dbg: added SETPROP expectResponse" 2011-04-18 15:13:34 -07:00
David Li
04f38f057b Merge "GLES2Dbg: change TableViewer to ListViewer" 2011-04-18 15:13:24 -07:00
David Li
effb1bef50 Merge "GLES2Dbg: added reference frame for glReadPixels" 2011-04-18 15:13:16 -07:00
David Li
ae9fc9ec8a Merge "GLES2Dbg: use liblzf for compressing images" 2011-04-18 15:13:04 -07:00
David Turner
5ed0345c49 am f61c5ad5: am 092b588b: am 9e9b85c3: Merge "Really fix the Mac build."
* commit 'f61c5ad575bbbe40df5ed5b343e734a9094b43cf':
  Really fix the Mac build.
2011-04-16 13:36:29 -07:00
David Turner
f61c5ad575 am 092b588b: am 9e9b85c3: Merge "Really fix the Mac build."
* commit '092b588b0bcafcab6579407042a5bb0890bc890e':
  Really fix the Mac build.
2011-04-16 13:34:05 -07:00
David Turner
eff952cdbf Really fix the Mac build.
Damned!

Change-Id: Ice8295fb23beefe328207112b011489276b5b278
2011-04-16 22:21:57 +02:00
David Turner
9214f6c36a am e91699fe: am 43fa53c4: am 34f083b1: Merge "Fix mac build"
* commit 'e91699fe2106277a136ed714a2da67e6e729da77':
  Fix mac build
2011-04-16 10:53:24 -07:00
David Turner
e91699fe21 am 43fa53c4: am 34f083b1: Merge "Fix mac build"
* commit '43fa53c42871bc565b40a19a1bc7761d30881ba6':
  Fix mac build
2011-04-16 10:50:49 -07:00
David Turner
427cb6c3b0 Fix mac build
Change-Id: Ic0ada31663beadbff06ac18ca4c5960c869b0ec8
2011-04-16 19:23:56 +02:00
David Turner
88048ffb53 am 5ecdcdfb: am a25b885e: am 218ccb4d: Merge "emulator opengl: small test app for the emulator renderer API."
* commit '5ecdcdfb91513f5698c1ca9649a1d3890a2fb561':
  emulator opengl: small test app for the emulator renderer API.
2011-04-16 07:05:01 -07:00
David Turner
a71b220f28 am e99ef4fa: am 89ea131e: am 36fc1bfe: Merge "emulator opengl: the host renderer executable."
* commit 'e99ef4fa07b1e3697bd31bca2cc1e07f3e1b21bc':
  emulator opengl: the host renderer executable.
2011-04-16 07:04:59 -07:00
David Turner
3020b9643d am b07b714a: am a8c91545: am bb45561f: Merge "emulatgor opengl: First commit of the host renderer library."
* commit 'b07b714a1d5a6ff20ffce2339c96f39f8879bc87':
  emulatgor opengl: First commit of the host renderer library.
2011-04-16 07:04:57 -07:00
David Turner
f8016c97b4 am a2192b8e: am ba19e88d: am c4721695: Merge "emulator opengl: add OpenglOsUtils library, a set of OS utils."
* commit 'a2192b8e17a7b8c9eb98ac4101ca09086949cb5b':
  emulator opengl: add OpenglOsUtils library, a set of OS utils.
2011-04-16 07:04:55 -07:00
David Turner
4c752a85d8 am 6504f70b: am 0a2bacf6: am b06b3c76: Merge changes If48f5ed6,Ic63a6f73
* commit '6504f70b744d4a396fe7a016f70e331afde53348':
  emulator opengl: first commit of gralloc implementation.
  emulator opengl: OpenglSystemCommon library shared between gralloc/EGL/GLES.
2011-04-16 07:03:11 -07:00
David Turner
5ecdcdfb91 am a25b885e: am 218ccb4d: Merge "emulator opengl: small test app for the emulator renderer API."
* commit 'a25b885eedb4f038c38a564101aef2ad6f7bdc89':
  emulator opengl: small test app for the emulator renderer API.
2011-04-16 06:54:28 -07:00
David Turner
e99ef4fa07 am 89ea131e: am 36fc1bfe: Merge "emulator opengl: the host renderer executable."
* commit '89ea131e33cfc7867149b0f792c77bdbe664a953':
  emulator opengl: the host renderer executable.
2011-04-16 06:54:23 -07:00
David Turner
b07b714a1d am a8c91545: am bb45561f: Merge "emulatgor opengl: First commit of the host renderer library."
* commit 'a8c91545a59a9675a1a63d41d700b2c4abd003f1':
  emulatgor opengl: First commit of the host renderer library.
2011-04-16 06:54:18 -07:00
David Turner
a2192b8e17 am ba19e88d: am c4721695: Merge "emulator opengl: add OpenglOsUtils library, a set of OS utils."
* commit 'ba19e88d5351ccbb545eda1ecf4baa8056dd926d':
  emulator opengl: add OpenglOsUtils library, a set of OS utils.
2011-04-16 06:54:14 -07:00
David Turner
6504f70b74 am 0a2bacf6: am b06b3c76: Merge changes If48f5ed6,Ic63a6f73
* commit '0a2bacf64ce7fc2aff7e06a547f5e9f6b67eeda7':
  emulator opengl: first commit of gralloc implementation.
  emulator opengl: OpenglSystemCommon library shared between gralloc/EGL/GLES.
2011-04-16 06:52:26 -07:00
Guy Zadikario
cca6a5fc0e emulator opengl: small test app for the emulator renderer API.
This sample program simulates the use of the renderer api as it should
be used from the emulator program. It opens a SDL window, initialize the
renderer, process events on the window and terminate the renderer when the
window is closed.

Change-Id: If983b4ce6465dee71f548e8edaf2b56b6443f7b0
2011-04-16 10:45:48 +03:00
Guy Zadikario
555d9bece7 emulator opengl: the host renderer executable.
This is the host renderer executable. It is a small process which
just calls into libOpenglRender library. The process is invoked
through the initOpenGLRenderer function of libOpenglRenderer.

Change-Id: I85af075b5eb751ffb9543ecbd8e7fc155054f146
2011-04-16 10:45:48 +03:00
Guy Zadikario
1f0d3939ed emulatgor opengl: First commit of the host renderer library.
This is a library which includes all the OpenGL renderer functionality,
it is packaged in a library so that both the renderer process and the emulator
program will be able to use that functionality.

NOTES:
   1) gl_proc.h and GLDispatch.{h,cpp} in this commit will be replaced
      with the decoder auto-generated dispatch in a later commit, the
      auto-generated dispatch is currently missing some extension functions
      required for the renderer.
   2) look at host/include/libOpenglRender/render_api.h for the external
      interface defined for this library (to be used by the emulator).

The following is a description of each component:

FrameBuffer - The main object which manages the framebuffer and color buffers.
              This is a singleton which get initialized through its initialize
              static function. It initializes the OpenGL renderer and must be
              called first. This initialization function is not thread safe so
              it must be called before any thread that is calling to this
              library is created.

FBConfig - Includes a static set of configs supported by the renderer which get
           initialized during FrameBuffer initialization phase. Also,
           an instance of this class includes the a description of one frame
           buffer configuration supported by the renderer.

RenderContext - encapsulate a rendering context state.

ColorBuffer - implements a color buffer object as a texture which can be bind
              as render target or source.

WindowSurface - implements the functionality of a native window which can be
                bound to a rendering context and its target ColorBuffer can
                be specified and replaced.

ThreadInfo - holds per-thread information.

EGLDispatch - loads the EGL plugin library, all egl calls are made through
              this dispatch table which get initialized during initialization
              phase.

GLDispatch - loads the GLES plugin library, all GLES calls are made through
             this dispatch table which get initialized during initialization
             phase - This will be replaced by the auto-generated code of the
             decoder ...

RenderThread - implements a thread that reads command tokens from an IOStream
               and decode it.

RenderControl - implements the host side implementation of the renderControl
                API, when a renderControl token is decoded from the stream
                it is dispatched to this implementation.

RenderServer - implements a TCP server which listens to port number and
               launcges a RenderThread for each new connection.

Change-Id: I9f34d17bdfcb715893a13cd30086c767f499df87
2011-04-16 10:45:39 +03:00
Guy Zadikario
20368d96e0 emulator opengl: add OpenglOsUtils library, a set of OS utils.
This is just a set of OS dependant functionality needed by the
emulator OpenGL host renderer. It currently has implementation for
Linux and Windows only.

osDynLibrary - dlopen/dlsym abstraction
osProcess    - interface to launch a new process, wait and kill it.
osThread     - abstraction interface for creating a thread.

Change-Id: Ib0264592d8c87e865da87acf5c94e2b331801ca4
2011-04-16 10:42:43 +03:00
Guy Zadikario
f7cd7ec421 emulator opengl: first commit of gralloc implementation.
This is the emulator opengl implementation of gralloc.

NOTE that it is currently build only if BUILD_EMULATOR_OPENGL_DRIVER
is defined, This is because the other driver peices (EGL/GLES) are
still missing.

Change-Id: If48f5ed619df6efb00cb4e590d99ce49d87875f6
2011-04-16 10:42:34 +03:00
Guy Zadikario
64db3f9a02 emulator opengl: OpenglSystemCommon library shared between gralloc/EGL/GLES.
This is a static library of utilities shared between the emulator opengl
system components, gralloc, EGL, GLES. In includes host connection functionality
and access to OpenGL TLS info.

Change-Id: Ic63a6f7384a2035308ca6d316c747f0e6c6f2ef3
2011-04-16 10:32:39 +03:00
David 'Digit' Turner
d85613f138 am 72974d6a: am 3cdf8eb7: am 2a384265: Merge "Fix Mac build"
* commit '72974d6a95e1508609f20370b46b4d7a33bccd80':
  Fix Mac build
2011-04-15 07:52:55 -07:00
David 'Digit' Turner
72974d6a95 am 3cdf8eb7: am 2a384265: Merge "Fix Mac build"
* commit '3cdf8eb7548bf165c7e202631107d2d7fe2af943':
  Fix Mac build
2011-04-15 07:51:23 -07:00
David Turner
5ab75d64a5 am 43b5d0e2: am d6ad2a63: am 23a491dc: Merge "emulator opengl: renderControl API encoder/decoder"
* commit '43b5d0e259edaaf244dd4948a85b2f1fce3b3f83':
  emulator opengl: renderControl API encoder/decoder
2011-04-15 07:51:09 -07:00
David Turner
9d360bc000 am eebc97b9: am c1491eb3: am 0f0732fe: Merge "emulator opengl: Added glUtilsPixelBitSize function to glUtils."
* commit 'eebc97b987e77fb238d8d65aae1e55f332011537':
  emulator opengl: Added glUtilsPixelBitSize function to glUtils.
2011-04-15 07:51:07 -07:00
David Turner
9a6cf4f0da am 658185c5: am 961949e0: am 2732ff2d: Merge "Moved IOStream.h to be used in external API for libOpenGLRender."
* commit '658185c5507bab4365bc88728fba893bdee8b3a8':
  Moved IOStream.h to be used in external API for libOpenGLRender.
2011-04-15 07:51:05 -07:00
David Turner
cc9c9838da am f0970841: am a95826fb: am 39062218: Merge " This is a common library for the EGL/GLES/GLES2 translator libraries."
* commit 'f0970841bc634e689962091cf86ad5c7becb5285':
  This is a common library for the EGL/GLES/GLES2 translator libraries.
2011-04-15 07:50:55 -07:00
David Turner
43b5d0e259 am d6ad2a63: am 23a491dc: Merge "emulator opengl: renderControl API encoder/decoder"
* commit 'd6ad2a63ca51f11c97042baa43eb33904e6aefb4':
  emulator opengl: renderControl API encoder/decoder
2011-04-15 07:39:15 -07:00
David Turner
eebc97b987 am c1491eb3: am 0f0732fe: Merge "emulator opengl: Added glUtilsPixelBitSize function to glUtils."
* commit 'c1491eb3b91f1e4d84b4e603d0d22d07502158a2':
  emulator opengl: Added glUtilsPixelBitSize function to glUtils.
2011-04-15 07:39:13 -07:00