[Mesa-dev] [PATCH 013/101] mesa: add KHR_no_error support to glDeleteSync()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:39:22 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/ARB_sync.xml | 2 +-
src/mesa/main/syncobj.c | 8 ++++++++
src/mesa/main/syncobj.h | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/ARB_sync.xml b/src/mapi/glapi/gen/ARB_sync.xml
index d6412d3bf4..8ffd9c4c0c 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 c23f4dede9..22092ee5b5 100644
--- a/src/mesa/main/syncobj.c
+++ b/src/mesa/main/syncobj.c
@@ -259,6 +259,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 7d1bed530c..79cb0d26ad 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);
--
2.13.3
More information about the mesa-dev
mailing list