summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-26 14:49:51 +0200
committerSamuel Pitoiset <[email protected]>2017-06-28 10:25:13 +0200
commitf543107256ab9d901cfea82fed9ab2e0c5fc40ec (patch)
treee6cd54627d847f8de03b33fcd39c6bd4841bac3d /src/mesa
parentdd71fd1dd3518c435fc3d143d80b844d77035cbc (diff)
mesa: add KHR_no_error support for glFenceSync()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/syncobj.c8
-rw-r--r--src/mesa/main/syncobj.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c
index 4278827b11d..9c165314bf3 100644
--- a/src/mesa/main/syncobj.c
+++ b/src/mesa/main/syncobj.c
@@ -292,6 +292,14 @@ fence_sync(struct gl_context *ctx, GLenum condition, GLbitfield flags)
GLsync GLAPIENTRY
+_mesa_FenceSync_no_error(GLenum condition, GLbitfield flags)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ return fence_sync(ctx, condition, flags);
+}
+
+
+GLsync GLAPIENTRY
_mesa_FenceSync(GLenum condition, GLbitfield flags)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h
index 426959f6b2e..2b50d062b13 100644
--- a/src/mesa/main/syncobj.h
+++ b/src/mesa/main/syncobj.h
@@ -60,6 +60,9 @@ _mesa_IsSync(GLsync sync);
extern void GLAPIENTRY
_mesa_DeleteSync(GLsync sync);
+GLsync GLAPIENTRY
+_mesa_FenceSync_no_error(GLenum condition, GLbitfield flags);
+
extern GLsync GLAPIENTRY
_mesa_FenceSync(GLenum condition, GLbitfield flags);