From e0d15fbe1d670313132a0b71970badbcac259d78 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 14 Oct 2016 05:14:45 +0100 Subject: anv/wsi/wayland: add callback to get device format properties. This avoids having to know the toplevel API name. Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_wsi.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (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 05d03c86d4d..b227c51100b 100644 --- a/src/intel/vulkan/anv_wsi.h +++ b/src/intel/vulkan/anv_wsi.h @@ -89,6 +89,12 @@ struct anv_swapchain { ANV_DEFINE_NONDISP_HANDLE_CASTS(_VkIcdSurfaceBase, VkSurfaceKHR) ANV_DEFINE_NONDISP_HANDLE_CASTS(anv_swapchain, VkSwapchainKHR) +struct anv_wsi_callbacks { + void (*get_phys_device_format_properties)(VkPhysicalDevice physicalDevice, + VkFormat format, + VkFormatProperties *pFormatProperties); +}; + VkResult anv_x11_init_wsi(struct anv_wsi_device *wsi_device, const VkAllocationCallbacks *alloc); void anv_x11_finish_wsi(struct anv_wsi_device *wsi_device, @@ -96,7 +102,8 @@ void anv_x11_finish_wsi(struct anv_wsi_device *wsi_device, VkResult anv_wl_init_wsi(struct anv_wsi_device *wsi_device, const VkAllocationCallbacks *alloc, - VkPhysicalDevice physical_device); + VkPhysicalDevice physical_device, + const struct anv_wsi_callbacks *cbs); void anv_wl_finish_wsi(struct anv_wsi_device *wsi_device, const VkAllocationCallbacks *alloc); #endif /* ANV_WSI_H */ -- cgit v1.2.3