diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-26 14:44:43 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:13 +0200 |
commit | 6e0cd291327a295714effbdd730068ae8843ba11 (patch) | |
tree | b50c6c5056e11be5c1a0059daa8ffd6146b8ff85 /src/mesa/main/syncobj.c | |
parent | 20ff1f9db7fc5f5ed5298a8dce9f2dac431ca2dd (diff) |
mesa: add KHR_no_error support for glClientWaitSync()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/syncobj.c')
-rw-r--r-- | src/mesa/main/syncobj.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index ce9c99725ea..1347a0fcc4b 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -337,6 +337,16 @@ client_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, GLenum GLAPIENTRY +_mesa_ClientWaitSync_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); + return client_wait_sync(ctx, syncObj, flags, timeout); +} + + +GLenum GLAPIENTRY _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) { GET_CURRENT_CONTEXT(ctx); |