diff options
author | Brian Paul <[email protected]> | 2017-08-18 09:50:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-08-21 19:04:51 -0600 |
commit | 84509779a9dc3337d5ebc0626e8a82ef0b8d6b1e (patch) | |
tree | e98df31da51593fa061fb6d066f7cb7b0d77e99f /src/mesa | |
parent | 196a0b28a096aa85b0fff141a4bb59680c8de3f2 (diff) |
mesa: formatting clean-up in syncobj.c
Line wrap to 78 columns, etc. Trivial.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/syncobj.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 84f920bf147..6a21309aadf 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -89,7 +89,7 @@ _mesa_delete_sync_object(struct gl_context *ctx, struct gl_sync_object *syncObj) static void _mesa_fence_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, - GLenum condition, GLbitfield flags) + GLenum condition, GLbitfield flags) { (void) ctx; (void) condition; @@ -113,7 +113,7 @@ _mesa_check_sync(struct gl_context *ctx, struct gl_sync_object *syncObj) static void _mesa_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, - GLbitfield flags, GLuint64 timeout) + GLbitfield flags, GLuint64 timeout) { (void) ctx; (void) syncObj; @@ -319,13 +319,12 @@ _mesa_FenceSync(GLenum condition, GLbitfield flags) if (condition != GL_SYNC_GPU_COMMANDS_COMPLETE) { _mesa_error(ctx, GL_INVALID_ENUM, "glFenceSync(condition=0x%x)", - condition); + condition); return 0; } if (flags != 0) { - _mesa_error(ctx, GL_INVALID_VALUE, "glFenceSync(flags=0x%x)", - condition); + _mesa_error(ctx, GL_INVALID_VALUE, "glFenceSync(flags=0x%x)", condition); return 0; } @@ -355,7 +354,8 @@ client_wait_sync(struct gl_context *ctx, struct gl_sync_object *syncObj, } else { ctx->Driver.ClientWaitSync(ctx, syncObj, flags, timeout); - ret = syncObj->StatusFlag ? GL_CONDITION_SATISFIED : GL_TIMEOUT_EXPIRED; + ret = syncObj->StatusFlag + ? GL_CONDITION_SATISFIED : GL_TIMEOUT_EXPIRED; } } @@ -389,7 +389,8 @@ _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) syncObj = _mesa_get_and_ref_sync(ctx, sync, true); if (!syncObj) { - _mesa_error(ctx, GL_INVALID_VALUE, "glClientWaitSync (not a valid sync object)"); + _mesa_error(ctx, GL_INVALID_VALUE, + "glClientWaitSync (not a valid sync object)"); return GL_WAIT_FAILED; } @@ -435,7 +436,8 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) syncObj = _mesa_get_and_ref_sync(ctx, sync, true); if (!syncObj) { - _mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync (not a valid sync object)"); + _mesa_error(ctx, GL_INVALID_VALUE, + "glWaitSync (not a valid sync object)"); return; } @@ -445,7 +447,7 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) void GLAPIENTRY _mesa_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, - GLint *values) + GLint *values) { GET_CURRENT_CONTEXT(ctx); struct gl_sync_object *syncObj; @@ -454,7 +456,8 @@ _mesa_GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, syncObj = _mesa_get_and_ref_sync(ctx, sync, true); if (!syncObj) { - _mesa_error(ctx, GL_INVALID_VALUE, "glGetSynciv (not a valid sync object)"); + _mesa_error(ctx, GL_INVALID_VALUE, + "glGetSynciv (not a valid sync object)"); return; } |