[PATCH v2 04/18] trace: add support for tracing gl*PointerBounds calls

Imre Deak imre.deak at intel.com
Tue May 15 07:10:59 PDT 2012


At least present in the Android EGL implementation.

Signed-off-by: Imre Deak <imre.deak at intel.com>
---
 specs/glapi.py      |    4 ++++
 wrappers/gltrace.py |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/specs/glapi.py b/specs/glapi.py
index 7bde5e4..0c7ce3d 100644
--- a/specs/glapi.py
+++ b/specs/glapi.py
@@ -377,14 +377,18 @@ glapi.addFunctions([
     # GL_VERSION_1_1_DEPRECATED
     GlFunction(Void, "glArrayElement", [(GLint, "i")]),
     GlFunction(Void, "glColorPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer")]),
+    GlFunction(Void, "glColorPointerBounds", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer"), (GLsizei, "count")]),
     GlFunction(Void, "glDisableClientState", [(GLenum, "array")]),
     GlFunction(Void, "glEdgeFlagPointer", [(GLsizei, "stride"), (GLpointerConst, "pointer")]),
     GlFunction(Void, "glEnableClientState", [(GLenum, "array")]),
     GlFunction(Void, "glIndexPointer", [(GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer")]),
     GlFunction(Void, "glInterleavedArrays", [(GLenum, "format"), (GLsizei, "stride"), (GLpointerConst, "pointer")]),
     GlFunction(Void, "glNormalPointer", [(GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer")]),
+    GlFunction(Void, "glNormalPointerBounds", [(GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer"), (GLsizei, "count")]),
     GlFunction(Void, "glTexCoordPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer")]),
+    GlFunction(Void, "glTexCoordPointerBounds", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer"), (GLsizei, "count")]),
     GlFunction(Void, "glVertexPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer")]),
+    GlFunction(Void, "glVertexPointerBounds", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLpointerConst, "pointer"), (GLsizei, "count")]),
     GlFunction(GLboolean, "glAreTexturesResident", [(GLsizei, "n"), (Array(Const(GLtexture), "n"), "textures"), Out(Array(GLboolean, "n"), "residences")], sideeffects=False),
     GlFunction(Void, "glPrioritizeTextures", [(GLsizei, "n"), (Array(Const(GLtexture), "n"), "textures"), (Array(Const(GLclampf), "n"), "priorities")]),
     GlFunction(Void, "glIndexub", [(GLubyte, "c")]),
diff --git a/wrappers/gltrace.py b/wrappers/gltrace.py
index 451c559..8180be3 100644
--- a/wrappers/gltrace.py
+++ b/wrappers/gltrace.py
@@ -359,10 +359,14 @@ class GlTracer(Tracer):
 
     array_pointer_function_names = set((
         "glVertexPointer",
+        "glVertexPointerBounds",
         "glNormalPointer",
+        "glNormalPointerBounds",
         "glColorPointer",
+        "glColorPointerBounds",
         "glIndexPointer",
         "glTexCoordPointer",
+        "glTexCoordPointerBounds",
         "glEdgeFlagPointer",
         "glFogCoordPointer",
         "glSecondaryColorPointer",
-- 
1.7.5.4



More information about the apitrace mailing list