Fix wrong access flag for depth/stencil resolve
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 22 Sep 2020 15:28:43 +0000 (17:28 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 8 Oct 2020 07:11:12 +0000 (03:11 -0400)
According to the spec:

"End-of-subpass multisample resolves are treated as color attachment
writes for the purposes of synchronization."

Affects: dEQP-VK.renderpass2.depth_stencil_resolve.*

Component: Vulkan
VK-GL-CTS issue: 2593

Change-Id: I055049fffc0fd4bdbd162c4468cf80ff0c5ca373

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

index 6647034..dd44021 100644 (file)
@@ -858,7 +858,7 @@ void DepthStencilResolveTest::submit (void)
                        VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
                        DE_NULL,
 
-                       VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT,
+                       VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
                        VK_ACCESS_TRANSFER_READ_BIT,
 
                        VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,