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/winsys/svga | |
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/winsys/svga')
-rw-r--r-- | src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_surface.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c b/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c index 0553662380f..293fe7e032e 100644 --- a/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c +++ b/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c @@ -809,7 +809,7 @@ fenced_bufmgr_destroy(struct pb_manager *mgr) #endif pipe_mutex_unlock(fenced_mgr->mutex); - pipe_mutex_destroy(fenced_mgr->mutex); + mtx_destroy(&fenced_mgr->mutex); FREE(fenced_mgr); } diff --git a/src/gallium/winsys/svga/drm/vmw_surface.c b/src/gallium/winsys/svga/drm/vmw_surface.c index a438b1a7c5b..9fadbf95a02 100644 --- a/src/gallium/winsys/svga/drm/vmw_surface.c +++ b/src/gallium/winsys/svga/drm/vmw_surface.c @@ -201,7 +201,7 @@ vmw_svga_winsys_surface_reference(struct vmw_svga_winsys_surface **pdst, assert(p_atomic_read(&dst->validated) == 0); dst->sid = SVGA3D_INVALID_ID; #endif - pipe_mutex_destroy(dst->mutex); + mtx_destroy(&dst->mutex); FREE(dst); } |