anv/wsi: remove device from get_support interface

replace with wsi_device and allocator.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Dave Airlie
2016-10-13 05:26:03 +01:00
parent b8e7460563
commit 467d161e6a
4 changed files with 10 additions and 5 deletions

View File

@@ -81,7 +81,9 @@ VkResult anv_GetPhysicalDeviceSurfaceSupportKHR(
ANV_FROM_HANDLE(_VkIcdSurfaceBase, surface, _surface);
struct anv_wsi_interface *iface = device->wsi_device.wsi[surface->platform];
return iface->get_support(surface, device, queueFamilyIndex, pSupported);
return iface->get_support(surface, &device->wsi_device,
&device->instance->alloc,
queueFamilyIndex, pSupported);
}
VkResult anv_GetPhysicalDeviceSurfaceCapabilitiesKHR(