Lines Matching defs:wsi
83 struct wsi_device *wsi;
123 display->wsi_wl->wsi->GetPhysicalDeviceFormatProperties(display->wsi_wl->physical_device,
590 if (wsi_wl->wsi->force_bgra8_unorm_first) {
622 wsi_wl_display_create(struct wsi_wayland *wsi, struct wl_display *wl_display,
627 vk_alloc(wsi->alloc, sizeof(*display), 8,
632 VkResult result = wsi_wl_display_init(wsi, display, wl_display, true,
635 vk_free(wsi->alloc, display);
658 struct wsi_wayland *wsi = display->wsi_wl;
660 vk_free(wsi->alloc, display);
670 struct wsi_wayland *wsi =
671 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND];
674 VkResult ret = wsi_wl_display_init(wsi, &display, wl_display, false,
775 struct wsi_wayland *wsi =
776 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND];
779 if (wsi_wl_display_init(wsi, &display, surface->display, true,
814 struct wsi_wayland *wsi =
815 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND];
818 if (wsi_wl_display_init(wsi, &display, surface->display, true,
1269 struct wsi_wayland *wsi =
1270 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND];
1302 chain->buffer_type = (chain->base.wsi->has_import_memory_host &&
1319 result = wsi_wl_display_create(wsi, surface->display,
1339 if (chain->display->wl_dmabuf && chain->base.wsi->supports_modifiers) {
1401 struct wsi_wayland *wsi;
1404 wsi = vk_alloc(alloc, sizeof(*wsi), 8,
1406 if (!wsi) {
1411 wsi->physical_device = physical_device;
1412 wsi->alloc = alloc;
1413 wsi->wsi = wsi_device;
1415 wsi->base.get_support = wsi_wl_surface_get_support;
1416 wsi->base.get_capabilities2 = wsi_wl_surface_get_capabilities2;
1417 wsi->base.get_formats = wsi_wl_surface_get_formats;
1418 wsi->base.get_formats2 = wsi_wl_surface_get_formats2;
1419 wsi->base.get_present_modes = wsi_wl_surface_get_present_modes;
1420 wsi->base.get_present_rectangles = wsi_wl_surface_get_present_rectangles;
1421 wsi->base.create_swapchain = wsi_wl_surface_create_swapchain;
1423 wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND] = &wsi->base;
1428 wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND] = NULL;
1437 struct wsi_wayland *wsi =
1438 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND];
1439 if (!wsi)
1442 vk_free(alloc, wsi);