From 75b47dda0c8895afe77858cbb67efa38e17e1838 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sun, 5 Mar 2017 12:00:15 +1100 Subject: gallium/util: replace pipe_mutex_init() with mtx_init() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pipe_mutex_init() was made unnecessary with fd33a6bcd7f12. Replace was done using: find ./src -type f -exec sed -i -- \ 's:pipe_mutex_init(\([^)]*\)):(void) mtx_init(\&\1, mtx_plain):g' {} \; Reviewed-by: Marek Olšák --- src/gallium/drivers/nouveau/nv50/nv50_surface.c | 2 +- src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/nouveau') diff --git a/src/gallium/drivers/nouveau/nv50/nv50_surface.c b/src/gallium/drivers/nouveau/nv50/nv50_surface.c index 01bf14ba730..5635e9fe557 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1755,7 +1755,7 @@ nv50_blitter_create(struct nv50_screen *screen) return false; } - pipe_mutex_init(screen->blitter->mutex); + (void) mtx_init(&screen->blitter->mutex, mtx_plain); nv50_blitter_make_vp(screen->blitter); nv50_blitter_make_sampler(screen->blitter); diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c index 96b2b5fa906..5720937c090 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c @@ -1664,7 +1664,7 @@ nvc0_blitter_create(struct nvc0_screen *screen) } screen->blitter->screen = screen; - pipe_mutex_init(screen->blitter->mutex); + (void) mtx_init(&screen->blitter->mutex, mtx_plain); nvc0_blitter_make_vp(screen->blitter); nvc0_blitter_make_sampler(screen->blitter); -- cgit v1.2.3