diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:04 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:52:16 +1100 |
commit | be188289e1bf0e259c91a751c405d54bb99bc5d4 (patch) | |
tree | 3c160d99455b38128cc79e113f5a9280e762878d /src/gallium/drivers | |
parent | 75b47dda0c8895afe77858cbb67efa38e17e1838 (diff) |
gallium/util: replace pipe_mutex_destroy() with mtx_destroy()
pipe_mutex_destroy() was made unnecessary with fd33a6bcd7f12.
Replace was done with:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_destroy(\([^)]*\)):mtx_destroy(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_context.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_fence.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_scene.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_surface.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_cache.c | 2 |
13 files changed, 17 insertions, 17 deletions
diff --git a/src/gallium/drivers/ddebug/dd_context.c b/src/gallium/drivers/ddebug/dd_context.c index 1ce4a3b576e..550f7641cc2 100644 --- a/src/gallium/drivers/ddebug/dd_context.c +++ b/src/gallium/drivers/ddebug/dd_context.c @@ -598,7 +598,7 @@ dd_context_destroy(struct pipe_context *_pipe) dctx->kill_thread = 1; pipe_mutex_unlock(dctx->mutex); pipe_thread_wait(dctx->thread); - pipe_mutex_destroy(dctx->mutex); + mtx_destroy(&dctx->mutex); assert(!dctx->records); } @@ -873,7 +873,7 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe) (void) mtx_init(&dctx->mutex, mtx_plain); dctx->thread = pipe_thread_create(dd_thread_pipelined_hang_detect, dctx); if (!dctx->thread) { - pipe_mutex_destroy(dctx->mutex); + mtx_destroy(&dctx->mutex); goto fail; } } diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 3f43b8d9d86..4a461fd511c 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -142,7 +142,7 @@ fd_screen_destroy(struct pipe_screen *pscreen) slab_destroy_parent(&screen->transfer_pool); - pipe_mutex_destroy(screen->lock); + mtx_destroy(&screen->lock); free(screen); } diff --git a/src/gallium/drivers/llvmpipe/lp_fence.c b/src/gallium/drivers/llvmpipe/lp_fence.c index 04c148395e3..ec26bfe9532 100644 --- a/src/gallium/drivers/llvmpipe/lp_fence.c +++ b/src/gallium/drivers/llvmpipe/lp_fence.c @@ -72,7 +72,7 @@ lp_fence_destroy(struct lp_fence *fence) if (LP_DEBUG & DEBUG_FENCE) debug_printf("%s %d\n", __FUNCTION__, fence->id); - pipe_mutex_destroy(fence->mutex); + mtx_destroy(&fence->mutex); cnd_destroy(&fence->signalled); FREE(fence); } diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index 0d619eff3ff..66dd1d23257 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.c +++ b/src/gallium/drivers/llvmpipe/lp_scene.c @@ -90,7 +90,7 @@ void lp_scene_destroy(struct lp_scene *scene) { lp_fence_reference(&scene->fence, NULL); - pipe_mutex_destroy(scene->mutex); + mtx_destroy(&scene->mutex); assert(scene->data.head->next == NULL); FREE(scene->data.head); FREE(scene); diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index f5f7e7178da..4bc202c497e 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -561,7 +561,7 @@ llvmpipe_destroy_screen( struct pipe_screen *_screen ) if(winsys->destroy) winsys->destroy(winsys); - pipe_mutex_destroy(screen->rast_mutex); + mtx_destroy(&screen->rast_mutex); FREE(screen); } diff --git a/src/gallium/drivers/nouveau/nv50/nv50_surface.c b/src/gallium/drivers/nouveau/nv50/nv50_surface.c index 5635e9fe557..46cd2e61f9d 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1780,7 +1780,7 @@ nv50_blitter_destroy(struct nv50_screen *screen) } } - pipe_mutex_destroy(blitter->mutex); + mtx_destroy(&blitter->mutex); FREE(blitter); } diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c index 5720937c090..1e91fa8b6ee 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c @@ -1689,7 +1689,7 @@ nvc0_blitter_destroy(struct nvc0_screen *screen) } } - pipe_mutex_destroy(blitter->mutex); + mtx_destroy(&blitter->mutex); FREE(blitter); } diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 392b0bb6a8a..9a2400df935 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -684,7 +684,7 @@ static void r300_destroy_screen(struct pipe_screen* pscreen) if (rws && !rws->unref(rws)) return; - pipe_mutex_destroy(r300screen->cmask_mutex); + mtx_destroy(&r300screen->cmask_mutex); slab_destroy_parent(&r300screen->pool_transfers); if (rws) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 96b95ab09b6..0020686e58b 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -1360,8 +1360,8 @@ void r600_destroy_common_screen(struct r600_common_screen *rscreen) r600_perfcounters_destroy(rscreen); r600_gpu_load_kill_thread(rscreen); - pipe_mutex_destroy(rscreen->gpu_load_mutex); - pipe_mutex_destroy(rscreen->aux_context_lock); + mtx_destroy(&rscreen->gpu_load_mutex); + mtx_destroy(&rscreen->aux_context_lock); rscreen->aux_context->destroy(rscreen->aux_context); slab_destroy_parent(&rscreen->pool_transfers); diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 723975aa01c..1550326f8ed 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -704,7 +704,7 @@ static void si_destroy_screen(struct pipe_screen* pscreen) FREE(part); } } - pipe_mutex_destroy(sscreen->shader_parts_mutex); + mtx_destroy(&sscreen->shader_parts_mutex); si_destroy_shader_cache(sscreen); r600_destroy_common_screen(&sscreen->b); } diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 20410cebdae..c370f151dec 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -313,7 +313,7 @@ void si_destroy_shader_cache(struct si_screen *sscreen) if (sscreen->shader_cache) _mesa_hash_table_destroy(sscreen->shader_cache, si_destroy_shader_cache_entry); - pipe_mutex_destroy(sscreen->shader_cache_mutex); + mtx_destroy(&sscreen->shader_cache_mutex); } /* SHADER STATES */ @@ -1960,7 +1960,7 @@ static void si_delete_shader_selector(struct pipe_context *ctx, void *state) si_delete_shader(sctx, sel->gs_copy_shader); util_queue_fence_destroy(&sel->ready); - pipe_mutex_destroy(sel->mutex); + mtx_destroy(&sel->mutex); free(sel->tokens); free(sel); } diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 479b6fc522f..72c142d6cf8 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -919,8 +919,8 @@ svga_destroy_screen( struct pipe_screen *screen ) svga_screen_cache_cleanup(svgascreen); - pipe_mutex_destroy(svgascreen->swc_mutex); - pipe_mutex_destroy(svgascreen->tex_mutex); + mtx_destroy(&svgascreen->swc_mutex); + mtx_destroy(&svgascreen->tex_mutex); svgascreen->sws->destroy(svgascreen->sws); diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 514fc00afa4..c14996de892 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.c +++ b/src/gallium/drivers/svga/svga_screen_cache.c @@ -396,7 +396,7 @@ svga_screen_cache_cleanup(struct svga_screen *svgascreen) sws->fence_reference(sws, &cache->entries[i].fence, NULL); } - pipe_mutex_destroy(cache->mutex); + mtx_destroy(&cache->mutex); } |