replace with wsi_device and allocator.
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_support(surface, device, queueFamilyIndex, pSupported);
+ return iface->get_support(surface, &device->wsi_device,
+ &device->instance->alloc,
+ queueFamilyIndex, pSupported);
}
VkResult anv_GetPhysicalDeviceSurfaceCapabilitiesKHR(
struct anv_wsi_interface {
VkResult (*get_support)(VkIcdSurfaceBase *surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
+ const VkAllocationCallbacks *alloc,
uint32_t queueFamilyIndex,
VkBool32* pSupported);
VkResult (*get_capabilities)(VkIcdSurfaceBase *surface,
static VkResult
wsi_wl_surface_get_support(VkIcdSurfaceBase *surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
+ const VkAllocationCallbacks *alloc,
uint32_t queueFamilyIndex,
VkBool32* pSupported)
{
static VkResult
x11_surface_get_support(VkIcdSurfaceBase *icd_surface,
- struct anv_physical_device *device,
+ struct anv_wsi_device *wsi_device,
+ const VkAllocationCallbacks *alloc,
uint32_t queueFamilyIndex,
VkBool32* pSupported)
{
xcb_window_t window = x11_surface_get_window(icd_surface);
struct wsi_x11_connection *wsi_conn =
- wsi_x11_get_connection(&device->wsi_device, &device->instance->alloc, conn);
+ wsi_x11_get_connection(wsi_device, alloc, conn);
if (!wsi_conn)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);