MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / EnqueueDmaPacket

Method EnqueueDmaPacket

PresentData/GpuTrace.cpp:482–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void GpuTrace::EnqueueDmaPacket(uint64_t hContext, uint32_t sequenceId, uint64_t timestamp)
483{
484 // Lookup the context. This can fail sometimes e.g. if parsing the
485 // beginning of an ETL file where we can get packet events before the
486 // context mapping.
487 auto ii = mContexts.find(hContext);
488 if (ii == mContexts.end()) {
489 return;
490 }
491 auto context = &ii->second;
492
493 // Should not see any dma packets on a HwQueue
494 DebugAssert(!context->mIsHwQueue);
495
496 // Start tracking the work
497 bool isWaitPacket = false;
498 EnqueueWork(context, sequenceId, timestamp, isWaitPacket);
499}
500
501void GpuTrace::CompleteDmaPacket(uint64_t hContext, uint32_t sequenceId, uint64_t timestamp)
502{

Callers 1

HandleDXGKEventMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected