mesa: add KHR_no_error support to glClearBufferfi()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Jul 2017 12:21:10 +0000 (14:21 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Aug 2017 10:54:32 +0000 (12:54 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/GL3x.xml
src/mesa/main/clear.c
src/mesa/main/clear.h

index 5b3fa26436a72630c209ce24260187cd105e21ba..6df40db3800e44ad2e7b018a2b79c99e8108c866 100644 (file)
     <param name="value" type="const GLfloat *"/>
   </function>
 
-  <function name="ClearBufferfi" es2="3.0" marshal="custom">
+  <function name="ClearBufferfi" es2="3.0" marshal="custom" no_error="true">
     <param name="buffer" type="GLenum"/>
     <param name="drawbuffer" type="GLint"/>
     <param name="depth" type="GLfloat"/>
index 4c3400412cd3d82487f179802f3a33eab37ca399..62a00c04018485d9c8e73f4a7c4eb58fb93bf8ca 100644 (file)
@@ -683,6 +683,15 @@ clear_bufferfi(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
 }
 
 
+void GLAPIENTRY
+_mesa_ClearBufferfi_no_error(GLenum buffer, GLint drawbuffer,
+                             GLfloat depth, GLint stencil)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   clear_bufferfi(ctx, buffer, drawbuffer, depth, stencil, true);
+}
+
+
 void GLAPIENTRY
 _mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
                     GLfloat depth, GLint stencil)
index 780e9ca05cfaec2ad03fa120bff6614e0a578c2a..acc0e68ed7f72bfbad66e2a48eca27f1298ad63d 100644 (file)
@@ -75,6 +75,10 @@ extern void GLAPIENTRY
 _mesa_ClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer,
                               GLint drawbuffer, const GLfloat *value);
 
+void GLAPIENTRY
+_mesa_ClearBufferfi_no_error(GLenum buffer, GLint drawbuffer,
+                             GLfloat depth, GLint stencil);
+
 extern void GLAPIENTRY
 _mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
                     GLfloat depth, GLint stencil);