From 1c42b26f41a7bee38ba4483ef02c5b959f8c9b29 Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Wed, 30 Apr 2025 11:04:16 +0000 Subject: [PATCH] fix: add missing L0 API entries in global driver dispatch all ddi entries related to exposed L0 API version should be set to valid ptr Related-To: NEO-13121 Signed-off-by: Mateusz Jablonski --- level_zero/api/core/ze_cmdlist_api_entrypoints.h | 6 ++++++ level_zero/api/core/ze_event_api_entrypoints.h | 8 +++++++- level_zero/ddi/ze_ddi_tables.cpp | 12 ++++++------ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/level_zero/api/core/ze_cmdlist_api_entrypoints.h b/level_zero/api/core/ze_cmdlist_api_entrypoints.h index 40419addb7..6bec0a7fda 100644 --- a/level_zero/api/core/ze_cmdlist_api_entrypoints.h +++ b/level_zero/api/core/ze_cmdlist_api_entrypoints.h @@ -96,6 +96,12 @@ ze_result_t zeCommandListIsImmediate( return L0::CommandList::fromHandle(hCommandList)->isImmediate(pIsImmediate); } +ze_result_t zeCommandListCreateCloneExp( + ze_command_list_handle_t hCommandList, + ze_command_list_handle_t *phClonedCommandList) { + return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE; +} + ze_result_t zeCommandListImmediateAppendCommandListsExp( ze_command_list_handle_t hCommandListImmediate, uint32_t numCommandLists, diff --git a/level_zero/api/core/ze_event_api_entrypoints.h b/level_zero/api/core/ze_event_api_entrypoints.h index f5708382d0..cd8211dba2 100644 --- a/level_zero/api/core/ze_event_api_entrypoints.h +++ b/level_zero/api/core/ze_event_api_entrypoints.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2024 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -109,6 +109,12 @@ ze_result_t zeEventQueryKernelTimestampsExt( return L0::Event::fromHandle(hEvent)->queryKernelTimestampsExt(L0::Device::fromHandle(hDevice), pCount, pResults); } +ze_result_t zeEventPoolPutIpcHandle( + ze_context_handle_t hContext, + ze_ipc_event_pool_handle_t hIpc) { + return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE; +} + ze_result_t zeEventPoolGetContextHandle( ze_event_pool_handle_t hEventPool, ze_context_handle_t *phContext) { diff --git a/level_zero/ddi/ze_ddi_tables.cpp b/level_zero/ddi/ze_ddi_tables.cpp index 6ae6261f8c..8ad07881ea 100644 --- a/level_zero/ddi/ze_ddi_tables.cpp +++ b/level_zero/ddi/ze_ddi_tables.cpp @@ -131,8 +131,8 @@ DriverDispatch::DriverDispatch() { this->coreDevice.pfnSetCacheAdviceExt = L0::zeDeviceSetCacheAdviceExt; this->coreDevice.pfnPciGetPropertiesExt = L0::zeDevicePciGetPropertiesExt; this->coreDevice.pfnGetRootDevice = L0::zeDeviceGetRootDevice; - this->coreDevice.pfnImportExternalSemaphoreExt = nullptr; - this->coreDevice.pfnReleaseExternalSemaphoreExt = nullptr; + this->coreDevice.pfnImportExternalSemaphoreExt = L0::zeDeviceImportExternalSemaphoreExt; + this->coreDevice.pfnReleaseExternalSemaphoreExt = L0::zeDeviceReleaseExternalSemaphoreExt; this->coreDeviceExp.pfnGetFabricVertexExp = L0::zeDeviceGetFabricVertexExp; this->coreContext.pfnCreate = L0::zeContextCreate; this->coreContext.pfnDestroy = L0::zeContextDestroy; @@ -183,9 +183,9 @@ DriverDispatch::DriverDispatch() { this->coreCommandList.pfnGetOrdinal = L0::zeCommandListGetOrdinal; this->coreCommandList.pfnImmediateGetIndex = L0::zeCommandListImmediateGetIndex; this->coreCommandList.pfnIsImmediate = L0::zeCommandListIsImmediate; - this->coreCommandList.pfnAppendSignalExternalSemaphoreExt = nullptr; - this->coreCommandList.pfnAppendWaitExternalSemaphoreExt = nullptr; - this->coreCommandListExp.pfnCreateCloneExp = nullptr; + this->coreCommandList.pfnAppendSignalExternalSemaphoreExt = L0::zeCommandListAppendSignalExternalSemaphoreExt; + this->coreCommandList.pfnAppendWaitExternalSemaphoreExt = L0::zeCommandListAppendWaitExternalSemaphoreExt; + this->coreCommandListExp.pfnCreateCloneExp = L0::zeCommandListCreateCloneExp; this->coreCommandListExp.pfnImmediateAppendCommandListsExp = L0::zeCommandListImmediateAppendCommandListsExp; this->coreCommandListExp.pfnGetNextCommandIdExp = L0::zeCommandListGetNextCommandIdExp; this->coreCommandListExp.pfnUpdateMutableCommandsExp = L0::zeCommandListUpdateMutableCommandsExp; @@ -227,7 +227,7 @@ DriverDispatch::DriverDispatch() { this->coreEventPool.pfnGetIpcHandle = L0::zeEventPoolGetIpcHandle; this->coreEventPool.pfnOpenIpcHandle = L0::zeEventPoolOpenIpcHandle; this->coreEventPool.pfnCloseIpcHandle = L0::zeEventPoolCloseIpcHandle; - this->coreEventPool.pfnPutIpcHandle = nullptr; + this->coreEventPool.pfnPutIpcHandle = L0::zeEventPoolPutIpcHandle; this->coreEventPool.pfnGetContextHandle = L0::zeEventPoolGetContextHandle; this->coreEventPool.pfnGetFlags = L0::zeEventPoolGetFlags; this->coreEvent.pfnCreate = L0::zeEventCreate;