Set correct access flags for buffer copy synchronization.
authorBas Nieuwenhuizen <basni@google.com>
Mon, 1 Feb 2021 19:05:03 +0000 (20:05 +0100)
committerBas Nieuwenhuizen <basni@google.com>
Mon, 1 Feb 2021 19:14:16 +0000 (20:14 +0100)
Since the copy depends on the result of the blit, we should make
the results visible to the copy with VK_ACCESS_TRANSFER_WRITE_BIT.

Components: Vulkan
Affects: dEQP-VK.drm_format_modifiers.export_import.*

Change-Id: I8a9a94657203472ca8842db0cc164c71c087a48c

external/vulkancts/modules/vulkan/modifiers/vktModifiersTests.cpp

index 70671df..6bf5ce4 100644 (file)
@@ -668,7 +668,7 @@ bool exportImportMemoryExplicitModifiersCase (Context& context, const VkFormat f
 
        copyImageToBuffer(vkd, *cmdBuffer2, *outImage,
                                                                                outputBuffer->get(), tcu::IVec2(imageSize.x(), imageSize.y()),
-                                                                               0, VK_IMAGE_LAYOUT_UNDEFINED, 1);
+                                                                               VK_ACCESS_TRANSFER_WRITE_BIT, VK_IMAGE_LAYOUT_UNDEFINED, 1);
 
        VK_CHECK(vkd.endCommandBuffer(*cmdBuffer2));