From: Samuel Pitoiset Date: Tue, 18 Jul 2017 09:11:03 +0000 (+0200) Subject: mesa: add KHR_no_error support to glWaitSync() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8981f90091a3114fe20595c8957068a48fa85e9f;p=mesa.git mesa: add KHR_no_error support to glWaitSync() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_sync.xml b/src/mapi/glapi/gen/ARB_sync.xml index f1463f11a86..d6412d3bf4c 100644 --- a/src/mapi/glapi/gen/ARB_sync.xml +++ b/src/mapi/glapi/gen/ARB_sync.xml @@ -61,7 +61,7 @@ - + diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 915b7009f78..62f6dbc4a60 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -390,6 +390,16 @@ wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, } +void GLAPIENTRY +_mesa_WaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_sync_object *syncObj = _mesa_get_and_ref_sync(ctx, sync, true); + wait_sync(ctx, syncObj, flags, timeout); +} + + void GLAPIENTRY _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) { diff --git a/src/mesa/main/syncobj.h b/src/mesa/main/syncobj.h index 2b50d062b13..7d1bed530c8 100644 --- a/src/mesa/main/syncobj.h +++ b/src/mesa/main/syncobj.h @@ -72,6 +72,9 @@ _mesa_ClientWaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout); extern GLenum GLAPIENTRY _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); +void GLAPIENTRY +_mesa_WaitSync_no_error(GLsync sync, GLbitfield flags, GLuint64 timeout); + extern void GLAPIENTRY _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);