From 31f0eef4be5101eea179ba027a4e4c8cc2f765b3 Mon Sep 17 00:00:00 2001 From: "Chodor, Jaroslaw" Date: Fri, 23 Aug 2024 13:32:18 +0000 Subject: [PATCH] fix: Use consistently proper size of implicit args buffer Fixes discrepancy of implicit args buffer allocation and programming in OCL path Resolves: NEO-12316 Signed-off-by: Chodor, Jaroslaw --- .../source/helpers/hardware_commands_helper_xehp_and_later.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencl/source/helpers/hardware_commands_helper_xehp_and_later.inl b/opencl/source/helpers/hardware_commands_helper_xehp_and_later.inl index 3f2961255f..083f7b0c0c 100644 --- a/opencl/source/helpers/hardware_commands_helper_xehp_and_later.inl +++ b/opencl/source/helpers/hardware_commands_helper_xehp_and_later.inl @@ -91,7 +91,7 @@ size_t HardwareCommandsHelper::sendCrossThreadData( auto sizeForImplicitArgsProgramming = ImplicitArgsHelper::getSizeForImplicitArgsPatching(pImplicitArgs, kernelDescriptor, !generationOfLocalIdsByRuntime, rootDeviceEnvironment); - auto sizeForLocalIdsProgramming = sizeForImplicitArgsProgramming - ImplicitArgs::getSize(); + auto sizeForLocalIdsProgramming = sizeForImplicitArgsProgramming - NEO::ImplicitArgsHelper::getSizeForImplicitArgsStruct(pImplicitArgs, kernelDescriptor, true, rootDeviceEnvironment); offsetCrossThreadData += sizeForLocalIdsProgramming; auto ptrToPatchImplicitArgs = indirectHeap.getSpace(sizeForImplicitArgsProgramming);