| 100 | } |
| 101 | |
| 102 | ze_result_t XCommandListDestroy(ze_command_list_handle_t hCommandList) |
| 103 | { |
| 104 | XDEBG("XCommandListDestroy(cmd_list: %p)", hCommandList); |
| 105 | if (ImmediateCommandListManager::Instance().Exists(hCommandList)) { |
| 106 | XQueueManager::AutoDestroy(GetHwQueueHandle(hCommandList)); |
| 107 | return ImmediateCommandListManager::Instance().Destroy(hCommandList); |
| 108 | } |
| 109 | |
| 110 | auto sliced = CommandListManager::Instance().Get(hCommandList); |
| 111 | if (sliced == nullptr) { |
| 112 | g_cmdlist_to_cmd.Del(hCommandList, nullptr); |
| 113 | return Driver::CommandListDestroy(hCommandList); |
| 114 | } |
| 115 | for (auto &cl : sliced->cmd_lists) g_cmdlist_to_cmd.Del(cl, nullptr); |
| 116 | return CommandListManager::Instance().Destroy(hCommandList); |
| 117 | } |
| 118 | |
| 119 | ze_result_t XCommandListReset(ze_command_list_handle_t hCommandList) |
| 120 | { |
nothing calls this directly
no test coverage detected