| 499 | } |
| 500 | |
| 501 | void GpuTrace::CompleteDmaPacket(uint64_t hContext, uint32_t sequenceId, uint64_t timestamp) |
| 502 | { |
| 503 | // Lookup the context. This can fail sometimes e.g. if parsing the |
| 504 | // beginning of an ETL file where we can get packet events before the |
| 505 | // context mapping. |
| 506 | auto ii = mContexts.find(hContext); |
| 507 | if (ii == mContexts.end()) { |
| 508 | return; |
| 509 | } |
| 510 | auto context = &ii->second; |
| 511 | |
| 512 | // Should not see any dma packets on a HwQueue |
| 513 | DebugAssert(!context->mIsHwQueue); |
| 514 | |
| 515 | // Stop tracking the work |
| 516 | CompleteWork(context, sequenceId, timestamp); |
| 517 | } |
| 518 | |
| 519 | void GpuTrace::CompleteFrame(PresentEvent* pEvent, uint64_t timestamp) |
| 520 | { |