util: Add a mapping from VkFormat to PIPE_FORMAT.
[mesa.git] / src / vulkan / wsi / wsi_common.h
index 46e51286e09d880ed47e7280fe9d8ddf549c3875..064b16a5e7ab14f686e7dd0d12996519ed9a7d28 100644 (file)
@@ -109,6 +109,17 @@ struct wsi_device {
     * available. Not all window systems might support this. */
    bool enable_adaptive_sync;
 
+   struct {
+      /* Override the minimum number of images on the swapchain.
+       * 0 = no override */
+      uint32_t override_minImageCount;
+
+      /* Forces strict number of image on the swapchain using application
+       * provided VkSwapchainCreateInfoKH::RminImageCount.
+       */
+      bool strict_imageCount;
+   } x11;
+
    uint64_t (*image_get_modifier)(VkImage image);
 
 #define WSI_CB(cb) PFN_vk##cb cb