From 4baba8266bb4313a8b27197bc26da4af3c0dc0dd Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Tue, 30 Apr 2019 08:31:08 +0000 Subject: [PATCH] Use VK_PRESENT_MODE_FIFO_KHR for Vulkan Swap Chain Change Vulkan Swap Chain from VK_PRESENT_MODE_IMMEDIATE_KHR to VK_PRESENT_MODE_FIFO_KHR. Some common GPUs don't support immediate mode, so we should default to a value that is required to be supported. Bug: dawn:90 Change-Id: I66dec23141e69637ccfa8a2ed0ee651114b9ddcf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6820 Commit-Queue: Corentin Wallez Reviewed-by: Kai Ninomiya Reviewed-by: Corentin Wallez --- src/dawn_native/vulkan/NativeSwapChainImplVk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn_native/vulkan/NativeSwapChainImplVk.cpp b/src/dawn_native/vulkan/NativeSwapChainImplVk.cpp index cc80ed4704..63b8ffbc44 100644 --- a/src/dawn_native/vulkan/NativeSwapChainImplVk.cpp +++ b/src/dawn_native/vulkan/NativeSwapChainImplVk.cpp @@ -35,7 +35,7 @@ namespace dawn_native { namespace vulkan { // TODO(cwallez@chromium.org): This is upside down compared to what we want, at least // on Linux config->preTransform = info.capabilities.currentTransform; - config->presentMode = VK_PRESENT_MODE_IMMEDIATE_KHR; + config->presentMode = VK_PRESENT_MODE_FIFO_KHR; config->compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR; return true; }