From be188289e1bf0e259c91a751c405d54bb99bc5d4 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sun, 5 Mar 2017 12:32:04 +1100 Subject: gallium/util: replace pipe_mutex_destroy() with mtx_destroy() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/svga/svga_screen.c | 4 ++-- src/gallium/drivers/svga/svga_screen_cache.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/svga') 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); } -- cgit v1.2.3