Supply the correct thread ID for annotations

This commit is contained in:
Eric Eaton
2025-07-11 17:18:17 -07:00
parent 3324b46dca
commit 114f6ef096
3 changed files with 29 additions and 15 deletions
+2 -3
View File
@@ -6045,9 +6045,8 @@ void Worker::ProcessGpuZoneAnnotation( const QueueGpuZoneAnnotation& ev )
{
auto ctx = m_gpuCtxMap[ev.context];
assert( ctx );
// TODO: Get thread ID properly
assert( ctx->threadData.size() );
auto& timeline = ctx->threadData.begin()->second.timeline;
assert( ctx->threadData.contains( ev.thread ) );
auto& timeline = ctx->threadData.at( ev.thread ).timeline;
assert( timeline.size() );
ssize_t i = timeline.size() - 1;
for( ; i >= 0; i-- )