Just use the wsi_device instead.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
ANV_FROM_HANDLE(_VkIcdSurfaceBase, surface, _surface);
struct anv_wsi_interface *iface = device->wsi_device.wsi[surface->platform];
- return iface->get_formats(surface, device, pSurfaceFormatCount,
+ return iface->get_formats(surface, &device->wsi_device, pSurfaceFormatCount,
pSurfaceFormats);
}
VkResult (*get_capabilities)(VkIcdSurfaceBase *surface,
VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
VkResult (*get_formats)(VkIcdSurfaceBase *surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
uint32_t* pSurfaceFormatCount,
VkSurfaceFormatKHR* pSurfaceFormats);
VkResult (*get_present_modes)(VkIcdSurfaceBase *surface,
static VkResult
wsi_wl_surface_get_formats(VkIcdSurfaceBase *icd_surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
uint32_t* pSurfaceFormatCount,
VkSurfaceFormatKHR* pSurfaceFormats)
{
VkIcdSurfaceWayland *surface = (VkIcdSurfaceWayland *)icd_surface;
struct wsi_wl_display *display =
- wsi_wl_get_display(&device->wsi_device, surface->display);
+ wsi_wl_get_display(wsi_device, surface->display);
uint32_t count = u_vector_length(&display->formats);
static VkResult
x11_surface_get_formats(VkIcdSurfaceBase *surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
uint32_t *pSurfaceFormatCount,
VkSurfaceFormatKHR *pSurfaceFormats)
{