Skip to content

Commit 59e6a7b

Browse files
Allocate timestamp tag buffer in system memory
Change-Id: I71cb7678edc073fbb2c55e1a617b04959bcb75d7 Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent f18532c commit 59e6a7b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

runtime/memory_manager/memory_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
238238
case GraphicsAllocation::AllocationType::UNDECIDED:
239239
case GraphicsAllocation::AllocationType::LINEAR_STREAM:
240240
case GraphicsAllocation::AllocationType::FILL_PATTERN:
241+
case GraphicsAllocation::AllocationType::TIMESTAMP_TAG_BUFFER:
241242
allocationData.flags.useSystemMemory = true;
242243
break;
243244
default:

unit_tests/memory_manager/memory_manager_allocate_in_preferred_pool_tests.inl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,9 @@ TEST(MemoryManagerTest, givenLinearStreamTypeWhenGetAllocationDataIsCalledThenSy
371371
MockMemoryManager::getAllocationData(allocData, {1, GraphicsAllocation::AllocationType::LINEAR_STREAM}, 0, nullptr);
372372
EXPECT_TRUE(allocData.flags.useSystemMemory);
373373
}
374+
375+
TEST(MemoryManagerTest, givenTimestampTagBufferTypeWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) {
376+
AllocationData allocData;
377+
MockMemoryManager::getAllocationData(allocData, {1, GraphicsAllocation::AllocationType::TIMESTAMP_TAG_BUFFER}, 0, nullptr);
378+
EXPECT_TRUE(allocData.flags.useSystemMemory);
379+
}

0 commit comments

Comments
 (0)