| 203 | } |
| 204 | |
| 205 | void GpuTrace::SetEngineType(uint64_t pDxgAdapter, uint32_t nodeOrdinal, Microsoft_Windows_DxgKrnl::DXGK_ENGINE engineType) |
| 206 | { |
| 207 | // Node should already be created (DxgKrnl::Context_Start comes |
| 208 | // first) but just to be sure... |
| 209 | auto node = &mNodes[pDxgAdapter].emplace(nodeOrdinal, Node{}).first->second; |
| 210 | |
| 211 | if (engineType == Microsoft_Windows_DxgKrnl::DXGK_ENGINE::VIDEO_DECODE || |
| 212 | engineType == Microsoft_Windows_DxgKrnl::DXGK_ENGINE::VIDEO_ENCODE || |
| 213 | engineType == Microsoft_Windows_DxgKrnl::DXGK_ENGINE::VIDEO_PROCESSING) { |
| 214 | node->mIsVideo = true; |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | void GpuTrace::SetContextProcessId(Context* context, uint32_t processId) |
| 219 | { |