summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-18 11:27:00 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commit667a6e812283fa3f2db84ca06197cdf6f58f0c6d (patch)
treedd167e653b48bc58897c8603558118edbefb4c02
parent81f3a6b29a6eef2b39279524f71ffcdf74fe05e3 (diff)
mesa: add KHR_no_error support to glDeleteSync()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/mapi/glapi/gen/ARB_sync.xml2
-rw-r--r--src/mesa/main/syncobj.c8
-rw-r--r--src/mesa/main/syncobj.h3
3 files changed, 12 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/ARB_sync.xml b/src/mapi/glapi/gen/ARB_sync.xml
index d6412d3bf4c..8ffd9c4c0c2 100644
--- a/src/mapi/glapi/gen/ARB_sync.xml
+++ b/src/mapi/glapi/gen/ARB_sync.xml
@@ -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>
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c
index 6f7bfab42d3..84f920bf147 100644
--- a/src/mesa/main/syncobj.c
+++ b/src/mesa/main/syncobj.c
@@ -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);
diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h
index 7d1bed530c8..79cb0d26adb 100644
--- a/src/mesa/main/syncobj.h
+++ b/src/mesa/main/syncobj.h
@@ -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);