memset the thread to 0 when writing the GpuZoneEnd as this seems to prevent an assert failure

This commit is contained in:
Ashley Ruglys 2021-11-17 18:14:57 +01:00
parent cc45865239
commit bf1896f6ba
No known key found for this signature in database
GPG Key ID: 1CDD7E27FB663837

View File

@ -3996,7 +3996,7 @@ TRACY_API void ___tracy_emit_gpu_zone_end( const struct ___tracy_gpu_zone_end_da
{ {
TracyLfqPrepareC( tracy::QueueType::GpuZoneEnd ); TracyLfqPrepareC( tracy::QueueType::GpuZoneEnd );
tracy::MemWrite( &item->gpuZoneEnd.cpuTime, tracy::Profiler::GetTime() ); tracy::MemWrite( &item->gpuZoneEnd.cpuTime, tracy::Profiler::GetTime() );
tracy::MemWrite( &item->gpuNewContext.thread, tracy::GetThreadHandle() ); memset( &item->gpuZoneEnd.thread, 0, sizeof( item->gpuZoneEnd.thread ) );
tracy::MemWrite( &item->gpuZoneEnd.queryId, data.queryId ); tracy::MemWrite( &item->gpuZoneEnd.queryId, data.queryId );
tracy::MemWrite( &item->gpuZoneEnd.context, data.context ); tracy::MemWrite( &item->gpuZoneEnd.context, data.context );
TracyLfqCommitC; TracyLfqCommitC;