aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-05 12:32:01 +1100
committerTimothy Arceri <[email protected]>2017-03-07 08:48:11 +1100
commit2efddc63ee864ab917e444b68a7c2dcf520d451e (patch)
treec5b3e14ccdf933775310fe593f6c14baf2b88f7b /src/gallium/state_trackers
parent464d4806c112c6d224a55b328cde327a025acd91 (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/state_trackers')
-rw-r--r--src/gallium/state_trackers/dri/dri_screen.h2
-rw-r--r--src/gallium/state_trackers/glx/xlib/xm_api.h2
-rw-r--r--src/gallium/state_trackers/hgl/hgl_context.h2
-rw-r--r--src/gallium/state_trackers/nine/nine_queue.c4
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c6
-rw-r--r--src/gallium/state_trackers/va/va_private.h2
-rw-r--r--src/gallium/state_trackers/vdpau/vdpau_private.h4
7 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.h b/src/gallium/state_trackers/dri/dri_screen.h
index dc4692a1c6b..7f5fd13630f 100644
--- a/src/gallium/state_trackers/dri/dri_screen.h
+++ b/src/gallium/state_trackers/dri/dri_screen.h
@@ -89,7 +89,7 @@ struct dri_screen
__DRIimage * (*lookup_egl_image)(struct dri_screen *ctx, void *handle);
/* OpenCL interop */
- pipe_mutex opencl_func_mutex;
+ mtx_t opencl_func_mutex;
opencl_dri_event_add_ref_t opencl_dri_event_add_ref;
opencl_dri_event_release_t opencl_dri_event_release;
opencl_dri_event_wait_t opencl_dri_event_wait;
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.h b/src/gallium/state_trackers/glx/xlib/xm_api.h
index ccf35a5eb5a..06bf839c96e 100644
--- a/src/gallium/state_trackers/glx/xlib/xm_api.h
+++ b/src/gallium/state_trackers/glx/xlib/xm_api.h
@@ -76,7 +76,7 @@ typedef struct xmesa_visual *XMesaVisual;
struct xmesa_display {
- pipe_mutex mutex;
+ mtx_t mutex;
Display *display;
struct pipe_screen *screen;
diff --git a/src/gallium/state_trackers/hgl/hgl_context.h b/src/gallium/state_trackers/hgl/hgl_context.h
index d2ec7fb49c4..5acb2f08db1 100644
--- a/src/gallium/state_trackers/hgl/hgl_context.h
+++ b/src/gallium/state_trackers/hgl/hgl_context.h
@@ -74,7 +74,7 @@ struct hgl_context
Bitmap* bitmap;
color_space colorSpace;
- pipe_mutex fbMutex;
+ mtx_t fbMutex;
struct hgl_buffer* draw;
struct hgl_buffer* read;
diff --git a/src/gallium/state_trackers/nine/nine_queue.c b/src/gallium/state_trackers/nine/nine_queue.c
index b50b57bc90f..4724b6be584 100644
--- a/src/gallium/state_trackers/nine/nine_queue.c
+++ b/src/gallium/state_trackers/nine/nine_queue.c
@@ -74,8 +74,8 @@ struct nine_queue_pool {
BOOL worker_wait;
pipe_condvar event_pop;
pipe_condvar event_push;
- pipe_mutex mutex_pop;
- pipe_mutex mutex_push;
+ mtx_t mutex_pop;
+ mtx_t mutex_push;
};
/* Consumer functions: */
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 90c49cf8f88..231e42272ec 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -64,13 +64,13 @@ struct csmt_context {
struct nine_queue_pool* pool;
BOOL terminate;
pipe_condvar event_processed;
- pipe_mutex mutex_processed;
+ mtx_t mutex_processed;
struct NineDevice9 *device;
BOOL processed;
BOOL toPause;
BOOL hasPaused;
- pipe_mutex thread_running;
- pipe_mutex thread_resume;
+ mtx_t thread_running;
+ mtx_t thread_resume;
};
/* Wait for instruction to be processed.
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index a74446174ca..a7cedaeead6 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -209,7 +209,7 @@ typedef struct {
struct vl_compositor compositor;
struct vl_compositor_state cstate;
vl_csc_matrix csc;
- pipe_mutex mutex;
+ mtx_t mutex;
} vlVaDriver;
typedef struct {
diff --git a/src/gallium/state_trackers/vdpau/vdpau_private.h b/src/gallium/state_trackers/vdpau/vdpau_private.h
index cc20e5d7ca6..b36c0c4aec2 100644
--- a/src/gallium/state_trackers/vdpau/vdpau_private.h
+++ b/src/gallium/state_trackers/vdpau/vdpau_private.h
@@ -354,7 +354,7 @@ typedef struct
struct pipe_context *context;
struct vl_compositor compositor;
struct pipe_sampler_view *dummy_sv;
- pipe_mutex mutex;
+ mtx_t mutex;
} vlVdpDevice;
typedef struct
@@ -439,7 +439,7 @@ typedef struct
typedef struct
{
vlVdpDevice *device;
- pipe_mutex mutex;
+ mtx_t mutex;
struct pipe_video_codec *decoder;
} vlVdpDecoder;