From 01dc470d26d84ebccb6076e8dab69eff88a80235 Mon Sep 17 00:00:00 2001 From: Lukasz Jobczyk Date: Thu, 1 Sep 2022 09:39:59 +0000 Subject: [PATCH] Fix BCS split ULTs on 32 bit Signed-off-by: Lukasz Jobczyk --- .../unit_test/command_queue/command_queue_hw_2_tests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opencl/test/unit_test/command_queue/command_queue_hw_2_tests.cpp b/opencl/test/unit_test/command_queue/command_queue_hw_2_tests.cpp index 41a7ce1ede..bc13e66cda 100644 --- a/opencl/test/unit_test/command_queue/command_queue_hw_2_tests.cpp +++ b/opencl/test/unit_test/command_queue/command_queue_hw_2_tests.cpp @@ -9,6 +9,7 @@ #include "shared/test/common/helpers/engine_descriptor_helper.h" #include "shared/test/common/mocks/mock_builtins.h" #include "shared/test/common/mocks/mock_csr.h" +#include "shared/test/common/mocks/mock_memory_manager.h" #include "shared/test/common/utilities/base_object_utils.h" #include "opencl/source/built_ins/builtins_dispatch_builder.h" @@ -360,6 +361,8 @@ HWTEST_F(IoqCommandQueueHwBlitTest, givenSplitBcsCopyWhenEnqueueReadThenEnqueueB DebugManager.flags.SplitBcsCopy.set(1); DebugManager.flags.DoCpuCopyOnReadBuffer.set(0); DebugManager.flags.UpdateTaskCountFromWait.set(3); + auto memoryManager = static_cast(pDevice->getMemoryManager()); + memoryManager->returnFakeAllocation = true; auto cmdQHw = static_cast *>(this->pCmdQ); auto csr1 = std::make_unique>(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield()); @@ -407,6 +410,8 @@ HWTEST_F(IoqCommandQueueHwBlitTest, givenSplitBcsCopyWhenEnqueueBlockingReadThen DebugManager.flags.SplitBcsCopy.set(1); DebugManager.flags.DoCpuCopyOnReadBuffer.set(0); DebugManager.flags.UpdateTaskCountFromWait.set(3); + auto memoryManager = static_cast(pDevice->getMemoryManager()); + memoryManager->returnFakeAllocation = true; auto cmdQHw = static_cast *>(this->pCmdQ); auto csr1 = std::make_unique>(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield()); @@ -454,6 +459,8 @@ HWTEST_F(IoqCommandQueueHwBlitTest, givenSplitBcsCopyWhenEnqueueReadWithEventThe DebugManager.flags.SplitBcsCopy.set(1); DebugManager.flags.DoCpuCopyOnReadBuffer.set(0); DebugManager.flags.UpdateTaskCountFromWait.set(3); + auto memoryManager = static_cast(pDevice->getMemoryManager()); + memoryManager->returnFakeAllocation = true; auto cmdQHw = static_cast *>(this->pCmdQ); auto csr1 = std::make_unique>(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield());