mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use uint32_t for blob size
This commit is contained in:
parent
66286b4034
commit
cf255030fd
@ -502,7 +502,7 @@ public:
|
|||||||
MemWrite( &item->blobData.time, GetTime() );
|
MemWrite( &item->blobData.time, GetTime() );
|
||||||
MemWrite( &item->blobData.encoding, encoding );
|
MemWrite( &item->blobData.encoding, encoding );
|
||||||
MemWrite( &item->blobData.data, (uint64_t)ptr );
|
MemWrite( &item->blobData.data, (uint64_t)ptr );
|
||||||
MemWrite( &item->blobData.size, (uint16_t)size );
|
MemWrite( &item->blobData.size, (uint32_t)size );
|
||||||
TracyQueueCommit( blobDataThread );
|
TracyQueueCommit( blobDataThread );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -407,12 +407,7 @@ struct QueueBlobData : public QueueBlob
|
|||||||
{
|
{
|
||||||
uint64_t encoding;
|
uint64_t encoding;
|
||||||
uint64_t data; // ptr
|
uint64_t data; // ptr
|
||||||
uint16_t size;
|
uint32_t size;
|
||||||
};
|
|
||||||
|
|
||||||
struct QueueBlobDataThread : public QueueBlobData
|
|
||||||
{
|
|
||||||
uint32_t thread;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Don't change order, only add new entries at the end, this is also used on trace dumps!
|
// Don't change order, only add new entries at the end, this is also used on trace dumps!
|
||||||
@ -762,7 +757,6 @@ struct QueueItem
|
|||||||
QueueMessageColorFatThread messageColorFatThread;
|
QueueMessageColorFatThread messageColorFatThread;
|
||||||
QueueBlob blob;
|
QueueBlob blob;
|
||||||
QueueBlobData blobData;
|
QueueBlobData blobData;
|
||||||
QueueBlobDataThread blobDataThread;
|
|
||||||
QueueGpuNewContext gpuNewContext;
|
QueueGpuNewContext gpuNewContext;
|
||||||
QueueGpuZoneBegin gpuZoneBegin;
|
QueueGpuZoneBegin gpuZoneBegin;
|
||||||
QueueGpuZoneBeginLean gpuZoneBeginLean;
|
QueueGpuZoneBeginLean gpuZoneBeginLean;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user