return amdgpu_get_marketing_name(dev);
}
-static simple_mtx_t winsys_creation_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t winsys_creation_mutex = SIMPLE_MTX_INITIALIZER;
static struct hash_table *winsyses = NULL;
static void
#endif
-static simple_mtx_t _eglGlobalMutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t _eglGlobalMutex = SIMPLE_MTX_INITIALIZER;
struct _egl_global _eglGlobal =
{
#include "etnaviv_priv.h"
#include "etnaviv_drmif.h"
-simple_mtx_t etna_device_lock = _SIMPLE_MTX_INITIALIZER_NP;
+simple_mtx_t etna_device_lock = SIMPLE_MTX_INITIALIZER;
/* set buffer name, and add to table, call w/ etna_drm_table_lock held: */
static void set_name(struct etna_bo *bo, uint32_t name)
#include "freedreno_drmif.h"
#include "freedreno_priv.h"
-simple_mtx_t table_lock = _SIMPLE_MTX_INITIALIZER_NP;
+simple_mtx_t table_lock = SIMPLE_MTX_INITIALIZER;
void bo_del(struct fd_bo *bo);
/* set buffer name, and add to table, call w/ table_lock held: */
bool bo_reuse:1;
};
-static simple_mtx_t global_bufmgr_list_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t global_bufmgr_list_mutex = SIMPLE_MTX_INITIALIZER;
static struct list_head global_bufmgr_list = {
.next = &global_bufmgr_list,
.prev = &global_bufmgr_list,
struct iris_border_color_pool border_color_pool;
};
-static simple_mtx_t global_bufmgr_list_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t global_bufmgr_list_mutex = SIMPLE_MTX_INITIALIZER;
static struct list_head global_bufmgr_list = {
.next = &global_bufmgr_list,
.prev = &global_bufmgr_list,
#include "sid.h"
static struct hash_table *dev_tab = NULL;
-static simple_mtx_t dev_tab_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t dev_tab_mutex = SIMPLE_MTX_INITIALIZER;
#if DEBUG
DEBUG_GET_ONCE_BOOL_OPTION(all_bos, "RADEON_ALL_BOS", false)
};
static struct hash_table_u64 *vk_object_to_data = NULL;
-static simple_mtx_t vk_object_to_data_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t vk_object_to_data_mutex = SIMPLE_MTX_INITIALIZER;
static inline void ensure_vk_object_map(void)
{
* glBindBuffer() so that glIsBuffer() can work correctly.
*/
static struct gl_buffer_object DummyBufferObject = {
- .MinMaxCacheMutex = _SIMPLE_MTX_INITIALIZER_NP,
+ .MinMaxCacheMutex = SIMPLE_MTX_INITIALIZER,
.RefCount = 1000*1000*1000, /* never delete */
};
* with the real frame/renderbuffer.
*/
static struct gl_framebuffer DummyFramebuffer = {
- .Mutex = _SIMPLE_MTX_INITIALIZER_NP,
+ .Mutex = SIMPLE_MTX_INITIALIZER,
.Delete = delete_dummy_framebuffer,
};
static struct gl_renderbuffer DummyRenderbuffer = {
/* We bind this framebuffer when applications pass a NULL
* drawable/surface in make current. */
static struct gl_framebuffer IncompleteFramebuffer = {
- .Mutex = _SIMPLE_MTX_INITIALIZER_NP,
+ .Mutex = SIMPLE_MTX_INITIALIZER,
.Delete = delete_dummy_framebuffer,
};
#include "state_tracker/st_context.h"
-static simple_mtx_t override_lock = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t override_lock = SIMPLE_MTX_INITIALIZER;
/**
* Scans 'string' to see if it ends with 'ending'.
static struct util_dynarray ro_mappings;
-static simple_mtx_t pandecode_lock = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t pandecode_lock = SIMPLE_MTX_INITIALIZER;
#define to_mapped_memory(x) \
rb_node_data(struct pandecode_mapped_memory, x, node)
*/
static struct list_head ctx_list = { &ctx_list, &ctx_list };
-static simple_mtx_t ctx_list_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t ctx_list_mutex = SIMPLE_MTX_INITIALIZER;
#endif
struct u_trace_payload_buf {
uint32_t val;
} simple_mtx_t;
-#define _SIMPLE_MTX_INITIALIZER_NP { 0 }
+#define SIMPLE_MTX_INITIALIZER { 0 }
#define _SIMPLE_MTX_INVALID_VALUE 0xd0d0d0d0
mtx_t mtx;
} simple_mtx_t;
-#define _SIMPLE_MTX_INITIALIZER_NP { UTIL_ONCE_FLAG_INIT }
+#define SIMPLE_MTX_INITIALIZER { UTIL_ONCE_FLAG_INIT }
void _simple_mtx_plain_init_once(simple_mtx_t *mtx);
#include "vn_renderer.h"
struct vn_cs_renderer_protocol_info _vn_cs_renderer_protocol_info = {
- .mutex = _SIMPLE_MTX_INITIALIZER_NP,
+ .mutex = SIMPLE_MTX_INITIALIZER,
};
static void
#define OVERLAY_QUERY_COUNT (11)
static struct hash_table_u64 *vk_object_to_data = NULL;
-static simple_mtx_t vk_object_to_data_mutex = _SIMPLE_MTX_INITIALIZER_NP;
+static simple_mtx_t vk_object_to_data_mutex = SIMPLE_MTX_INITIALIZER;
thread_local ImGuiContext* __MesaImGui;