From: Hans-Kristian Arntzen Date: Wed, 30 Nov 2022 11:21:22 +0000 (+0100) Subject: wsi/common: Add comment about DEFERRED_ALLOCATION_BIT_EXT. X-Git-Tag: upstream/23.3.3~12260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d79fa8a03a2a2ff4c38a7d1e90b529330e4e2529;p=platform%2Fupstream%2Fmesa.git wsi/common: Add comment about DEFERRED_ALLOCATION_BIT_EXT. Signed-off-by: Hans-Kristian Arntzen Reviewed-by: Joshua Ashton Part-of: --- 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);