From d79fa8a03a2a2ff4c38a7d1e90b529330e4e2529 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Wed, 30 Nov 2022 12:21:22 +0100 Subject: [PATCH] wsi/common: Add comment about DEFERRED_ALLOCATION_BIT_EXT. Signed-off-by: Hans-Kristian Arntzen Reviewed-by: Joshua Ashton Part-of: --- src/vulkan/wsi/wsi_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c index 7dd1927..a355967 100644 --- a/src/vulkan/wsi/wsi_common.c +++ b/src/vulkan/wsi/wsi_common.c @@ -914,6 +914,10 @@ wsi_CreateSwapchainKHR(VkDevice _device, else alloc = &device->alloc; + /* Ignore DEFERRED_MEMORY_ALLOCATION_BIT. Would require deep plumbing to be able to take advantage of it. + * bool deferred_allocation = pCreateInfo->flags & VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT; + */ + VkResult result = iface->create_swapchain(surface, _device, wsi_device, pCreateInfo, alloc, &swapchain); -- 2.7.4