diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:12:30 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:52:38 +1100 |
commit | ba72554f3e576c1674d52ab16d8d2edff9398b71 (patch) | |
tree | 317c80f33ea1edcf238d3545ff1a6104a7d55fc8 /src/gallium/state_trackers/nine/nine_queue.c | |
parent | be188289e1bf0e259c91a751c405d54bb99bc5d4 (diff) |
gallium/util: replace pipe_mutex_lock() with mtx_lock()
replace pipe_mutex_lock() was made unnecessary with fd33a6bcd7f12.
Replaced using:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_lock(\([^)]*\)):mtx_lock(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_queue.c')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/nine_queue.c b/src/gallium/state_trackers/nine/nine_queue.c index 07dfee58188..39de0ca9650 100644 --- a/src/gallium/state_trackers/nine/nine_queue.c +++ b/src/gallium/state_trackers/nine/nine_queue.c @@ -85,7 +85,7 @@ nine_queue_wait_flush(struct nine_queue_pool* ctx) struct nine_cmdbuf *cmdbuf = &ctx->pool[ctx->tail]; /* wait for cmdbuf full */ - pipe_mutex_lock(ctx->mutex_push); + mtx_lock(&ctx->mutex_push); while (!cmdbuf->full) { DBG("waiting for full cmdbuf\n"); @@ -111,7 +111,7 @@ nine_queue_get(struct nine_queue_pool* ctx) if (ctx->cur_instr == cmdbuf->num_instr) { /* signal waiting producer */ - pipe_mutex_lock(ctx->mutex_pop); + mtx_lock(&ctx->mutex_pop); DBG("freeing cmdbuf=%p\n", cmdbuf); cmdbuf->full = 0; cnd_signal(&ctx->event_pop); @@ -148,7 +148,7 @@ nine_queue_flush(struct nine_queue_pool* ctx) return; /* signal waiting worker */ - pipe_mutex_lock(ctx->mutex_push); + mtx_lock(&ctx->mutex_push); cmdbuf->full = 1; cnd_signal(&ctx->event_push); pipe_mutex_unlock(ctx->mutex_push); @@ -158,7 +158,7 @@ nine_queue_flush(struct nine_queue_pool* ctx) cmdbuf = &ctx->pool[ctx->head]; /* wait for queue empty */ - pipe_mutex_lock(ctx->mutex_pop); + mtx_lock(&ctx->mutex_pop); while (cmdbuf->full) { DBG("waiting for empty cmdbuf\n"); |