mesa: add KHR_no_error support to glDeleteSync()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jul 2017 09:27:00 +0000 (11:27 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_sync.xml
src/mesa/main/syncobj.c
src/mesa/main/syncobj.h

index d6412d3..8ffd9c4 100644 (file)
@@ -50,7 +50,7 @@
        <return type="GLboolean"/>
     </function>
 
-    <function name="DeleteSync" es2="3.0">
+    <function name="DeleteSync" es2="3.0" no_error="true">
         <param name="sync" type="GLsync"/>
     </function>
 
index 6f7bfab..84f920b 100644 (file)
@@ -256,6 +256,14 @@ delete_sync(struct gl_context *ctx, GLsync sync, bool no_error)
 
 
 void GLAPIENTRY
+_mesa_DeleteSync_no_error(GLsync sync)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   delete_sync(ctx, sync, true);
+}
+
+
+void GLAPIENTRY
 _mesa_DeleteSync(GLsync sync)
 {
    GET_CURRENT_CONTEXT(ctx);
index 7d1bed5..79cb0d2 100644 (file)
@@ -57,6 +57,9 @@ _mesa_unref_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj,
 extern GLboolean GLAPIENTRY
 _mesa_IsSync(GLsync sync);
 
+void GLAPIENTRY
+_mesa_DeleteSync_no_error(GLsync sync);
+
 extern void GLAPIENTRY
 _mesa_DeleteSync(GLsync sync);