Commit 81430e11 by Jamie Madill Committed by Commit Bot

Vulkan: Remove command processor special functions.

These functions are no longer needed. Bug: b/170328907 Bug: b/170329600 Bug: b/172704839 Change-Id: Icf18717905fa79dc0ccf7063d8482d4ca07d8b80 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2635073Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 043fcf18
......@@ -3135,12 +3135,6 @@ angle::Result ContextVk::onMakeCurrent(const gl::Context *context)
angle::Result ContextVk::onUnMakeCurrent(const gl::Context *context)
{
ANGLE_TRY(flushImpl(nullptr));
// TODO(courtneygo): Clean this up. b/170328907 b/170329600
if (mRenderer->getFeatures().asyncCommandQueue.enabled)
{
ANGLE_TRACE_EVENT0("gpu.angle", "ContextVk::onUnMakeCurrent");
ANGLE_TRY(mRenderer->finishAllWork(this));
}
mCurrentWindowSurface = nullptr;
return angle::Result::Continue;
}
......
......@@ -303,20 +303,6 @@ class RendererVk : angle::NonCopyable
SamplerYcbcrConversionCache &getYuvConversionCache() { return mYuvConversionCache; }
vk::ActiveHandleCounter &getActiveHandleCounts() { return mActiveHandleCounts; }
// TODO(jmadill): Remove. b/172704839
angle::Result waitForCommandProcessorIdle(vk::Context *context)
{
ASSERT(getFeatures().asyncCommandQueue.enabled);
return mCommandProcessor.waitForWorkComplete(context);
}
// TODO(jmadill): Remove. b/172704839
angle::Result finishAllWork(vk::Context *context)
{
ASSERT(getFeatures().asyncCommandQueue.enabled);
return mCommandProcessor.finishAllWork(context);
}
bool getEnableValidationLayers() const { return mEnableValidationLayers; }
vk::ResourceSerialFactory &getResourceSerialFactory() { return mResourceSerialFactory; }
......
......@@ -1480,6 +1480,7 @@ angle::Result WindowSurfaceVk::doDeferredAcquireNextImage(const gl::Context *con
ContextVk *contextVk = vk::GetImpl(context);
DisplayVk *displayVk = vk::GetImpl(context->getDisplay());
// TODO(jmadill): Expose in CommandQueueInterface, or manage in CommandQueue. b/172704839
if (contextVk->getFeatures().asyncCommandQueue.enabled)
{
VkResult result = contextVk->getRenderer()->getLastPresentResult(mSwapchain);
......
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