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

Function XCommandListCreateImmediate

platforms/levelzero/shim/src/shim.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93ze_result_t XCommandListCreateImmediate(ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_command_queue_desc_t *altdesc, ze_command_list_handle_t *phCommandList)
94{
95 auto res = ImmediateCommandListManager::Instance().Create(hContext, hDevice, altdesc, phCommandList);
96 if (res != ZE_RESULT_SUCCESS) return res;
97 XQueueManager::AutoCreate([&](HwQueueHandle *hwq) { return ZeListreate(hwq, hDevice, *phCommandList); });
98 XDEBG("XCommandListCreateImmediate(cmd_list: %p)", *phCommandList);
99 return res;
100}
101
102ze_result_t XCommandListDestroy(ze_command_list_handle_t hCommandList)
103{

Callers

nothing calls this directly

Calls 2

ZeListreateFunction · 0.85
CreateMethod · 0.45

Tested by

no test coverage detected