Mesa (master): glapi: Emit dispatch for {ARB,OES}_get_program_binary

Ian Romanick idr at kemper.freedesktop.org
Sat Jan 12 02:14:04 UTC 2013


Module: Mesa
Branch: master
Commit: e3f273e2f4ac9df5f5e6939fef103accdc71ea91
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3f273e2f4ac9df5f5e6939fef103accdc71ea91

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Sun Dec  2 14:19:00 2012 -0800

glapi: Emit dispatch for {ARB,OES}_get_program_binary

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mapi/glapi/gen/ARB_get_program_binary.xml |    9 +++------
 src/mesa/main/tests/dispatch_sanity.cpp       |   19 +++++++++++++------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/src/mapi/glapi/gen/ARB_get_program_binary.xml b/src/mapi/glapi/gen/ARB_get_program_binary.xml
index b268302..e84d067 100644
--- a/src/mapi/glapi/gen/ARB_get_program_binary.xml
+++ b/src/mapi/glapi/gen/ARB_get_program_binary.xml
@@ -11,8 +11,7 @@
     <enum name="NUM_PROGRAM_BINARY_FORMATS"               value="0x87FE"/>
     <enum name="PROGRAM_BINARY_FORMATS"                   value="0x87FF"/>
 
-    <function name="GetProgramBinary" offset="assign" static_dispatch="false"
-              es2="3.0" exec="skip">
+    <function name="GetProgramBinary" offset="assign" es2="3.0">
         <param name="program" type="GLuint"/>
         <param name="bufSize" type="GLsizei"/>
         <param name="length" type="GLsizei *"/>
@@ -20,16 +19,14 @@
         <param name="binary" type="GLvoid *"/>
     </function>
 
-    <function name="ProgramBinary" offset="assign" static_dispatch="false"
-              es2="3.0" exec="skip">
+    <function name="ProgramBinary" offset="assign" es2="3.0">
         <param name="program" type="GLuint"/>
         <param name="binaryFormat" type="GLenum"/>
         <param name="binary" type="const GLvoid *"/>
         <param name="length" type="GLsizei"/>
     </function>
 
-    <function name="ProgramParameteri" offset="assign" static_dispatch="false"
-              es2="3.0" exec="skip">
+    <function name="ProgramParameteri" offset="assign" es2="3.0">
         <param name="program" type="GLuint"/>
         <param name="pname" type="GLenum"/>
         <param name="value" type="GLint"/>
diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
index 3450b86..3cc6bbd 100644
--- a/src/mesa/main/tests/dispatch_sanity.cpp
+++ b/src/mesa/main/tests/dispatch_sanity.cpp
@@ -497,6 +497,11 @@ const struct function gl_core_functions_possible[] = {
    { "glGetInfoLogARB", 31, -1 },
    { "glGetAttachedObjectsARB", 31, -1 },
 
+   /* GL_ARB_get_program_binary */
+   { "glGetProgramBinary", 30, -1 },
+   { "glProgramBinary", 30, -1 },
+   { "glProgramParameteri", 30, -1 },
+
    /* GL_EXT_transform_feedback */
    { "glBindBufferOffsetEXT", 31, -1 },
 
@@ -1256,6 +1261,11 @@ const struct function gles2_functions_possible[] = {
    { "glVertexAttrib4fv", 20, -1 },
    { "glVertexAttribPointer", 20, -1 },
    { "glViewport", 20, _gloffset_Viewport },
+
+   /* GL_OES_get_program_binary - Also part of OpenGL ES 3.0. */
+   { "glGetProgramBinaryOES", 20, -1 },
+   { "glProgramBinaryOES", 20, -1 },
+
    { NULL, 0, -1 }
 };
 
@@ -1315,8 +1325,7 @@ const struct function gles3_functions_possible[] = {
    { "glGetIntegeri_v", 30, -1 },
    // XXX: Missing implementation of ARB_internalformat_query
    // { "glGetInternalformativ", 30, -1 },
-   // XXX: Missing implementation of ARB_get_program_binary
-   /// { "glGetProgramBinary", 30, -1 },
+   // glGetProgramBinary aliases glGetProgramBinaryOES in GLES 2
    { "glGetQueryiv", 30, -1 },
    { "glGetQueryObjectuiv", 30, -1 },
    { "glGetSamplerParameterfv", 30, -1 },
@@ -1340,10 +1349,8 @@ const struct function gles3_functions_possible[] = {
    // We check for the aliased -EXT version in GLES 2
    // { "glMapBufferRange", 30, -1 },
    { "glPauseTransformFeedback", 30, -1 },
-   // XXX: Missing implementation of ARB_get_program_binary
-   // { "glProgramBinary", 30, -1 },
-   // XXX: Missing implementation of ARB_get_program_binary
-   // { "glProgramParameteri", 30, -1 },
+   // glProgramBinary aliases glProgramBinaryOES in GLES 2
+   { "glProgramParameteri", 30, -1 },
    // We check for the aliased -NV version in GLES 2
    // { "glReadBuffer", 30, -1 },
    { "glRenderbufferStorageMultisample", 30, -1 },




More information about the mesa-commit mailing list