diff options
author | Samuel Pitoiset <[email protected]> | 2019-04-09 15:30:05 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-04-10 09:10:01 +0200 |
commit | a182adfd83ad00e326153b00a725a014e0359bf0 (patch) | |
tree | 110690bf98b8c52ef593b98ac540db1bb443c58d /src/vulkan/wsi/wsi_common_private.h | |
parent | 09b4049be35898b756e6c2a8911ad094c69ac709 (diff) |
wsi: allow to override the present mode with MESA_VK_WSI_PRESENT_MODE
This is common to all Vulkan drivers and all WSI.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common_private.h')
-rw-r--r-- | src/vulkan/wsi/wsi_common_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_private.h b/src/vulkan/wsi/wsi_common_private.h index a6f49fc3124..6d8f4b7a0e4 100644 --- a/src/vulkan/wsi/wsi_common_private.h +++ b/src/vulkan/wsi/wsi_common_private.h @@ -79,6 +79,10 @@ wsi_swapchain_init(const struct wsi_device *wsi, const VkSwapchainCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator); +enum VkPresentModeKHR +wsi_swapchain_get_present_mode(struct wsi_device *wsi, + const VkSwapchainCreateInfoKHR *pCreateInfo); + void wsi_swapchain_finish(struct wsi_swapchain *chain); VkResult |