diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:00:15 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:52:07 +1100 |
commit | 75b47dda0c8895afe77858cbb67efa38e17e1838 (patch) | |
tree | 988551a306b28367a7e3f1fb3b664aeb0fe2807c /src/gallium/state_trackers/nine | |
parent | acdcaf9be4695ccdc4a589a3416591dd316e876c (diff) |
gallium/util: replace pipe_mutex_init() with mtx_init()
pipe_mutex_init() was made unnecessary with fd33a6bcd7f12.
Replace was done using:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_init(\([^)]*\)):(void) mtx_init(\&\1, mtx_plain):g' {} \;
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 | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/nine/nine_queue.c b/src/gallium/state_trackers/nine/nine_queue.c index 4724b6be584..30b0e303c0f 100644 --- a/src/gallium/state_trackers/nine/nine_queue.c +++ b/src/gallium/state_trackers/nine/nine_queue.c @@ -241,10 +241,10 @@ nine_queue_create(void) } cnd_init(&ctx->event_pop); - pipe_mutex_init(ctx->mutex_pop); + (void) mtx_init(&ctx->mutex_pop, mtx_plain); cnd_init(&ctx->event_push); - pipe_mutex_init(ctx->mutex_push); + (void) mtx_init(&ctx->mutex_push, mtx_plain); /* Block until first cmdbuf has been flushed. */ ctx->worker_wait = TRUE; diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 231e42272ec..a331f7ca8d6 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -152,9 +152,9 @@ nine_csmt_create( struct NineDevice9 *This ) return NULL; } cnd_init(&ctx->event_processed); - pipe_mutex_init(ctx->mutex_processed); - pipe_mutex_init(ctx->thread_running); - pipe_mutex_init(ctx->thread_resume); + (void) mtx_init(&ctx->mutex_processed, mtx_plain); + (void) mtx_init(&ctx->thread_running, mtx_plain); + (void) mtx_init(&ctx->thread_resume, mtx_plain); #if DEBUG pipe_thread_setname("Main thread"); |