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 d6412d3bf4c270f37d7c09c03870719173b5a12e..8ffd9c4c0c2435177f4437113448176e26d2c2e6 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 6f7bfab42d37b7a0d50be5089cc4697cc586b007..84f920bf1470479efdcbbb5bb3e3d4645bb34b90 100644 (file)
@@ -255,6 +255,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)
 {
index 7d1bed530c8d231a50a81edb9df13c08384c2795..79cb0d26adbae4a63739b6ebb7e959d7601a493e 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);