Synchronize input attachment reads in IO chains
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 19 Apr 2022 09:26:29 +0000 (11:26 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 5 May 2022 15:50:07 +0000 (15:50 +0000)
Each subpass in the render pass IO chain tests attempts to read the
output of the previous subpass as an input attachment, but the subpass
dependencies are missing VK_ACCESS_INPUT_ATTACHMENT_READ_BIT from the
flags in dstAccessMask.

Affected tests:
dEQP-VK.renderpass*.attachment_allocation.*

Components: Vulkan
VK-GL-CTS issue: 3643

Change-Id: I63b49709ee8cb03e364050253dc2a8a48c5b58cd

external/vulkancts/modules/vulkan/renderpass/vktRenderPassTests.cpp

index 8ced1c3..7e351aa 100644 (file)
@@ -5794,7 +5794,7 @@ void addAttachmentAllocationTests (tcu::TestCaseGroup* group, const TestConfigEx
                                                                                                                        | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT,
 
                                                                                                                 VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
-                                                                                                                VK_ACCESS_COLOR_ATTACHMENT_READ_BIT,
+                                                                                                                (VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT),
 
                                                                                                                 byRegion ? (VkDependencyFlags)VK_DEPENDENCY_BY_REGION_BIT : 0u));
                                        }