summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-07-08 11:42:08 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-08-08 09:59:03 -0700
commit73554c47e0795a8f15a351b80498c60cf22b2535 (patch)
tree46ddf7e926bcaf3117a6fd8e13ef6e62d89fe108
parent96bbb620a5952828cabe27ef7eb3adaa3f2226f4 (diff)
downloadexternal_mesa3d-73554c47e0795a8f15a351b80498c60cf22b2535.zip
external_mesa3d-73554c47e0795a8f15a351b80498c60cf22b2535.tar.gz
external_mesa3d-73554c47e0795a8f15a351b80498c60cf22b2535.tar.bz2
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@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--src/mapi/glapi/gen/ARB_tessellation_shader.xml10
-rw-r--r--src/mesa/main/tests/dispatch_sanity.cpp3
2 files changed, 13 insertions, 0 deletions
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 },
};