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/radeonsi | |
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/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 4 |
2 files changed, 3 insertions, 3 deletions
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); } |