Add flush to binding descriptor set random tests
authorSteve Hill <hills@broadcom.com>
Mon, 22 Oct 2018 08:48:57 +0000 (09:48 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 25 Oct 2018 10:13:38 +0000 (06:13 -0400)
Components: Vulkan

Affects: dEQP-VK.binding_model.descriptorset_random.*

VK-GL-CTS issue: 1432

Change-Id: I56df9fefbeb511e441310df9f52d0e9a897bcbef

external/vulkancts/modules/vulkan/binding_model/vktBindingDescriptorSetRandomTests.cpp

index cd764f6..97da47b 100644 (file)
@@ -1007,6 +1007,7 @@ tcu::TestStatus DescriptorSetRandomTestInstance::iterate (void)
                }
        }
 
+       flushMappedMemoryRange(vk, device, buffer->getAllocation().getMemory(), buffer->getAllocation().getOffset(), VK_WHOLE_SIZE);
 
        const VkQueue                                   queue                                   = m_context.getUniversalQueue();
        Move<VkCommandPool>                             cmdPool                                 = createCommandPool(vk, device, 0, m_context.getUniversalQueueFamilyIndex());