Module: Mesa
Branch: master
Commit: fff132754770d54da0c285e266737d9fcd73ca94
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fff132754770d54da0c285e266737d9fcd73ca94

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Aug 24 11:36:45 2017 +0200

mesa: add KHR_no_error support to glBindBufferOffsetEXT()

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>

---

 src/mapi/glapi/gen/EXT_transform_feedback.xml |  2 +-
 src/mesa/main/transformfeedback.c             | 10 ++++++++++
 src/mesa/main/transformfeedback.h             |  4 ++++
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/EXT_transform_feedback.xml 
b/src/mapi/glapi/gen/EXT_transform_feedback.xml
index 7be87f710a..26948cc7bd 100644
--- a/src/mapi/glapi/gen/EXT_transform_feedback.xml
+++ b/src/mapi/glapi/gen/EXT_transform_feedback.xml
@@ -32,7 +32,7 @@
     <param name="size" type="GLsizeiptr"/>
   </function>
 
-  <function name="BindBufferOffsetEXT">
+  <function name="BindBufferOffsetEXT" no_error="true">
     <param name="target" type="GLenum"/>
     <param name="index" type="GLuint"/>
     <param name="buffer" type="GLuint"/>
diff --git a/src/mesa/main/transformfeedback.c 
b/src/mesa/main/transformfeedback.c
index 44a6e149db..befc74444c 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -802,6 +802,16 @@ bind_buffer_offset(struct gl_context *ctx,
 
 
 void GLAPIENTRY
+_mesa_BindBufferOffsetEXT_no_error(GLenum target, GLuint index, GLuint buffer,
+                                   GLintptr offset)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   bind_buffer_offset(ctx, ctx->TransformFeedback.CurrentObject, index, buffer,
+                      offset, true);
+}
+
+
+void GLAPIENTRY
 _mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
                           GLintptr offset)
 {
diff --git a/src/mesa/main/transformfeedback.h 
b/src/mesa/main/transformfeedback.h
index cc798878b5..78a6c3377d 100644
--- a/src/mesa/main/transformfeedback.h
+++ b/src/mesa/main/transformfeedback.h
@@ -78,6 +78,10 @@ _mesa_bind_buffer_base_transform_feedback(struct gl_context 
*ctx,
                                          struct gl_buffer_object *bufObj,
                                          bool dsa);
 
+void GLAPIENTRY
+_mesa_BindBufferOffsetEXT_no_error(GLenum target, GLuint index, GLuint buffer,
+                                   GLintptr offset);
+
 extern void GLAPIENTRY
 _mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
                           GLintptr offset);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to