From eb6baa31746b55d48892b0c57f0e0076b91efdeb Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sun, 15 May 2016 22:21:24 -0700 Subject: anv/wsi: Make WSI per-physical-device rather than per-instance This better maps to the Vulkan object model and also allows WSI to at least know the hardware generation which is useful for format checks. --- src/intel/vulkan/anv_wsi.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/intel/vulkan/anv_wsi.h') diff --git a/src/intel/vulkan/anv_wsi.h b/src/intel/vulkan/anv_wsi.h index bf17f033173..67cb690fdc5 100644 --- a/src/intel/vulkan/anv_wsi.h +++ b/src/intel/vulkan/anv_wsi.h @@ -72,7 +72,7 @@ struct anv_swapchain { ANV_DEFINE_NONDISP_HANDLE_CASTS(_VkIcdSurfaceBase, VkSurfaceKHR) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_swapchain, VkSwapchainKHR) -VkResult anv_x11_init_wsi(struct anv_instance *instance); -void anv_x11_finish_wsi(struct anv_instance *instance); -VkResult anv_wl_init_wsi(struct anv_instance *instance); -void anv_wl_finish_wsi(struct anv_instance *instance); +VkResult anv_x11_init_wsi(struct anv_physical_device *physical_device); +void anv_x11_finish_wsi(struct anv_physical_device *physical_device); +VkResult anv_wl_init_wsi(struct anv_physical_device *physical_device); +void anv_wl_finish_wsi(struct anv_physical_device *physical_device); -- cgit v1.2.3