| 91 | } |
| 92 | |
| 93 | ze_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 | |
| 102 | ze_result_t XCommandListDestroy(ze_command_list_handle_t hCommandList) |
| 103 | { |
nothing calls this directly
no test coverage detected