diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:01 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:48:11 +1100 |
commit | 2efddc63ee864ab917e444b68a7c2dcf520d451e (patch) | |
tree | c5b3e14ccdf933775310fe593f6c14baf2b88f7b /src/gallium/winsys | |
parent | 464d4806c112c6d224a55b328cde327a025acd91 (diff) |
gallium/util: replace pipe_mutex with mtx_t
pipe_mutex was made unnecessary with fd33a6bcd7f12.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h | 4 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_bo.h | 2 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_winsys.h | 10 | ||||
-rw-r--r-- | src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_fence.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_surface.h | 2 | ||||
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.h | 4 | ||||
-rw-r--r-- | src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h | 2 |
9 files changed, 15 insertions, 15 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h index b19d9767dad..a5154ffe7bf 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h @@ -52,7 +52,7 @@ struct amdgpu_winsys { amdgpu_device_handle dev; - pipe_mutex bo_fence_lock; + mtx_t bo_fence_lock; int num_cs; /* The number of command streams created. */ unsigned num_total_rejected_cs; @@ -79,7 +79,7 @@ struct amdgpu_winsys { bool check_vm; /* List of all allocated buffers */ - pipe_mutex global_bo_list_lock; + mtx_t global_bo_list_lock; struct list_head global_bo_list; unsigned num_buffers; }; diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.h b/src/gallium/winsys/radeon/drm/radeon_drm_bo.h index 236e94cbbff..d5fababe702 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.h @@ -43,7 +43,7 @@ struct radeon_bo { struct pb_cache_entry cache_entry; void *ptr; - pipe_mutex map_mutex; + mtx_t map_mutex; unsigned map_count; bool use_reusable_pool; } real; diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index a39a7bed5f4..6c6d920d032 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -57,7 +57,7 @@ pipe_static_mutex(fd_tab_mutex); * with multiple contexts (here command streams) backed by one winsys. */ static bool radeon_set_fd_access(struct radeon_drm_cs *applier, struct radeon_drm_cs **owner, - pipe_mutex *mutex, + mtx_t *mutex, unsigned request, const char *request_name, bool enable) { diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h index 04659e45ef7..362dab22398 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.h @@ -78,9 +78,9 @@ struct radeon_drm_winsys { struct util_hash_table *bo_handles; /* List of buffer virtual memory ranges. Protectded by bo_handles_mutex. */ struct util_hash_table *bo_vas; - pipe_mutex bo_handles_mutex; - pipe_mutex bo_va_mutex; - pipe_mutex bo_fence_lock; + mtx_t bo_handles_mutex; + mtx_t bo_va_mutex; + mtx_t bo_fence_lock; uint64_t va_offset; struct list_head va_holes; @@ -91,9 +91,9 @@ struct radeon_drm_winsys { uint32_t num_cpus; /* Number of CPUs. */ struct radeon_drm_cs *hyperz_owner; - pipe_mutex hyperz_owner_mutex; + mtx_t hyperz_owner_mutex; struct radeon_drm_cs *cmask_owner; - pipe_mutex cmask_owner_mutex; + mtx_t cmask_owner_mutex; /* multithreaded command submission */ struct util_queue cs_queue; 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 d049d1dbc46..4c5a12121f8 100644 --- a/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c +++ b/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c @@ -70,7 +70,7 @@ struct fenced_manager /** * Following members are mutable and protected by this mutex. */ - pipe_mutex mutex; + mtx_t mutex; /** * Fenced buffer list. diff --git a/src/gallium/winsys/svga/drm/vmw_fence.c b/src/gallium/winsys/svga/drm/vmw_fence.c index bcf473a932c..0fbb078a84d 100644 --- a/src/gallium/winsys/svga/drm/vmw_fence.c +++ b/src/gallium/winsys/svga/drm/vmw_fence.c @@ -40,7 +40,7 @@ struct vmw_fence_ops struct pb_fence_ops base; struct vmw_winsys_screen *vws; - pipe_mutex mutex; + mtx_t mutex; /* * Protected by mutex; diff --git a/src/gallium/winsys/svga/drm/vmw_surface.h b/src/gallium/winsys/svga/drm/vmw_surface.h index f8b582d2cef..baeef5056bd 100644 --- a/src/gallium/winsys/svga/drm/vmw_surface.h +++ b/src/gallium/winsys/svga/drm/vmw_surface.h @@ -57,7 +57,7 @@ struct vmw_svga_winsys_surface unsigned next_present_no; uint32_t present_fences[VMW_MAX_PRESENTS]; - pipe_mutex mutex; + mtx_t mutex; struct svga_winsys_buffer *buf; /* Current backing guest buffer */ uint32_t mapcount; /* Number of mappers */ uint32_t map_mode; /* PIPE_TRANSFER_[READ|WRITE] */ diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h index ffd7658ca81..f6772153a42 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.h @@ -59,11 +59,11 @@ struct virgl_drm_winsys struct list_head delayed; int num_delayed; unsigned usecs; - pipe_mutex mutex; + mtx_t mutex; struct util_hash_table *bo_handles; struct util_hash_table *bo_names; - pipe_mutex bo_handles_mutex; + mtx_t bo_handles_mutex; }; struct virgl_drm_cmd_buf { diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h index b4faa70b67e..031037b6b5f 100644 --- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h +++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h @@ -48,7 +48,7 @@ struct virgl_vtest_winsys { struct list_head delayed; int num_delayed; unsigned usecs; - pipe_mutex mutex; + mtx_t mutex; }; struct virgl_hw_res { |