| 480 | } |
| 481 | |
| 482 | void 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 | |
| 501 | void GpuTrace::CompleteDmaPacket(uint64_t hContext, uint32_t sequenceId, uint64_t timestamp) |
| 502 | { |