Commit e0956a16 by Geoff Lang Committed by Commit Bot

Vulkan: Rename getSubmitFence to getNextSubmitFence.

Now that getLastSubmittedFence exists, the new name is more specific. BUG=angleproject:2464 Change-Id: I0bce1387b95b7b7b739e311d37e35e7d162d8f2d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1595435 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
parent 262e2824
......@@ -595,7 +595,7 @@ angle::Result ContextVk::submitFrame(const VkSubmitInfo &submitInfo,
VkDevice device = getDevice();
vk::Scoped<CommandBatch> scopedBatch(device);
CommandBatch &batch = scopedBatch.get();
ANGLE_TRY(getSubmitFence(&batch.fence));
ANGLE_TRY(getNextSubmitFence(&batch.fence));
ANGLE_TRY(getRenderer()->queueSubmit(this, submitInfo, batch.fence.get()));
......@@ -2174,7 +2174,7 @@ angle::Result ContextVk::getRenderPassWithOps(const vk::RenderPassDesc &desc,
renderPassOut);
}
angle::Result ContextVk::getSubmitFence(vk::Shared<vk::Fence> *sharedFenceOut)
angle::Result ContextVk::getNextSubmitFence(vk::Shared<vk::Fence> *sharedFenceOut)
{
VkDevice device = getDevice();
if (!mSubmitFence.isReferenced())
......
......@@ -259,7 +259,7 @@ class ContextVk : public ContextImpl, public vk::Context, public vk::CommandBuff
vk::RenderPass **renderPassOut);
// Get (or allocate) the fence that will be signaled on next submission.
angle::Result getSubmitFence(vk::Shared<vk::Fence> *sharedFenceOut);
angle::Result getNextSubmitFence(vk::Shared<vk::Fence> *sharedFenceOut);
vk::Shared<vk::Fence> getLastSubmittedFence() const;
// This should only be called from ResourceVk.
......
......@@ -53,7 +53,7 @@ angle::Result FenceSyncVk::initialize(ContextVk *contextVk)
vk::Scoped<vk::Event> event(device);
ANGLE_VK_TRY(contextVk, event.get().init(device, eventCreateInfo));
ANGLE_TRY(contextVk->getSubmitFence(&mFence));
ANGLE_TRY(contextVk->getNextSubmitFence(&mFence));
mEvent = event.release();
......
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