Protected memory image access tests not flushing staging buffer
authorStephen Gallimore <stephen.gallimore@broadcom.com>
Thu, 5 Jul 2018 13:40:13 +0000 (14:40 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 13 Jul 2018 09:04:53 +0000 (05:04 -0400)
Affected tests:
dEQP-VK.protected_memory.image.access.*

Components: Vulkan

VK-GL-CTS issue: 1264

Change-Id: I30a6e3b0118b6874b9bfdf625aadec9c0fe54710

external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemShaderImageAccessTests.cpp

index ed1790a..3f041a0 100644 (file)
@@ -528,6 +528,8 @@ void ImageAccessTestInstance::uploadImage (vk::VkImage image, const tcu::Texture
                const tcu::PixelBufferAccess            destAccess      (access.getFormat(), access.getSize(), stagingBuffer->getAllocation().getHostPtr());
 
                tcu::copy(destAccess, access);
+
+               vk::flushMappedMemoryRange(vk, device, stagingBuffer->getAllocation().getMemory(), stagingBuffer->getAllocation().getOffset(), stagingBufferSize);
        }
 
        const vk::VkImageSubresourceRange       subresourceRange        =