MCPcopy Create free account
hub / github.com/XpuOS/xsched / XCommandListDestroy

Function XCommandListDestroy

platforms/levelzero/shim/src/shim.cpp:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102ze_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
119ze_result_t XCommandListReset(ze_command_list_handle_t hCommandList)
120{

Callers

nothing calls this directly

Calls 5

GetHwQueueHandleFunction · 0.50
ExistsMethod · 0.45
DestroyMethod · 0.45
GetMethod · 0.45
DelMethod · 0.45

Tested by

no test coverage detected