glapi: add GL_EXT_polygon_offset_clamp
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Dec 2014 06:47:15 +0000 (01:47 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 3 Feb 2015 01:35:36 +0000 (20:35 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/polygon.c
src/mesa/main/polygon.h
src/mesa/main/tests/dispatch_sanity.cpp

index e3cbab35a6914d713da0aca409bc640e0fed36a9..17bf62a10facdb7694c95365c8266df124e7afb0 100644 (file)
 
 <xi:include href="INTEL_performance_query.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
+<category name="GL_EXT_polygon_offset_clamp" number="460">
+    <enum name="POLYGON_OFFSET_CLAMP_EXT"             value="0x8E1B">
+        <size name="Get" mode="get"/>
+    </enum>
+    <function name="PolygonOffsetClampEXT" offset="assign">
+        <param name="factor" type="GLfloat"/>
+        <param name="units"  type="GLfloat"/>
+        <param name="clamp"  type="GLfloat"/>
+    </function>
+</category>
+
 <!-- Unnumbered extensions sorted by name. -->
 
 <category name="GL_ATI_blend_equation_separate">
index cdaa2448334f0c65b268a212e8d58842551e07bb..e3b90739d03992c9f0aba0f3f9eb15a665f8289f 100644 (file)
@@ -265,6 +265,12 @@ _mesa_PolygonOffsetEXT( GLfloat factor, GLfloat bias )
    _mesa_PolygonOffset(factor, bias * ctx->DrawBuffer->_DepthMaxF );
 }
 
+void GLAPIENTRY
+_mesa_PolygonOffsetClampEXT( GLfloat factor, GLfloat units, GLfloat clamp )
+{
+
+}
+
 
 
 /**********************************************************************/
index 530adba4cb4f72f1f8a326b75c9eacf6d7329595..6cf14d3e2ac008f78f1e6e0a2986767a3b6b3f61 100644 (file)
@@ -54,13 +54,16 @@ _mesa_PolygonOffset( GLfloat factor, GLfloat units );
 extern void GLAPIENTRY
 _mesa_PolygonOffsetEXT( GLfloat factor, GLfloat bias );
 
+extern void GLAPIENTRY
+_mesa_PolygonOffsetClampEXT( GLfloat factor, GLfloat units, GLfloat clamp );
+
 extern void GLAPIENTRY
 _mesa_PolygonStipple( const GLubyte *mask );
 
 extern void GLAPIENTRY
 _mesa_GetPolygonStipple( GLubyte *mask );
 
-extern void 
+extern void
 _mesa_init_polygon( struct gl_context * ctx );
 
 #endif
index ee4db45402fae9a85c532c54dcf814fde34b8606..1f1a3a842c62f623a1c16309ea71c14e3a7c77c5 100644 (file)
@@ -988,6 +988,9 @@ const struct function gl_core_functions_possible[] = {
    { "glTextureStorage3DMultisample", 45, -1 },
    { "glTextureBuffer", 45, -1 },
 
+   /* GL_EXT_polygon_offset_clamp */
+   { "glPolygonOffsetClampEXT", 11, -1 },
+
    { NULL, 0, -1 }
 };