diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:00:15 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:52:07 +1100 |
commit | 75b47dda0c8895afe77858cbb67efa38e17e1838 (patch) | |
tree | 988551a306b28367a7e3f1fb3b664aeb0fe2807c /src/gallium/winsys/virgl/drm | |
parent | acdcaf9be4695ccdc4a589a3416591dd316e876c (diff) |
gallium/util: replace pipe_mutex_init() with mtx_init()
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 <[email protected]>
Diffstat (limited to 'src/gallium/winsys/virgl/drm')
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index 73538730f5e..b6a42343a5e 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -776,8 +776,8 @@ virgl_drm_winsys_create(int drmFD) qdws->num_delayed = 0; qdws->usecs = 1000000; LIST_INITHEAD(&qdws->delayed); - pipe_mutex_init(qdws->mutex); - pipe_mutex_init(qdws->bo_handles_mutex); + (void) mtx_init(&qdws->mutex, mtx_plain); + (void) mtx_init(&qdws->bo_handles_mutex, mtx_plain); qdws->bo_handles = util_hash_table_create(handle_hash, handle_compare); qdws->bo_names = util_hash_table_create(handle_hash, handle_compare); qdws->base.destroy = virgl_drm_winsys_destroy; |