Skip to content

Commit

Permalink
Fixes transform feedback query tests
Browse files Browse the repository at this point in the history
Tests were not reseting the query pool prior
to using the queries, as is required by the spec.

Components: Vulkan
VK-GL-CTS Issue: 2866

Affects:
dEQP-VK.transform_feedback.simple.multiquery*

Change-Id: If62c75476f1c9a97ee4d819712bb9904dc6d83c7
  • Loading branch information
mnetsch authored and alegal-arm committed Apr 1, 2021
1 parent 38fd33e commit 2cab49d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2018,6 +2018,8 @@ tcu::TestStatus TransformFeedbackMultiQueryTestInstance::iterate (void)
const Move<VkBuffer> queryPoolResultsBuffer = createBuffer(vk, device, &queryBufferCreateInfo);
const MovePtr<Allocation> queryPoolResultsBufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *queryPoolResultsBuffer), MemoryRequirement::HostVisible);

vk.resetQueryPool(device, *queryPool, queryIndex, queryCountersNumber);

DE_ASSERT(queryCountersNumber == queryExpectedData.size());

VK_CHECK(vk.bindBufferMemory(device, *queryPoolResultsBuffer, queryPoolResultsBufferAlloc->getMemory(), queryPoolResultsBufferAlloc->getOffset()));
Expand Down

0 comments on commit 2cab49d

Please sign in to comment.