vulkan/wsi: Add get_capabilities2 and get_formats2d interface pointers
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 17 Mar 2017 20:50:24 +0000 (13:50 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 May 2017 15:38:39 +0000 (08:38 -0700)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/vulkan/wsi/wsi_common.h

index 5e77518c0984fa3ffde8f4fff3f32a38becb0ae3..8aee9c735136a87872ecb75807649e1c8eafc6f6 100644 (file)
@@ -87,10 +87,18 @@ struct wsi_interface {
                            VkBool32* pSupported);
    VkResult (*get_capabilities)(VkIcdSurfaceBase *surface,
                                 VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
+   VkResult (*get_capabilities2)(VkIcdSurfaceBase *surface,
+                                 const void *info_next,
+                                 VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
    VkResult (*get_formats)(VkIcdSurfaceBase *surface,
                            struct wsi_device *wsi_device,
                            uint32_t* pSurfaceFormatCount,
                            VkSurfaceFormatKHR* pSurfaceFormats);
+   VkResult (*get_formats2)(VkIcdSurfaceBase *surface,
+                            struct wsi_device *wsi_device,
+                            const void *info_next,
+                            uint32_t* pSurfaceFormatCount,
+                            VkSurfaceFormat2KHR* pSurfaceFormats);
    VkResult (*get_present_modes)(VkIcdSurfaceBase *surface,
                                  uint32_t* pPresentModeCount,
                                  VkPresentModeKHR* pPresentModes);