Skip to content

Commit 850b387

Browse files
Move RING_BUFFER to system memory
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
1 parent 1fa74b9 commit 850b387

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

opencl/test/unit_test/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ HWTEST_F(GetAllocationDataTestHw, givenRingBufferAllocationWhenGetAllocationData
788788
MockMemoryManager mockMemoryManager;
789789
AllocationProperties properties{mockRootDeviceIndex, 0x10000u, GraphicsAllocation::AllocationType::RING_BUFFER, mockDeviceBitfield};
790790
mockMemoryManager.getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties));
791-
EXPECT_FALSE(allocData.flags.useSystemMemory);
791+
EXPECT_TRUE(allocData.flags.useSystemMemory);
792792
EXPECT_TRUE(allocData.flags.allocateMemory);
793793
EXPECT_FALSE(allocData.flags.allow32Bit);
794794
EXPECT_FALSE(allocData.flags.allow64kbPages);

shared/source/memory_manager/memory_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
348348

349349
switch (properties.allocationType) {
350350
case GraphicsAllocation::AllocationType::COMMAND_BUFFER:
351+
case GraphicsAllocation::AllocationType::RING_BUFFER:
351352
case GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY:
352353
case GraphicsAllocation::AllocationType::DEVICE_QUEUE_BUFFER:
353354
case GraphicsAllocation::AllocationType::EXTERNAL_HOST_PTR:

0 commit comments

Comments
 (0)