Merge vk-gl-cts/vulkan-cts-1.2.2 into vk-gl-cts/vulkan-cts-1.2.3
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / protected_memory / vktProtectedMemStorageBufferTests.cpp
index 0804ae3..6f8113f 100644 (file)
@@ -378,7 +378,7 @@ tcu::TestStatus StorageBufferTestInstance<T>::executeFragmentTest(void)
        // Set the test input uniform data
        {
                deMemcpy(testUniform->getAllocation().getHostPtr(), &m_testInput, testUniformSize);
-               vk::flushMappedMemoryRange(vk, device, testUniform->getAllocation().getMemory(), testUniform->getAllocation().getOffset(), testUniformSize);
+               vk::flushAlloc(vk, device, testUniform->getAllocation());
        }
        const deUint32                                                  testBufferSize          = sizeof(ValidationDataStorage<T>);
        de::MovePtr<vk::BufferWithMemory>               testBuffer                      (makeBuffer(ctx,
@@ -565,7 +565,7 @@ tcu::TestStatus StorageBufferTestInstance<T>::executeComputeTest(void)
        // Set the test input uniform data
        {
                deMemcpy(testUniform->getAllocation().getHostPtr(), &m_testInput, testUniformSize);
-               vk::flushMappedMemoryRange(vk, device, testUniform->getAllocation().getMemory(), testUniform->getAllocation().getOffset(), testUniformSize);
+               vk::flushAlloc(vk, device, testUniform->getAllocation());
        }
 
        const deUint32                                                  testBufferSize          = sizeof(ValidationDataStorage<T>);