From f543107256ab9d901cfea82fed9ab2e0c5fc40ec Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 26 Jun 2017 14:49:51 +0200 Subject: mesa: add KHR_no_error support for glFenceSync() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/syncobj.c | 8 ++++++++ src/mesa/main/syncobj.h | 3 +++ 2 files changed, 11 insertions(+) (limited to 'src/mesa/main') 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 @@ -291,6 +291,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) { 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); -- cgit v1.2.3