diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 10:41:31 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:23:26 +1100 |
commit | 74c879ac75d5e9262b668c8c6fdaa5d36e3c3bf3 (patch) | |
tree | 4600fd1eef8b5d964cfea8b10ba97286d6e0b292 /src/gallium/state_trackers/nine | |
parent | 1e0314281a7d2e57b0e0ad2296445dffdb26dbd2 (diff) |
gallium/util: replace pipe_condvar_wait() with cnd_wait()
pipe_condvar_wait() 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 | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/nine_queue.c b/src/gallium/state_trackers/nine/nine_queue.c index 004d5816b84..fdfbdbb2472 100644 --- a/src/gallium/state_trackers/nine/nine_queue.c +++ b/src/gallium/state_trackers/nine/nine_queue.c @@ -89,7 +89,7 @@ nine_queue_wait_flush(struct nine_queue_pool* ctx) while (!cmdbuf->full) { DBG("waiting for full cmdbuf\n"); - pipe_condvar_wait(ctx->event_push, ctx->mutex_push); + cnd_wait(&ctx->event_push, &ctx->mutex_push); } DBG("got cmdbuf=%p\n", cmdbuf); pipe_mutex_unlock(ctx->mutex_push); @@ -162,7 +162,7 @@ nine_queue_flush(struct nine_queue_pool* ctx) while (cmdbuf->full) { DBG("waiting for empty cmdbuf\n"); - pipe_condvar_wait(ctx->event_pop, ctx->mutex_pop); + cnd_wait(&ctx->event_pop, &ctx->mutex_pop); } DBG("got empty cmdbuf=%p\n", cmdbuf); pipe_mutex_unlock(ctx->mutex_pop); diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index e1a2ff0cf97..0a2a0b9c792 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -81,7 +81,7 @@ nine_csmt_wait_processed(struct csmt_context *ctx) { pipe_mutex_lock(ctx->mutex_processed); while (!p_atomic_read(&ctx->processed)) { - pipe_condvar_wait(ctx->event_processed, ctx->mutex_processed); + cnd_wait(&ctx->event_processed, &ctx->mutex_processed); } pipe_mutex_unlock(ctx->mutex_processed); } |