From 459fa078e01586f1b9296fb75950fd4c0a9d2b9b Mon Sep 17 00:00:00 2001 From: John Zulauf Date: Fri, 16 Oct 2020 18:34:06 -0600 Subject: [PATCH] Add subpass sync support for layout transitions Add additional source and dest mask bits for "from external" and "to external" subpass dependencies (respectively) when intial and final layouts cause implicit layout transitions. This is a big hammer -- any transition in a given direction will create a full barrier. Attachment specific stage and access flags could be used instead with additional logic to deduce the prior and intended subsequent usages. --- drivers/vulkan/rendering_device_vulkan.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 72a0c128c2c..b051fe825c0 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -3218,6 +3218,18 @@ VkRenderPass RenderingDeviceVulkan::_render_pass_create(const Vector 1, VK_NULL_HANDLE,