Commit 9825695e by Courtney Goeltzenleuchter Committed by Commit Bot

Vulkan: Increase CommandBufferHelper pool size

For interesting threading behavior need more than two command buffer helper objects in the pool. Bug: b/170328907 Change-Id: I394a583f2241ef094abba7a4645a200b9308e466 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2518134 Commit-Queue: Courtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
parent 21eb41ac
...@@ -1104,12 +1104,10 @@ class ContextVk : public ContextImpl, public vk::Context ...@@ -1104,12 +1104,10 @@ class ContextVk : public ContextImpl, public vk::Context
// http://anglebug.com/2701 // http://anglebug.com/2701
vk::Shared<vk::Fence> mSubmitFence; vk::Shared<vk::Fence> mSubmitFence;
// When the command graph is disabled we record commands completely linearly. We have plans to
// reorder independent draws so that we can create fewer RenderPasses in some scenarios.
// We have a queue of CommandBufferHelpers (CBHs) that is drawn from for the two active command // We have a queue of CommandBufferHelpers (CBHs) that is drawn from for the two active command
// buffers in the main thread. The two active command buffers are the inside and outside // buffers in the main thread. The two active command buffers are the inside and outside
// RenderPass command buffers. // RenderPass command buffers.
constexpr static size_t kNumCommandBuffers = 2; constexpr static size_t kNumCommandBuffers = 50;
std::array<vk::CommandBufferHelper, kNumCommandBuffers> mCommandBuffers; std::array<vk::CommandBufferHelper, kNumCommandBuffers> mCommandBuffers;
// Lock access to the command buffer queue // Lock access to the command buffer queue
......
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