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

Commit 05a8813

Browse files
committed
CODEXL-3096 "Hotspot Summary -> Command Buffers Summary" does not list all the command buffers
1 parent 579f067 commit 05a8813

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

CodeXL/Components/GpuProfiling/AMDTGpuProfiling/gpTraceDataContainer.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,10 @@ void gpTraceDataContainer::CloseCommandList(APIInfo* pAPIInfo)
10821082
m_commandListUnAttachedCalls.removeOne(pItem);
10831083
}
10841084

1085-
m_commandListInstancesVector << currentInstanceData;
1085+
if (!currentInstanceData.m_sampleIds.isEmpty())
1086+
{
1087+
m_commandListInstancesVector << currentInstanceData;
1088+
}
10861089
}
10871090
}
10881091
}
@@ -1315,7 +1318,15 @@ QString gpTraceDataContainer::QueueDisplayName(const QString& queuePtrStr)
13151318

13161319
int gpTraceDataContainer::CommandListCount()const
13171320
{
1318-
return m_commandListPointerToIndexMap.size();
1321+
int retVal = 0;
1322+
for (auto iter = m_commandListInstancesVector.begin(); iter!= m_commandListInstancesVector.end(); iter++)
1323+
{
1324+
if (!(*iter).m_apiIndices.isEmpty())
1325+
{
1326+
retVal++;
1327+
}
1328+
}
1329+
return retVal;
13191330
}
13201331

13211332
void gpTraceDataContainer::AddBakedCommandBuffer(VKGPUTraceInfo* pAPIInfo)

0 commit comments

Comments
 (0)