diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:01 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:48:11 +1100 |
commit | 2efddc63ee864ab917e444b68a7c2dcf520d451e (patch) | |
tree | c5b3e14ccdf933775310fe593f6c14baf2b88f7b /src/gallium/auxiliary/pipebuffer | |
parent | 464d4806c112c6d224a55b328cde327a025acd91 (diff) |
gallium/util: replace pipe_mutex with mtx_t
pipe_mutex was made unnecessary with fd33a6bcd7f12.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer')
-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_bufmgr_mm.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_cache.h | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_slab.h | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c index 7717d784f78..f5e761b1e6b 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c +++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c @@ -81,7 +81,7 @@ struct fenced_manager /** * Following members are mutable and protected by this mutex. */ - pipe_mutex mutex; + mtx_t mutex; /** * Fenced buffer list. diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c index 4e36866e08c..26ce60314b9 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c @@ -78,7 +78,7 @@ struct pb_debug_buffer struct debug_stack_frame create_backtrace[PB_DEBUG_CREATE_BACKTRACE]; - pipe_mutex mutex; + mtx_t mutex; unsigned map_count; struct debug_stack_frame map_backtrace[PB_DEBUG_MAP_BACKTRACE]; @@ -95,7 +95,7 @@ struct pb_debug_manager pb_size underflow_size; pb_size overflow_size; - pipe_mutex mutex; + mtx_t mutex; struct list_head list; }; diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c index 023a028a1d0..ef7e5adac32 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c @@ -53,7 +53,7 @@ struct mm_pb_manager { struct pb_manager base; - pipe_mutex mutex; + mtx_t mutex; pb_size size; struct mem_block *heap; diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c index 98877b46352..3bfe720b185 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c @@ -56,7 +56,7 @@ struct pool_pb_manager { struct pb_manager base; - pipe_mutex mutex; + mtx_t mutex; pb_size bufSize; pb_size bufAlign; diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c index cc42eeae564..54aba980179 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c @@ -128,7 +128,7 @@ struct pb_slab_manager */ struct list_head slabs; - pipe_mutex mutex; + mtx_t mutex; }; diff --git a/src/gallium/auxiliary/pipebuffer/pb_cache.h b/src/gallium/auxiliary/pipebuffer/pb_cache.h index 7000fcd1c5a..d082eca8b5d 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_cache.h +++ b/src/gallium/auxiliary/pipebuffer/pb_cache.h @@ -52,7 +52,7 @@ struct pb_cache */ struct list_head buckets[4]; - pipe_mutex mutex; + mtx_t mutex; uint64_t cache_size; uint64_t max_cache_size; unsigned usecs; diff --git a/src/gallium/auxiliary/pipebuffer/pb_slab.h b/src/gallium/auxiliary/pipebuffer/pb_slab.h index e779d95e08a..78a4bf7c47c 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_slab.h +++ b/src/gallium/auxiliary/pipebuffer/pb_slab.h @@ -110,7 +110,7 @@ typedef bool (slab_can_reclaim_fn)(void *priv, struct pb_slab_entry *); */ struct pb_slabs { - pipe_mutex mutex; + mtx_t mutex; unsigned min_order; unsigned num_orders; |