From ec8581f9b7682b4e754ebe087ad18e49fc8062c6 Mon Sep 17 00:00:00 2001 From: Patrick Boyle Date: Mon, 18 Dec 2023 12:25:06 -0800 Subject: Add invalidate after copy to wsi tests - Adds an invaidate mapped memory range so that copies are visible by host Components: Vulkan VK-GL-CTS issue: 4856 Test: check_build_stinty.py Bug: b/316841892 Affected tests: dEQP-VK.wsi.android.colorspace_compare.* Change-Id: If0183aa55e7f4a37f39549eb28302a82c6625bb2 (cherry picked from commit c4322183192bb295770e9d97005eab8e2f8925c4) --- external/vulkancts/modules/vulkan/wsi/vktWsiColorSpaceTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/vulkancts/modules/vulkan/wsi/vktWsiColorSpaceTests.cpp b/external/vulkancts/modules/vulkan/wsi/vktWsiColorSpaceTests.cpp index 84145d83a..54cd45ae6 100644 --- a/external/vulkancts/modules/vulkan/wsi/vktWsiColorSpaceTests.cpp +++ b/external/vulkancts/modules/vulkan/wsi/vktWsiColorSpaceTests.cpp @@ -407,6 +407,8 @@ tcu::Vec4 getPixel (const DeviceInterface& vkd, endCommandBuffer(vkd, *commandBuffer); submitCommandsAndWait(vkd, device, queue, commandBuffer.get()); + invalidateMappedMemoryRange(vkd, device, resultBufferMemory->getMemory(), 0, VK_WHOLE_SIZE); + tcu::ConstPixelBufferAccess resultAccess(textureFormat, tcu::IVec3(size.x(), size.y(), 1), resultBufferMemory->getHostPtr()); -- cgit v1.2.3