summaryrefslogtreecommitdiffstats
path: root/src/gui/vulkan
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-03-01 09:59:33 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-03-12 12:36:48 +0100
commitbe14adfdc8271b3cd45accc682ec21ba3dd8401e (patch)
tree365878a441e339ae4be0603787d75631483724fa /src/gui/vulkan
parentf226854d256a382a5cc7ff08b10a0d27fbefb0fe (diff)
Fix QVulkanWindow on Wayland
The Wayland backend needs 4 buffers and is failing when making QVulkanWindow since there was a hardcoded limit at 3. The Vulkan-backend to RHI already has smarter handling of this. We want to limit the changes we do to the "legacy" QVulkanWindow, so we keep the hardcoded max value but increase it to 4 to accommodate the requirements on Wayland. Task-number: QTBUG-91418 Change-Id: I830bc30d1c2eeac1b076c50d35d5d138fd46dace Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/vulkan')
-rw-r--r--src/gui/vulkan/qvulkanwindow_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/vulkan/qvulkanwindow_p.h b/src/gui/vulkan/qvulkanwindow_p.h
index 4f0d8f606e..de69b5c9b0 100644
--- a/src/gui/vulkan/qvulkanwindow_p.h
+++ b/src/gui/vulkan/qvulkanwindow_p.h
@@ -126,7 +126,7 @@ public:
PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR vkGetPhysicalDeviceSurfaceCapabilitiesKHR = nullptr;
PFN_vkGetPhysicalDeviceSurfaceFormatsKHR vkGetPhysicalDeviceSurfaceFormatsKHR;
- static const int MAX_SWAPCHAIN_BUFFER_COUNT = 3;
+ static const int MAX_SWAPCHAIN_BUFFER_COUNT = 4;
static const int MAX_FRAME_LAG = QVulkanWindow::MAX_CONCURRENT_FRAME_COUNT;
// QVulkanWindow only supports the always available FIFO mode. The
// rendering thread will get throttled to the presentation rate (vsync).