Add missing flush for opaque_type_indexing tests
authorGary Sweet <gsweet@broadcom.com>
Fri, 9 Jun 2017 07:43:45 +0000 (08:43 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sun, 18 Jun 2017 11:38:53 +0000 (07:38 -0400)
Buffers were being mapped and written, but not flushed
before use.

Affects:

dEQP-VK.glsl.opaque_type_indexing.sampler.*

Components: Vulkan

VK-GL-CTS issue: 487

Change-Id: I9d6b694cebdff1785cbff303f4873628ca902d51

external/vulkancts/modules/vulkan/shaderexecutor/vktOpaqueTypeIndexingTests.cpp

index ae6d8ef..0fdd972 100644 (file)
@@ -571,6 +571,8 @@ TestImage::TestImage (Context& context, TextureType texType, tcu::TextureFormat
        for (size_t ndx = 0; ndx < numReplicas; ++ndx)
                deMemcpy((deUint8*)alloc->getHostPtr() + ndx*pixelSize, colorValue, pixelSize);
 
+       flushMappedMemoryRange(vkd, device, alloc->getMemory(), alloc->getOffset(), VK_WHOLE_SIZE);
+
        {
                const VkCommandPoolCreateInfo           cmdPoolInfo             =
                {