diff --git a/source/adapters/level_zero/image.cpp b/source/adapters/level_zero/image.cpp index 8437fcff95..09bdc16a64 100644 --- a/source/adapters/level_zero/image.cpp +++ b/source/adapters/level_zero/image.cpp @@ -1237,7 +1237,7 @@ ur_result_t urBindlessImagesImportExternalSemaphoreExp( } ZE2UR_CALL(UrPlatform->ZeExternalSemaphoreExt.zexImportExternalSemaphoreExp, - (hDevice->ZeDevice, &ExtSemaphoreHandle, &SemDesc)); + (hDevice->ZeDevice, &SemDesc, &ExtSemaphoreHandle)); *phExternalSemaphoreHandle = (ur_exp_external_semaphore_handle_t)ExtSemaphoreHandle; @@ -1310,7 +1310,7 @@ ur_result_t urBindlessImagesWaitExternalSemaphoreExp( reinterpret_cast(hSemaphore); ZE2UR_CALL(UrPlatform->ZeExternalSemaphoreExt .zexCommandListAppendWaitExternalSemaphoresExp, - (ZeCommandList, &hExtSemaphore, &WaitParams, 1, ZeEvent, + (ZeCommandList, 1, &hExtSemaphore, &WaitParams, ZeEvent, WaitList.Length, WaitList.ZeEventList)); return UR_RESULT_SUCCESS; @@ -1373,7 +1373,7 @@ ur_result_t urBindlessImagesSignalExternalSemaphoreExp( ZE2UR_CALL(UrPlatform->ZeExternalSemaphoreExt .zexCommandListAppendSignalExternalSemaphoresExp, - (ZeCommandList, &hExtSemaphore, &SignalParams, 1, ZeEvent, + (ZeCommandList, 1, &hExtSemaphore, &SignalParams, ZeEvent, WaitList.Length, WaitList.ZeEventList)); return UR_RESULT_SUCCESS; diff --git a/source/adapters/level_zero/platform.hpp b/source/adapters/level_zero/platform.hpp index 4b613fb1e5..748460158c 100644 --- a/source/adapters/level_zero/platform.hpp +++ b/source/adapters/level_zero/platform.hpp @@ -119,17 +119,17 @@ struct ur_platform_handle_t_ : public _ur_platform { struct ZeExternalSemaphoreExtension { bool Supported = false; ze_result_t (*zexImportExternalSemaphoreExp)( - ze_device_handle_t, ze_intel_external_semaphore_exp_handle_t *, - const ze_intel_external_semaphore_exp_desc_t *); + ze_device_handle_t, const ze_intel_external_semaphore_exp_desc_t *, + ze_intel_external_semaphore_exp_handle_t *); ze_result_t (*zexCommandListAppendWaitExternalSemaphoresExp)( - ze_command_list_handle_t, + ze_command_list_handle_t, unsigned int, const ze_intel_external_semaphore_exp_handle_t *, - const ze_intel_external_semaphore_wait_exp_params_t *, unsigned int, + const ze_intel_external_semaphore_wait_exp_params_t *, ze_event_handle_t, uint32_t, ze_event_handle_t *); ze_result_t (*zexCommandListAppendSignalExternalSemaphoresExp)( - ze_command_list_handle_t, + ze_command_list_handle_t, size_t, const ze_intel_external_semaphore_exp_handle_t *, - const ze_intel_external_semaphore_signal_exp_params_t *, size_t, + const ze_intel_external_semaphore_signal_exp_params_t *, ze_event_handle_t, uint32_t, ze_event_handle_t *); ze_result_t (*zexDeviceReleaseExternalSemaphoreExp)( ze_intel_external_semaphore_exp_handle_t);