summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES_trace/dev.make
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2012-02-29 14:04:04 -0800
committerSiva Velusamy <vsiva@google.com>2012-03-01 17:41:53 -0800
commit50129e4ae2777dfbe0738f0f69b17f4d8f9400e2 (patch)
treeb04aa4f302ce337731cbfe44fda1575f8a529fcd /opengl/libs/GLES_trace/dev.make
parent91fe608f1cdd8928d3e480fa3d408e4c6c0da03b (diff)
downloadframeworks_native-50129e4ae2777dfbe0738f0f69b17f4d8f9400e2.zip
frameworks_native-50129e4ae2777dfbe0738f0f69b17f4d8f9400e2.tar.gz
frameworks_native-50129e4ae2777dfbe0738f0f69b17f4d8f9400e2.tar.bz2
gltrace: Send vertex attribute data after glDraw() call.
This patch enables tracing of vertex attribute data that is specified using glVertexAttribPointer(). At the time the glVertexAttribPointer() call is made, we only receive a pointer in client space, without any indication of the size (# of attributes). This size is known only at the time of the glDraw() call. This patch generates a new message glVertexAttribPointerData() when a draw call is issued that contains the vertex attribute data. A glDrawArrays() call directly gives the size of data to copy. A glDrawElements() call gives the indices to copy. In such a case, all data between the min & max indices drawn are copied and sent to the host. To support glDrawElements() with an element array buffer, this patch also adds state that maintains a copy of all element array buffers. Change-Id: I434da794a0aa9ada8e7474e219ffb1d79b183ecf
Diffstat (limited to 'opengl/libs/GLES_trace/dev.make')
-rw-r--r--opengl/libs/GLES_trace/dev.make13
1 files changed, 6 insertions, 7 deletions
diff --git a/opengl/libs/GLES_trace/dev.make b/opengl/libs/GLES_trace/dev.make
index 1d89999..a46260c 100644
--- a/opengl/libs/GLES_trace/dev.make
+++ b/opengl/libs/GLES_trace/dev.make
@@ -6,10 +6,9 @@ genproto: gltrace.proto
aprotoc --cpp_out=src --java_out=java gltrace.proto
mv src/gltrace.pb.cc src/gltrace.pb.cpp
-# NOTE: $OUT should be defined in the shell by doing a "lunch <config>"
-# push updated files to device
-push:
- adb push $(OUT)/system/lib/libGLESv2.so /system/lib/
- adb push $(OUT)/system/lib/libGLESv1_CM.so /system/lib/
- adb push $(OUT)/system/lib/libGLES_trace.so /system/lib/
- adb push $(OUT)/system/lib/libEGL.so /system/lib/
+sync:
+ adb root
+ adb remount
+ adb shell stop
+ adb sync
+ adb shell start