Skip to content

Commit 97c5a68

Browse files
Remove not needed code.
Change-Id: I618a8d87668831942720ee714099fe31d9184b7b Signed-off-by: Michal Mrozek <[email protected]>
1 parent 78d5704 commit 97c5a68

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

opencl/test/unit_test/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,6 @@ TEST(MemoryManagerGetAlloctionDataTest, givenCommandBufferAllocationTypeWhenGetA
5757
EXPECT_TRUE(allocData.flags.useSystemMemory);
5858
}
5959

60-
TEST(MemoryManagerGetAlloctionDataTest, givenCommandBufferAllocationTypeAndMultiOsStorageRequirementWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) {
61-
AllocationData allocData;
62-
AllocationProperties properties(0, true, 10, GraphicsAllocation::AllocationType::COMMAND_BUFFER, true, {});
63-
properties.flags.multiOsContextCapable = true;
64-
65-
MockMemoryManager mockMemoryManager;
66-
MockMemoryManager::getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties));
67-
68-
EXPECT_FALSE(allocData.flags.useSystemMemory);
69-
}
70-
7160
TEST(MemoryManagerGetAlloctionDataTest, givenAllocateMemoryFlagTrueWhenHostPtrIsNotNullThenAllocationDataHasHostPtrNulled) {
7261
AllocationData allocData;
7362
char memory = 0;

shared/source/memory_manager/memory_manager.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
300300
break;
301301
}
302302

303-
if (properties.allocationType == GraphicsAllocation::AllocationType::COMMAND_BUFFER && properties.flags.multiOsContextCapable) {
304-
allocationData.flags.useSystemMemory = false;
305-
}
306-
307303
switch (properties.allocationType) {
308304
case GraphicsAllocation::AllocationType::COMMAND_BUFFER:
309305
case GraphicsAllocation::AllocationType::DEVICE_QUEUE_BUFFER:

0 commit comments

Comments
 (0)