diff options
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 7 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_cache.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_slab.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_queue.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_range.h | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_ringbuffer.c | 2 |
8 files changed, 12 insertions, 15 deletions
diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index cccb5315579..571e3c68dae 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -108,9 +108,6 @@ static inline int pipe_thread_is_self( pipe_thread thread ) return 0; } -#define pipe_mutex_destroy(mutex) \ - mtx_destroy(&(mutex)) - #define pipe_mutex_lock(mutex) \ (void) mtx_lock(&(mutex)) @@ -185,7 +182,7 @@ static inline void pipe_barrier_init(pipe_barrier *barrier, unsigned count) static inline void pipe_barrier_destroy(pipe_barrier *barrier) { assert(barrier->waiters == 0); - pipe_mutex_destroy(barrier->mutex); + mtx_destroy(&barrier->mutex); cnd_destroy(&barrier->condvar); } @@ -238,7 +235,7 @@ pipe_semaphore_init(pipe_semaphore *sema, int init_val) static inline void pipe_semaphore_destroy(pipe_semaphore *sema) { - pipe_mutex_destroy(sema->mutex); + mtx_destroy(&sema->mutex); cnd_destroy(&sema->cond); } diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c index fefdcefaf53..b3b78284b4a 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c +++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c @@ -992,7 +992,7 @@ fenced_bufmgr_destroy(struct pb_manager *mgr) #endif pipe_mutex_unlock(fenced_mgr->mutex); - pipe_mutex_destroy(fenced_mgr->mutex); + mtx_destroy(&fenced_mgr->mutex); if (fenced_mgr->provider) fenced_mgr->provider->destroy(fenced_mgr->provider); diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c index f614abfc2e8..33f068e13fb 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c @@ -240,7 +240,7 @@ pb_debug_buffer_destroy(struct pb_buffer *_buf) LIST_DEL(&buf->head); pipe_mutex_unlock(mgr->mutex); - pipe_mutex_destroy(buf->mutex); + mtx_destroy(&buf->mutex); pb_reference(&buf->buffer, NULL); FREE(buf); @@ -449,7 +449,7 @@ pb_debug_manager_destroy(struct pb_manager *_mgr) } pipe_mutex_unlock(mgr->mutex); - pipe_mutex_destroy(mgr->mutex); + mtx_destroy(&mgr->mutex); mgr->provider->destroy(mgr->provider); FREE(mgr); } diff --git a/src/gallium/auxiliary/pipebuffer/pb_cache.c b/src/gallium/auxiliary/pipebuffer/pb_cache.c index 422318c599b..adae22270aa 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_cache.c +++ b/src/gallium/auxiliary/pipebuffer/pb_cache.c @@ -298,5 +298,5 @@ void pb_cache_deinit(struct pb_cache *mgr) { pb_cache_release_all_buffers(mgr); - pipe_mutex_destroy(mgr->mutex); + mtx_destroy(&mgr->mutex); } diff --git a/src/gallium/auxiliary/pipebuffer/pb_slab.c b/src/gallium/auxiliary/pipebuffer/pb_slab.c index 6f6664f4297..9ad88db257c 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_slab.c @@ -248,5 +248,5 @@ pb_slabs_deinit(struct pb_slabs *slabs) } FREE(slabs->groups); - pipe_mutex_destroy(slabs->mutex); + mtx_destroy(&slabs->mutex); } diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index 56a9fa8cf32..092f91af3c5 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -123,7 +123,7 @@ util_queue_fence_destroy(struct util_queue_fence *fence) { assert(fence->signalled); cnd_destroy(&fence->cond); - pipe_mutex_destroy(fence->mutex); + mtx_destroy(&fence->mutex); } /**************************************************************************** @@ -251,7 +251,7 @@ fail: if (queue->jobs) { cnd_destroy(&queue->has_space_cond); cnd_destroy(&queue->has_queued_cond); - pipe_mutex_destroy(queue->lock); + mtx_destroy(&queue->lock); FREE(queue->jobs); } /* also util_queue_is_initialized can be used to check for success */ @@ -283,7 +283,7 @@ util_queue_destroy(struct util_queue *queue) cnd_destroy(&queue->has_space_cond); cnd_destroy(&queue->has_queued_cond); - pipe_mutex_destroy(queue->lock); + mtx_destroy(&queue->lock); FREE(queue->jobs); FREE(queue->threads); } diff --git a/src/gallium/auxiliary/util/u_range.h b/src/gallium/auxiliary/util/u_range.h index 24c78ba662e..d4a4ae1575d 100644 --- a/src/gallium/auxiliary/util/u_range.h +++ b/src/gallium/auxiliary/util/u_range.h @@ -85,7 +85,7 @@ util_range_init(struct util_range *range) static inline void util_range_destroy(struct util_range *range) { - pipe_mutex_destroy(range->write_mutex); + mtx_destroy(&range->write_mutex); } #endif diff --git a/src/gallium/auxiliary/util/u_ringbuffer.c b/src/gallium/auxiliary/util/u_ringbuffer.c index fce113314ae..c13517aa547 100644 --- a/src/gallium/auxiliary/util/u_ringbuffer.c +++ b/src/gallium/auxiliary/util/u_ringbuffer.c @@ -48,7 +48,7 @@ fail: void util_ringbuffer_destroy( struct util_ringbuffer *ring ) { cnd_destroy(&ring->change); - pipe_mutex_destroy(ring->mutex); + mtx_destroy(&ring->mutex); FREE(ring->buf); FREE(ring); } |