Mesa (master): mapi: Add PatchParameteriOES and PatchParameteriEXT.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Aug 8 18:07:52 UTC 2016


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Jul  8 11:42:08 2016 -0700

mapi: Add PatchParameteriOES and PatchParameteriEXT.

The OES_tessellation_shader and EXT_tessellation_shader specifications
have suffixed names.  These are identical to the core function, so just
alias them.

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

---

 src/mapi/glapi/gen/ARB_tessellation_shader.xml | 10 ++++++++++
 src/mesa/main/tests/dispatch_sanity.cpp        |  3 +++
 2 files changed, 13 insertions(+)

diff --git a/src/mapi/glapi/gen/ARB_tessellation_shader.xml b/src/mapi/glapi/gen/ARB_tessellation_shader.xml
index cc55f9b..e26f227 100644
--- a/src/mapi/glapi/gen/ARB_tessellation_shader.xml
+++ b/src/mapi/glapi/gen/ARB_tessellation_shader.xml
@@ -58,6 +58,16 @@
         <param name="pname" type="GLenum"/>
         <param name="values" type="const GLfloat *"/>
     </function>
+
+    <function name="PatchParameteriEXT" es2="3.1" alias="PatchParameteri">
+        <param name="pname" type="GLenum"/>
+        <param name="value" type="GLint"/>
+    </function>
+
+    <function name="PatchParameteriOES" es2="3.1" alias="PatchParameteri">
+        <param name="pname" type="GLenum"/>
+        <param name="value" type="GLint"/>
+    </function>
 </category>
 
 </OpenGLAPI>
diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
index ee3c3d4..cfbf70d 100644
--- a/src/mesa/main/tests/dispatch_sanity.cpp
+++ b/src/mesa/main/tests/dispatch_sanity.cpp
@@ -2594,5 +2594,8 @@ const struct function gles31_functions_possible[] = {
    /* GL_OES_geometry_shader */
    { "glFramebufferTextureOES", 31, -1},
 
+   /* GL_OES_tessellation_shader */
+   { "glPatchParameteriOES", 31, -1 },
+
    { NULL, 0, -1 },
  };




More information about the mesa-commit mailing list