Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
CODEXL-3096 "Hotspot Summary -> Command Buffers Summary" does not lis…
Browse files Browse the repository at this point in the history
…t all the command buffers
  • Loading branch information
Sigalalg committed May 30, 2016
1 parent 579f067 commit 05a8813
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,10 @@ void gpTraceDataContainer::CloseCommandList(APIInfo* pAPIInfo)
m_commandListUnAttachedCalls.removeOne(pItem);
}

m_commandListInstancesVector << currentInstanceData;
if (!currentInstanceData.m_sampleIds.isEmpty())
{
m_commandListInstancesVector << currentInstanceData;
}
}
}
}
Expand Down Expand Up @@ -1315,7 +1318,15 @@ QString gpTraceDataContainer::QueueDisplayName(const QString& queuePtrStr)

int gpTraceDataContainer::CommandListCount()const
{
return m_commandListPointerToIndexMap.size();
int retVal = 0;
for (auto iter = m_commandListInstancesVector.begin(); iter!= m_commandListInstancesVector.end(); iter++)
{
if (!(*iter).m_apiIndices.isEmpty())
{
retVal++;
}
}
return retVal;
}

void gpTraceDataContainer::AddBakedCommandBuffer(VKGPUTraceInfo* pAPIInfo)
Expand Down

0 comments on commit 05a8813

Please sign in to comment.