[Mesa-dev] [Mesa-dev RESEND 24/26] mesa: add KHR_no_error support to glClearBufferiv()

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Aug 1 09:11:58 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mapi/glapi/gen/GL3x.xml | 2 +-
 src/mesa/main/clear.c       | 8 ++++++++
 src/mesa/main/clear.h       | 3 +++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
index 8b895ccb49..8d10f78e82 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -117,7 +117,7 @@
 
   <!-- These functions are unique to GL3 -->
 
-  <function name="ClearBufferiv" es2="3.0" marshal="custom">
+  <function name="ClearBufferiv" es2="3.0" marshal="custom" no_error="true">
     <param name="buffer" type="GLenum"/>
     <param name="drawbuffer" type="GLint"/>
     <param name="value" type="const GLint *"/>
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c
index ea75a95184..c5e7f1346b 100644
--- a/src/mesa/main/clear.c
+++ b/src/mesa/main/clear.c
@@ -415,6 +415,14 @@ clear_bufferiv(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
 
 
 void GLAPIENTRY
+_mesa_ClearBufferiv_no_error(GLenum buffer, GLint drawbuffer, const GLint *value)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   clear_bufferiv(ctx, buffer, drawbuffer, value, true);
+}
+
+
+void GLAPIENTRY
 _mesa_ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value)
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h
index 92cc472440..151905c0ef 100644
--- a/src/mesa/main/clear.h
+++ b/src/mesa/main/clear.h
@@ -49,6 +49,9 @@ _mesa_Clear_no_error(GLbitfield mask);
 extern void GLAPIENTRY
 _mesa_Clear( GLbitfield mask );
 
+void GLAPIENTRY
+_mesa_ClearBufferiv_no_error(GLenum buffer, GLint drawbuffer,
+                             const GLint *value);
 
 extern void GLAPIENTRY
 _mesa_ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value);
-- 
2.13.3



More information about the mesa-dev mailing list