Commit 9c51f93d by Ian Elliott Committed by Commit Bot

Don't call {begin|end}DebugUtilsLabelEXT() when not enabled

The ContextVk::handleDirtyEventLogImpl() and ContextVk::endEventLog() methods called the {begin|end}DebugUtilsLabelEXT() methods when the VK_EXT_debug_utils extension is not enabled. This manifests when enabling/using VVL stand-alone (i.e. when the the debug-utils extension is not also present). Bug: b/183133198 Change-Id: I043b174d457a8796831184c092661f24b33c1db4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2821943 Commit-Queue: Ian Elliott <ianelliott@google.com> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
parent bf6e074f
...@@ -1226,7 +1226,7 @@ angle::Result ContextVk::handleDirtyComputeEventLog() ...@@ -1226,7 +1226,7 @@ angle::Result ContextVk::handleDirtyComputeEventLog()
angle::Result ContextVk::handleDirtyEventLogImpl(vk::CommandBuffer *commandBuffer) angle::Result ContextVk::handleDirtyEventLogImpl(vk::CommandBuffer *commandBuffer)
{ {
if (mEventLog.empty()) if (mEventLog.empty() || !mRenderer->enableDebugUtils())
{ {
return angle::Result::Continue; return angle::Result::Continue;
} }
...@@ -2781,6 +2781,11 @@ void ContextVk::logEvent(const char *eventString) ...@@ -2781,6 +2781,11 @@ void ContextVk::logEvent(const char *eventString)
void ContextVk::endEventLog(angle::EntryPoint entryPoint) void ContextVk::endEventLog(angle::EntryPoint entryPoint)
{ {
if (!mRenderer->enableDebugUtils())
{
return;
}
ASSERT(mRenderPassCommands); ASSERT(mRenderPassCommands);
mRenderPassCommands->getCommandBuffer().endDebugUtilsLabelEXT(); mRenderPassCommands->getCommandBuffer().endDebugUtilsLabelEXT();
} }
......
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