From 97c5a68e8e3ce1c5438038b41fdee85c683af82a Mon Sep 17 00:00:00 2001 From: Michal Mrozek Date: Wed, 6 May 2020 14:07:00 +0200 Subject: [PATCH] Remove not needed code. Change-Id: I618a8d87668831942720ee714099fe31d9184b7b Signed-off-by: Michal Mrozek --- ...emory_manager_allocate_in_preferred_pool_tests.inl | 11 ----------- shared/source/memory_manager/memory_manager.cpp | 4 ---- 2 files changed, 15 deletions(-) diff --git a/opencl/test/unit_test/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl b/opencl/test/unit_test/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl index a0f320ce31..375b1c9b2f 100644 --- a/opencl/test/unit_test/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl +++ b/opencl/test/unit_test/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl @@ -57,17 +57,6 @@ TEST(MemoryManagerGetAlloctionDataTest, givenCommandBufferAllocationTypeWhenGetA EXPECT_TRUE(allocData.flags.useSystemMemory); } -TEST(MemoryManagerGetAlloctionDataTest, givenCommandBufferAllocationTypeAndMultiOsStorageRequirementWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) { - AllocationData allocData; - AllocationProperties properties(0, true, 10, GraphicsAllocation::AllocationType::COMMAND_BUFFER, true, {}); - properties.flags.multiOsContextCapable = true; - - MockMemoryManager mockMemoryManager; - MockMemoryManager::getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties)); - - EXPECT_FALSE(allocData.flags.useSystemMemory); -} - TEST(MemoryManagerGetAlloctionDataTest, givenAllocateMemoryFlagTrueWhenHostPtrIsNotNullThenAllocationDataHasHostPtrNulled) { AllocationData allocData; char memory = 0; diff --git a/shared/source/memory_manager/memory_manager.cpp b/shared/source/memory_manager/memory_manager.cpp index 888da115ad..835b705669 100644 --- a/shared/source/memory_manager/memory_manager.cpp +++ b/shared/source/memory_manager/memory_manager.cpp @@ -300,10 +300,6 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo break; } - if (properties.allocationType == GraphicsAllocation::AllocationType::COMMAND_BUFFER && properties.flags.multiOsContextCapable) { - allocationData.flags.useSystemMemory = false; - } - switch (properties.allocationType) { case GraphicsAllocation::AllocationType::COMMAND_BUFFER: case GraphicsAllocation::AllocationType::DEVICE_QUEUE_BUFFER: