mesa: introduce glPrimitiveBoundingBoxARB entrypoint

This requires a bit of rejiggering, since normally ES entrypoints alias
core ones, not vice-versa.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Ilia Mirkin
2016-08-28 19:53:02 -04:00
parent a69dc2c412
commit 83116d084f
3 changed files with 40 additions and 19 deletions
-19
View File
@@ -1342,23 +1342,4 @@
</category>
<category name="ES3.2">
<!-- TODO: Move to GL 4.x when it is added to a GL version -->
<enum name="PRIMITIVE_BOUNDING_BOX_ARB" count="8" value="0x92BE">
<size name="Get" mode="get"/>
</enum>
<function name="PrimitiveBoundingBox" es2="3.2" desktop="false">
<param name="minX" type="GLfloat"/>
<param name="minY" type="GLfloat"/>
<param name="minZ" type="GLfloat"/>
<param name="minW" type="GLfloat"/>
<param name="maxX" type="GLfloat"/>
<param name="maxY" type="GLfloat"/>
<param name="maxZ" type="GLfloat"/>
<param name="maxW" type="GLfloat"/>
</function>
</category>
</OpenGLAPI>
+37
View File
@@ -8318,6 +8318,43 @@
<function name="BlendBarrierKHR" alias="BlendBarrier" es2="2.0"/>
</category>
<category name="ARB_ES3_2_compatibility" number="177">
<enum name="PRIMITIVE_BOUNDING_BOX_ARB" count="8" value="0x92BE">
<size name="Get" mode="get"/>
</enum>
<enum name="MULTISAMPLE_LINE_WIDTH_RANGE_ARB" count="2" value="0x9381">
<size name="Get" mode="get"/>
</enum>
<enum name="MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB" value="0x9382">
<size name="Get" mode="get"/>
</enum>
<!-- This should be in es_EXT, but this file is included first and
the alias doesn't work otherwise. -->
<function name="PrimitiveBoundingBox" es2="3.2" desktop="false">
<param name="minX" type="GLfloat"/>
<param name="minY" type="GLfloat"/>
<param name="minZ" type="GLfloat"/>
<param name="minW" type="GLfloat"/>
<param name="maxX" type="GLfloat"/>
<param name="maxY" type="GLfloat"/>
<param name="maxZ" type="GLfloat"/>
<param name="maxW" type="GLfloat"/>
</function>
<function name="PrimitiveBoundingBoxARB" alias="PrimitiveBoundingBox">
<param name="minX" type="GLfloat"/>
<param name="minY" type="GLfloat"/>
<param name="minZ" type="GLfloat"/>
<param name="minW" type="GLfloat"/>
<param name="maxX" type="GLfloat"/>
<param name="maxY" type="GLfloat"/>
<param name="maxZ" type="GLfloat"/>
<param name="maxW" type="GLfloat"/>
</function>
</category>
<!-- Non-ARB extensions sorted by extension number. -->
<category name="GL_EXT_blend_color" number="2">
+3
View File
@@ -1866,6 +1866,9 @@ const struct function gl_core_functions_possible[] = {
{ "glMultiDrawArraysIndirectCountARB", 31, -1 },
{ "glMultiDrawElementsIndirectCountARB", 31, -1 },
/* GL_ARB_ES3_2_compatibility */
{ "glPrimitiveBoundingBoxARB", 45, -1 },
{ NULL, 0, -1 }
};