Commit 9aa865a6 by Jamie Madill Committed by Commit Bot

Vulkan: Add missing command pool reset.

We were still calling destroy in checkCompletedCommands. We can instead call reset. May not significantly impact performance. Bug: angleproject:3489 Change-Id: I61a2cb154faac56dc78a49678dd822d81ce16ad2 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1647029Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarTobin Ehlis <tobine@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent c75d6dc8
...@@ -2120,7 +2120,8 @@ angle::Result ContextVk::checkCompletedCommands() ...@@ -2120,7 +2120,8 @@ angle::Result ContextVk::checkCompletedCommands()
batch.fence.reset(device); batch.fence.reset(device);
TRACE_EVENT0("gpu.angle", "commandPool.destroy"); TRACE_EVENT0("gpu.angle", "commandPool.destroy");
batch.commandPool.destroy(device); batch.commandPool.reset(device, 0);
mCommandPoolFreeList.emplace_back(std::move(batch.commandPool));
++finishedCount; ++finishedCount;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment