diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:06 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:53:05 +1100 |
commit | 628e84a58fdb26c63a705861b92f65f242613321 (patch) | |
tree | bd6084a4dee53a1f180c62f41e790ab490ddf3ee /src/gallium/auxiliary/util/u_debug_flush.c | |
parent | ba72554f3e576c1674d52ab16d8d2edff9398b71 (diff) |
gallium/util: replace pipe_mutex_unlock() with mtx_unlock()
pipe_mutex_unlock() was made unnecessary with fd33a6bcd7f12.
Replaced using:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_unlock(\([^)]*\)):mtx_unlock(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug_flush.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_flush.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_flush.c b/src/gallium/auxiliary/util/u_debug_flush.c index dde21f9f917..06d0cfafa82 100644 --- a/src/gallium/auxiliary/util/u_debug_flush.c +++ b/src/gallium/auxiliary/util/u_debug_flush.c @@ -167,7 +167,7 @@ debug_flush_ctx_create(boolean catch_reference_of_mapped, unsigned bt_depth) fctx->bt_depth = bt_depth; mtx_lock(&list_mutex); list_addtail(&fctx->head, &ctx_list); - pipe_mutex_unlock(list_mutex); + mtx_unlock(&list_mutex); return fctx; @@ -227,7 +227,7 @@ debug_flush_map(struct debug_flush_buf *fbuf, unsigned flags) } fbuf->map_frame = debug_flush_capture_frame(1, fbuf->bt_depth); fbuf->mapped = TRUE; - pipe_mutex_unlock(fbuf->mutex); + mtx_unlock(&fbuf->mutex); if (mapped_sync) { struct debug_flush_ctx *fctx; @@ -244,7 +244,7 @@ debug_flush_map(struct debug_flush_buf *fbuf, unsigned flags) FALSE, FALSE, item->ref_frame); } } - pipe_mutex_unlock(list_mutex); + mtx_unlock(&list_mutex); } } @@ -263,7 +263,7 @@ debug_flush_unmap(struct debug_flush_buf *fbuf) fbuf->mapped = FALSE; FREE(fbuf->map_frame); fbuf->map_frame = NULL; - pipe_mutex_unlock(fbuf->mutex); + mtx_unlock(&fbuf->mutex); } void @@ -284,7 +284,7 @@ debug_flush_cb_reference(struct debug_flush_ctx *fctx, debug_flush_alert(NULL, "Map", 0, fbuf->bt_depth, FALSE, FALSE, fbuf->map_frame); } - pipe_mutex_unlock(fbuf->mutex); + mtx_unlock(&fbuf->mutex); if (!item) { item = CALLOC_STRUCT(debug_flush_item); @@ -328,7 +328,7 @@ debug_flush_might_flush_cb(void *key, void *value, void *data) debug_flush_alert(NULL, "First reference", 0, item->bt_depth, FALSE, FALSE, item->ref_frame); } - pipe_mutex_unlock(fbuf->mutex); + mtx_unlock(&fbuf->mutex); return PIPE_OK; } |