diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:02 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:48:16 +1100 |
commit | acdcaf9be4695ccdc4a589a3416591dd316e876c (patch) | |
tree | 7c7e1e3f0c1e7509141ed3c54571ebf847321f53 /src/gallium/winsys | |
parent | 2efddc63ee864ab917e444b68a7c2dcf520d451e (diff) |
gallium/util: remove pipe_static_mutex()
This was made unnecessary with fd33a6bcd7f12.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
6 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 4a4e06cc3df..e16e13d9c28 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -64,7 +64,7 @@ #endif static struct util_hash_table *dev_tab = NULL; -pipe_static_mutex(dev_tab_mutex); +static mtx_t dev_tab_mutex = _MTX_INITIALIZER_NP; static unsigned cik_get_num_tile_pipes(struct amdgpu_gpu_info *info) { diff --git a/src/gallium/winsys/etnaviv/drm/etnaviv_drm_winsys.c b/src/gallium/winsys/etnaviv/drm/etnaviv_drm_winsys.c index 3b34c300add..141191f3d93 100644 --- a/src/gallium/winsys/etnaviv/drm/etnaviv_drm_winsys.c +++ b/src/gallium/winsys/etnaviv/drm/etnaviv_drm_winsys.c @@ -69,7 +69,7 @@ screen_create(struct renderonly *ro) static struct util_hash_table *etna_tab = NULL; -pipe_static_mutex(etna_screen_mutex); +static mtx_t etna_screen_mutex = _MTX_INITIALIZER_NP; static void etna_drm_screen_destroy(struct pipe_screen *pscreen) diff --git a/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c b/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c index e4785f83d96..9ccbce14a22 100644 --- a/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c +++ b/src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c @@ -42,7 +42,7 @@ static struct util_hash_table *fd_tab = NULL; -pipe_static_mutex(fd_screen_mutex); +static mtx_t fd_screen_mutex = _MTX_INITIALIZER_NP; static void fd_drm_screen_destroy(struct pipe_screen *pscreen) diff --git a/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c b/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c index cc9dfa7f764..f7b1e5ec625 100644 --- a/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c +++ b/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.c @@ -19,7 +19,7 @@ static struct util_hash_table *fd_tab = NULL; -pipe_static_mutex(nouveau_screen_mutex); +static mtx_t nouveau_screen_mutex = _MTX_INITIALIZER_NP; bool nouveau_drm_screen_unref(struct nouveau_screen *screen) { diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index 6c6d920d032..2726237329a 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -47,7 +47,7 @@ #include <radeon_surface.h> static struct util_hash_table *fd_tab = NULL; -pipe_static_mutex(fd_tab_mutex); +static mtx_t fd_tab_mutex = _MTX_INITIALIZER_NP; /* Enable/disable feature access for one command stream. * If enable == true, return true on success. diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index 86e0470e682..73538730f5e 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -806,7 +806,7 @@ virgl_drm_winsys_create(int drmFD) } static struct util_hash_table *fd_tab = NULL; -pipe_static_mutex(virgl_screen_mutex); +static mtx_t virgl_screen_mutex = _MTX_INITIALIZER_NP; static void virgl_drm_screen_destroy(struct pipe_screen *pscreen) |