From 09826de1b4defc6a42fb7ddfe46733ccc70b00b8 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 23 Apr 2012 16:18:39 +0300 Subject: [PATCH] trace: add support for tracing GL_OES_draw_texture calls MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These are present at least in the Android EGL implementation. Signed-off-by: Imre Deak Signed-off-by: José Fonseca --- specs/glesapi.py | 8 ++++++++ specs/glparams.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/specs/glesapi.py b/specs/glesapi.py index 8b1a671..2bf2853 100644 --- a/specs/glesapi.py +++ b/specs/glesapi.py @@ -165,6 +165,14 @@ glesapi.addFunctions([ GlFunction(Void, "glGetProgramBinaryOES", [(GLprogram, "program"), (GLsizei, "bufSize"), Out(Pointer(GLsizei), "length"), Out(Pointer(GLenum), "binaryFormat"), Out(OpaqueBlob(GLvoid, "length ? *length : bufSize"), "binary")], sideeffects=False), GlFunction(Void, "glProgramBinaryOES", [(GLprogram, "program"), (GLenum, "binaryFormat"), (Blob(Const(GLvoid), "length"), "binary"), (GLsizei, "length")]), + # GL_OES_draw_texture + 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")]), + # GL_EXT_discard_framebuffer GlFunction(Void, "glDiscardFramebufferEXT", [(GLenum, "target"), (GLsizei, "numAttachments"), (Array(Const(GLenum), "numAttachments"), "attachments")]), diff --git a/specs/glparams.py b/specs/glparams.py index 3468337..e4031b0 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 + ("glGetTexParameter", 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 -- 2.43.0