Lines Matching defs:wsi

372    struct wsi_x11 *wsi =
373 (struct wsi_x11 *)wsi_dev->wsi[VK_ICD_WSI_PLATFORM_XCB];
375 pthread_mutex_lock(&wsi->mutex);
377 struct hash_entry *entry = _mesa_hash_table_search(wsi->connections, conn);
382 pthread_mutex_unlock(&wsi->mutex);
389 pthread_mutex_lock(&wsi->mutex);
391 entry = _mesa_hash_table_search(wsi->connections, conn);
396 entry = _mesa_hash_table_insert(wsi->connections, conn, wsi_conn);
400 pthread_mutex_unlock(&wsi->mutex);
1226 wsi_x11_get_connection((struct wsi_device*)chain->base.wsi, chain->conn);
1347 if (chain->base.wsi->sw && !chain->has_mit_shm)
1370 if (chain->base.wsi->sw && !chain->has_mit_shm) {
1511 wsi_x11_get_connection((struct wsi_device*)chain->base.wsi, chain->conn);
1539 if (x11_needs_wait_for_fences(chain->base.wsi, wsi_conn,
1541 result = chain->base.wsi->WaitForFences(chain->base.device, 1,
1562 unsigned min_image_count = x11_get_min_image_count(chain->base.wsi);
1657 if (chain->base.wsi->sw) {
1781 if (!chain->base.wsi->sw || chain->has_mit_shm) {
2146 !chain->base.wsi->sw) {
2225 struct wsi_x11 *wsi;
2228 wsi = vk_alloc(alloc, sizeof(*wsi), 8,
2230 if (!wsi) {
2235 int ret = pthread_mutex_init(&wsi->mutex, NULL);
2247 wsi->connections = _mesa_hash_table_create(NULL, _mesa_hash_pointer,
2249 if (!wsi->connections) {
2274 wsi->base.get_support = x11_surface_get_support;
2275 wsi->base.get_capabilities2 = x11_surface_get_capabilities2;
2276 wsi->base.get_formats = x11_surface_get_formats;
2277 wsi->base.get_formats2 = x11_surface_get_formats2;
2278 wsi->base.get_present_modes = x11_surface_get_present_modes;
2279 wsi->base.get_present_rectangles = x11_surface_get_present_rectangles;
2280 wsi->base.create_swapchain = x11_surface_create_swapchain;
2282 wsi_device->wsi[VK_ICD_WSI_PLATFORM_XCB] = &wsi->base;
2283 wsi_device->wsi[VK_ICD_WSI_PLATFORM_XLIB] = &wsi->base;
2288 pthread_mutex_destroy(&wsi->mutex);
2290 vk_free(alloc, wsi);
2292 wsi_device->wsi[VK_ICD_WSI_PLATFORM_XCB] = NULL;
2293 wsi_device->wsi[VK_ICD_WSI_PLATFORM_XLIB] = NULL;
2302 struct wsi_x11 *wsi =
2303 (struct wsi_x11 *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_XCB];
2305 if (wsi) {
2306 hash_table_foreach(wsi->connections, entry)
2309 _mesa_hash_table_destroy(wsi->connections, NULL);
2311 pthread_mutex_destroy(&wsi->mutex);
2313 vk_free(alloc, wsi);