wsi: add minImageCount override
[mesa.git] / src / vulkan / wsi / wsi_common.h
index 46e51286e09d880ed47e7280fe9d8ddf549c3875..b00fc3c18574fa404850cc0c7d1b4ed27285e835 100644 (file)
@@ -109,6 +109,12 @@ 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;
+   } x11;
+
    uint64_t (*image_get_modifier)(VkImage image);
 
 #define WSI_CB(cb) PFN_vk##cb cb