diff options
author | Timothy Arceri <[email protected]> | 2017-10-16 11:59:31 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-11-09 12:07:48 +1100 |
commit | f0857fe87b6e8985cb1d0ec46c1a358c4cf37c29 (patch) | |
tree | 6af78cdb291120353e2741681c7799b5799104df /src/mesa/main/errors.c | |
parent | f98a2768ca0609fb81a0ee8f30ac1e70269334c4 (diff) |
mesa: use simple mtx in core mesa
Results from x11perf -copywinwin10 on Eric's SKL:
4.33338% ± 0.905054% (n=40)
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Tested-by: Yogesh Marathe <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r-- | src/mesa/main/errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 9173788d1de..35a2f66c31c 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -276,7 +276,7 @@ _mesa_error( struct gl_context *ctx, GLenum error, const char *fmtString, ... ) do_output = should_output(ctx, error, fmtString); - mtx_lock(&ctx->DebugMutex); + simple_mtx_lock(&ctx->DebugMutex); if (ctx->Debug) { do_log = _mesa_debug_is_message_enabled(ctx->Debug, MESA_DEBUG_SOURCE_API, @@ -287,7 +287,7 @@ _mesa_error( struct gl_context *ctx, GLenum error, const char *fmtString, ... ) else { do_log = GL_FALSE; } - mtx_unlock(&ctx->DebugMutex); + simple_mtx_unlock(&ctx->DebugMutex); if (do_output || do_log) { char s[MAX_DEBUG_MESSAGE_LENGTH], s2[MAX_DEBUG_MESSAGE_LENGTH]; |