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/state_trackers | |
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/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_screen.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/nine_queue.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/nine_state.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/va/context.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/decode.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/device.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c index da0e4149cea..9b37dff6778 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/gallium/state_trackers/dri/dri_screen.c @@ -404,7 +404,7 @@ dri_destroy_screen_helper(struct dri_screen * screen) screen->base.screen->destroy(screen->base.screen); dri_destroy_option_cache(screen); - pipe_mutex_destroy(screen->opencl_func_mutex); + mtx_destroy(&screen->opencl_func_mutex); } void diff --git a/src/gallium/state_trackers/nine/nine_queue.c b/src/gallium/state_trackers/nine/nine_queue.c index 30b0e303c0f..07dfee58188 100644 --- a/src/gallium/state_trackers/nine/nine_queue.c +++ b/src/gallium/state_trackers/nine/nine_queue.c @@ -265,8 +265,8 @@ void nine_queue_delete(struct nine_queue_pool *ctx) { unsigned i; - pipe_mutex_destroy(ctx->mutex_pop); - pipe_mutex_destroy(ctx->mutex_push); + mtx_destroy(&ctx->mutex_pop); + mtx_destroy(&ctx->mutex_push); for (i = 0; i < NINE_CMD_BUFS; i++) FREE(ctx->pool[i].mem_pool); diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index a331f7ca8d6..978fa013c49 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -233,7 +233,7 @@ nine_csmt_destroy( struct NineDevice9 *device, struct csmt_context *ctx ) nine_csmt_wait_processed(ctx); nine_queue_delete(ctx->pool); - pipe_mutex_destroy(ctx->mutex_processed); + mtx_destroy(&ctx->mutex_processed); FREE(ctx); diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 84bb805d8fa..36e314fa2b7 100644 --- a/src/gallium/state_trackers/va/context.c +++ b/src/gallium/state_trackers/va/context.c @@ -351,7 +351,7 @@ vlVaTerminate(VADriverContextP ctx) drv->pipe->destroy(drv->pipe); drv->vscreen->destroy(drv->vscreen); handle_table_destroy(drv->htab); - pipe_mutex_destroy(drv->mutex); + mtx_destroy(&drv->mutex); FREE(drv); return VA_STATUS_SUCCESS; diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c index 628e5030c5a..387371b29ab 100644 --- a/src/gallium/state_trackers/vdpau/decode.c +++ b/src/gallium/state_trackers/vdpau/decode.c @@ -166,7 +166,7 @@ vlVdpDecoderDestroy(VdpDecoder decoder) pipe_mutex_lock(vldecoder->mutex); vldecoder->decoder->destroy(vldecoder->decoder); pipe_mutex_unlock(vldecoder->mutex); - pipe_mutex_destroy(vldecoder->mutex); + mtx_destroy(&vldecoder->mutex); vlRemoveDataHTAB(decoder); DeviceReference(&vldecoder->device, NULL); diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index 15652f08bf8..3ae3da3be1d 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -233,7 +233,7 @@ vlVdpDeviceDestroy(VdpDevice device) void vlVdpDeviceFree(vlVdpDevice *dev) { - pipe_mutex_destroy(dev->mutex); + mtx_destroy(&dev->mutex); vl_compositor_cleanup(&dev->compositor); pipe_sampler_view_reference(&dev->dummy_sv, NULL); dev->context->destroy(dev->context); |