Lines Matching refs:wsi

70    struct wsi_device *wsi;  member
88 display->wsi_wl->wsi->GetPhysicalDeviceFormatProperties(display->wsi_wl->physical_device, in wsi_wl_display_add_vk_format()
344 wsi_wl_display_create(struct wsi_wayland *wsi, struct wl_display *wl_display, in wsi_wl_display_create() argument
348 vk_alloc(wsi->alloc, sizeof(*display), 8, in wsi_wl_display_create()
353 VkResult result = wsi_wl_display_init(wsi, display, wl_display, true); in wsi_wl_display_create()
355 vk_free(wsi->alloc, display); in wsi_wl_display_create()
378 struct wsi_wayland *wsi = display->wsi_wl; in wsi_wl_display_unref() local
380 vk_free(wsi->alloc, display); in wsi_wl_display_unref()
387 struct wsi_wayland *wsi = in wsi_wl_get_presentation_support() local
388 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND]; in wsi_wl_get_presentation_support()
391 int ret = wsi_wl_display_init(wsi, &display, wl_display, false); in wsi_wl_get_presentation_support()
467 struct wsi_wayland *wsi = in wsi_wl_surface_get_formats() local
468 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND]; in wsi_wl_surface_get_formats()
471 if (wsi_wl_display_init(wsi, &display, surface->display, true)) in wsi_wl_surface_get_formats()
497 struct wsi_wayland *wsi = in wsi_wl_surface_get_formats2() local
498 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND]; in wsi_wl_surface_get_formats2()
501 if (wsi_wl_display_init(wsi, &display, surface->display, true)) in wsi_wl_surface_get_formats2()
778 struct wsi_wayland *wsi = in wsi_wl_surface_create_swapchain() local
779 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND]; in wsi_wl_surface_create_swapchain()
830 result = wsi_wl_display_create(wsi, surface->display, &chain->display); in wsi_wl_surface_create_swapchain()
877 struct wsi_wayland *wsi; in wsi_wl_init_wsi() local
880 wsi = vk_alloc(alloc, sizeof(*wsi), 8, in wsi_wl_init_wsi()
882 if (!wsi) { in wsi_wl_init_wsi()
887 wsi->physical_device = physical_device; in wsi_wl_init_wsi()
888 wsi->alloc = alloc; in wsi_wl_init_wsi()
889 wsi->wsi = wsi_device; in wsi_wl_init_wsi()
891 wsi->base.get_support = wsi_wl_surface_get_support; in wsi_wl_init_wsi()
892 wsi->base.get_capabilities = wsi_wl_surface_get_capabilities; in wsi_wl_init_wsi()
893 wsi->base.get_capabilities2 = wsi_wl_surface_get_capabilities2; in wsi_wl_init_wsi()
894 wsi->base.get_formats = wsi_wl_surface_get_formats; in wsi_wl_init_wsi()
895 wsi->base.get_formats2 = wsi_wl_surface_get_formats2; in wsi_wl_init_wsi()
896 wsi->base.get_present_modes = wsi_wl_surface_get_present_modes; in wsi_wl_init_wsi()
897 wsi->base.create_swapchain = wsi_wl_surface_create_swapchain; in wsi_wl_init_wsi()
899 wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND] = &wsi->base; in wsi_wl_init_wsi()
904 wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND] = NULL; in wsi_wl_init_wsi()
913 struct wsi_wayland *wsi = in wsi_wl_finish_wsi() local
914 (struct wsi_wayland *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_WAYLAND]; in wsi_wl_finish_wsi()
915 if (!wsi) in wsi_wl_finish_wsi()
918 vk_free(alloc, wsi); in wsi_wl_finish_wsi()