diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 10:41:32 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:23:26 +1100 |
commit | 5e56c2c79d6d7e59d9098b79912149b00973251d (patch) | |
tree | fb3427be7c32ec0e0f193296cb02a564c092e1fe /src/gallium/state_trackers/nine | |
parent | 74c879ac75d5e9262b668c8c6fdaa5d36e3c3bf3 (diff) |
gallium/util: replace pipe_condvar_signal() with cnd_signal()
pipe_condvar_signal() was made unnecessary with fd33a6bcd7f12.
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_queue.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/nine_state.c | 4 |
2 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 fdfbdbb2472..b50b57bc90f 100644 --- a/src/gallium/state_trackers/nine/nine_queue.c +++ b/src/gallium/state_trackers/nine/nine_queue.c @@ -114,7 +114,7 @@ nine_queue_get(struct nine_queue_pool* ctx) pipe_mutex_lock(ctx->mutex_pop); DBG("freeing cmdbuf=%p\n", cmdbuf); cmdbuf->full = 0; - pipe_condvar_signal(ctx->event_pop); + cnd_signal(&ctx->event_pop); pipe_mutex_unlock(ctx->mutex_pop); ctx->tail = (ctx->tail + 1) & NINE_CMD_BUFS_MASK; @@ -150,7 +150,7 @@ nine_queue_flush(struct nine_queue_pool* ctx) /* signal waiting worker */ pipe_mutex_lock(ctx->mutex_push); cmdbuf->full = 1; - pipe_condvar_signal(ctx->event_push); + cnd_signal(&ctx->event_push); pipe_mutex_unlock(ctx->mutex_push); ctx->head = (ctx->head + 1) & NINE_CMD_BUFS_MASK; diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 0a2a0b9c792..90c49cf8f88 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -108,7 +108,7 @@ PIPE_THREAD_ROUTINE(nine_csmt_worker, arg) if (instr->func(ctx->device, instr)) { pipe_mutex_lock(ctx->mutex_processed); p_atomic_set(&ctx->processed, TRUE); - pipe_condvar_signal(ctx->event_processed); + cnd_signal(&ctx->event_processed); pipe_mutex_unlock(ctx->mutex_processed); } if (p_atomic_read(&ctx->toPause)) { @@ -124,7 +124,7 @@ PIPE_THREAD_ROUTINE(nine_csmt_worker, arg) if (p_atomic_read(&ctx->terminate)) { pipe_mutex_lock(ctx->mutex_processed); p_atomic_set(&ctx->processed, TRUE); - pipe_condvar_signal(ctx->event_processed); + cnd_signal(&ctx->event_processed); pipe_mutex_unlock(ctx->mutex_processed); break; } |