Commit 6eba3c61 by Shahbaz Youssefi Committed by Commit Bot

Vulkan: Distinguish query operations in GraphViz output

The query nodes now output BeginQuery or EndQuery based on the node's function, instead of just Query. Bug: angleproject:2379 Change-Id: I6ba38031c40b88e8927b31cdf14e4fdc2474624e Reviewed-on: https://chromium-review.googlesource.com/c/1277485 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent a1ac3fe8
......@@ -47,7 +47,8 @@ angle::Result InitAndBeginCommandBuffer(vk::Context *context,
return angle::Result::Continue();
}
const char *GetResourceTypeName(CommandGraphResourceType resourceType)
const char *GetResourceTypeName(CommandGraphResourceType resourceType,
CommandGraphNodeFunction function)
{
switch (resourceType)
{
......@@ -58,7 +59,16 @@ const char *GetResourceTypeName(CommandGraphResourceType resourceType)
case CommandGraphResourceType::Image:
return "Image";
case CommandGraphResourceType::Query:
return "Query";
switch (function)
{
case CommandGraphNodeFunction::BeginQuery:
return "BeginQuery";
case CommandGraphNodeFunction::EndQuery:
return "EndQuery";
default:
UNREACHABLE();
return "Query";
}
default:
UNREACHABLE();
return "";
......@@ -676,7 +686,7 @@ void CommandGraph::dumpGraphDotFile(std::ostream &out) const
int nodeID = nodeIDMap[node];
std::stringstream strstr;
strstr << GetResourceTypeName(node->getResourceTypeForDiagnostics());
strstr << GetResourceTypeName(node->getResourceTypeForDiagnostics(), node->getFunction());
strstr << " ";
auto it = objectIDMap.find(node->getResourceIDForDiagnostics());
......
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