[PATCH v2 06/18] trace: add support for tracing glDrawTex calls

Imre Deak imre.deak at intel.com
Tue May 15 07:11:01 PDT 2012


These are present at least in the Android EGL implementation.

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

diff --git a/specs/glapi.py b/specs/glapi.py
index 0c7ce3d..3f63200 100644
--- a/specs/glapi.py
+++ b/specs/glapi.py
@@ -2807,4 +2807,12 @@ glapi.addFunctions([
 
     # GL_WIN_swap_hint
     GlFunction(Void, "glAddSwapHintRectWIN", [(GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
+
+    # glDrawTex
+    GlFunction(Void, "glDrawTexfOES", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "width"), (GLfloat, "height")]),
+    GlFunction(Void, "glDrawTexfvOES", [(Array(Const(GLfloat), 4), "coords")]),
+    GlFunction(Void, "glDrawTexiOES", [(GLint, "x"), (GLint, "y"), (GLint, "z"), (GLint, "width"), (GLint, "height")]),
+    GlFunction(Void, "glDrawTexivOES", [(Array(Const(GLint), 4), "coords")]),
+    GlFunction(Void, "glDrawTexsOES", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z"), (GLshort, "width"), (GLshort, "height")]),
+    GlFunction(Void, "glDrawTexsvOES", [(Array(Const(GLshort), 4), "coords")]),
 ])
diff --git a/specs/glparams.py b/specs/glparams.py
index 3468337..2685c36 100644
--- a/specs/glparams.py
+++ b/specs/glparams.py
@@ -2251,7 +2251,7 @@ parameters = [
     ("glGet",	E,	1,	"GL_IMPLEMENTATION_COLOR_READ_TYPE"),	# 0x8B9A
     ("glGet",	E,	1,	"GL_IMPLEMENTATION_COLOR_READ_FORMAT"),	# 0x8B9B
     #("",	X,	1,	"GL_POINT_SIZE_ARRAY_OES"),	# 0x8B9C
-    #("",	X,	1,	"GL_TEXTURE_CROP_RECT_OES"),	# 0x8B9D
+    ("",	I,	4,	"GL_TEXTURE_CROP_RECT_OES"),	# 0x8B9D
     #("",	X,	1,	"GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES"),	# 0x8B9E
     #("",	X,	1,	"GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES"),	# 0x8B9F
     #("",	X,	1,	"GL_FRAGMENT_PROGRAM_POSITION_MESA"),	# 0x8BB0
-- 
1.7.5.4



More information about the apitrace mailing list