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_wayland.c | |
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_wayland.c')
-rw-r--r-- | src/vulkan/wsi/wsi_common_wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index 03a47028ef2..ad653848b82 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -1009,7 +1009,7 @@ wsi_wl_surface_create_swapchain(VkIcdSurfaceBase *icd_surface, chain->base.get_wsi_image = wsi_wl_swapchain_get_wsi_image; chain->base.acquire_next_image = wsi_wl_swapchain_acquire_next_image; chain->base.queue_present = wsi_wl_swapchain_queue_present; - chain->base.present_mode = pCreateInfo->presentMode; + chain->base.present_mode = wsi_swapchain_get_present_mode(wsi_device, pCreateInfo); chain->base.image_count = num_images; chain->extent = pCreateInfo->imageExtent; chain->vk_format = pCreateInfo->imageFormat; |