Fix protected memory buffer tests to do proper operation
authorChris Forbes <chrisforbes@google.com>
Tue, 12 Jun 2018 18:03:59 +0000 (11:03 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 15 Jun 2018 10:08:39 +0000 (06:08 -0400)
Update and copy variants of these tests were doing the FILL operation
instead.

Change-Id: Iede9e71f50c1d2d5699b35ad9b86fc6237714977
Components: Vulkan
Affects: dEQP-VK.protected_memory.buffer.*
VK-GL-CTS: 1215
(cherry picked from commit 39fbe90f21cb24b46e1bbc2d49e75604453977c0)

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

index 6a424a0..f6b51dc 100644 (file)
@@ -707,9 +707,9 @@ tcu::TestCaseGroup* createUpdateBufferTests (tcu::TestContext& testCtx)
 {
        de::MovePtr<tcu::TestCaseGroup> updateTests (new tcu::TestCaseGroup(testCtx, "update", "Update Buffer Tests"));
 
-       updateTests->addChild(createFillUpdateCopyBufferFloatTests(testCtx, FILL_BUFFER));
-       updateTests->addChild(createFillUpdateCopyBufferIntegerTests(testCtx, FILL_BUFFER));
-       updateTests->addChild(createFillUpdateCopyBufferUnsignedTests(testCtx, FILL_BUFFER));
+       updateTests->addChild(createFillUpdateCopyBufferFloatTests(testCtx, UPDATE_BUFFER));
+       updateTests->addChild(createFillUpdateCopyBufferIntegerTests(testCtx, UPDATE_BUFFER));
+       updateTests->addChild(createFillUpdateCopyBufferUnsignedTests(testCtx, UPDATE_BUFFER));
 
        return updateTests.release();
 }
@@ -718,9 +718,9 @@ tcu::TestCaseGroup* createCopyBufferTests (tcu::TestContext& testCtx)
 {
        de::MovePtr<tcu::TestCaseGroup> copyTests (new tcu::TestCaseGroup(testCtx, "copy", "Copy Buffer Tests"));
 
-       copyTests->addChild(createFillUpdateCopyBufferFloatTests(testCtx, FILL_BUFFER));
-       copyTests->addChild(createFillUpdateCopyBufferIntegerTests(testCtx, FILL_BUFFER));
-       copyTests->addChild(createFillUpdateCopyBufferUnsignedTests(testCtx, FILL_BUFFER));
+       copyTests->addChild(createFillUpdateCopyBufferFloatTests(testCtx, COPY_BUFFER));
+       copyTests->addChild(createFillUpdateCopyBufferIntegerTests(testCtx, COPY_BUFFER));
+       copyTests->addChild(createFillUpdateCopyBufferUnsignedTests(testCtx, COPY_BUFFER));
 
        return copyTests.release();
 }