From: Szilard Ledan Date: Mon, 8 Feb 2016 16:08:27 +0000 (+0100) Subject: Add missing commands for reseting queryPool prior to use X-Git-Tag: upstream/0.1.0~812^2~62^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd32d2c2b0824a4d5447192a1515b1df4d9a0986;p=platform%2Fupstream%2FVK-GL-CTS.git Add missing commands for reseting queryPool prior to use --- diff --git a/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp index ce88002..abe9a0b 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp @@ -1976,6 +1976,7 @@ tcu::TestStatus recordBufferQueryPreciseWithFlagTest(Context& context) VK_CHECK(vk.beginCommandBuffer(primCmdBuf.get(), &primBufferBeginInfo)); { + vk.cmdResetQueryPool(primCmdBuf.get(), queryPool.get(), 0u, 1u); vk.cmdBeginQuery(primCmdBuf.get(), queryPool.get(), 0u, VK_QUERY_CONTROL_PRECISE_BIT); { vk.cmdExecuteCommands(primCmdBuf.get(), 1u, &secCmdBuf.get()); @@ -2068,6 +2069,7 @@ tcu::TestStatus recordBufferQueryImpreciseWithFlagTest(Context& context) VK_CHECK(vk.beginCommandBuffer(primCmdBuf.get(), &primBufferBeginInfo)); { + vk.cmdResetQueryPool(primCmdBuf.get(), queryPool.get(), 0u, 1u); vk.cmdBeginQuery(primCmdBuf.get(), queryPool.get(), 0u, VK_QUERY_CONTROL_PRECISE_BIT); { vk.cmdExecuteCommands(primCmdBuf.get(), 1u, &secCmdBuf.get()); @@ -2160,6 +2162,7 @@ tcu::TestStatus recordBufferQueryImpreciseWithoutFlagTest(Context& context) VK_CHECK(vk.beginCommandBuffer(primCmdBuf.get(), &primBufferBeginInfo)); { + vk.cmdResetQueryPool(primCmdBuf.get(), queryPool.get(), 0u, 1u); vk.cmdBeginQuery(primCmdBuf.get(), queryPool.get(), 0u, VK_QUERY_CONTROL_PRECISE_BIT); { vk.cmdExecuteCommands(primCmdBuf.get(), 1u, &secCmdBuf.get());