1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Send thread id in GPU zone end message.

We don't care about OpenGL zone thread ids, so the identifier is zeroed.
This commit is contained in:
Bartosz Taudul
2019-09-23 16:05:49 +02:00
parent daf64c703a
commit 0f68e1e981
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -253,6 +253,7 @@ public:
auto item = token->enqueue_begin( magic );
MemWrite( &item->hdr.type, QueueType::GpuZoneEnd );
MemWrite( &item->gpuZoneEnd.cpuTime, Profiler::GetTime() );
memset( &item->gpuZoneEnd.thread, 0, sizeof( item->gpuZoneEnd.thread ) );
MemWrite( &item->gpuZoneEnd.queryId, uint16_t( queryId ) );
MemWrite( &item->gpuZoneEnd.context, GetGpuCtx().ptr->GetId() );
tail.store( magic + 1, std::memory_order_release );