Use StackVec in Buffer::create instead of std::map

Related-To: NEO-4589
Change-Id: I9aa3a5de7e4e86b85c4589901a81a5b9633fc23f
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2020-10-21 17:33:21 +02:00
committed by sys_ocldev
parent 1d74871f85
commit 0f31b5cc8b
3 changed files with 11 additions and 7 deletions

View File

@ -1810,9 +1810,10 @@ TEST_F(BufferTransferTests, givenBufferWhenTransferFromHostPtrCalledThenCopyRequ
using MultiRootDeviceBufferTest = MultiRootDeviceFixture;
TEST_F(MultiRootDeviceBufferTest, WhenCleanAllGraphicsAllocationsCalledThenGraphicsAllocationsAreProperlyRemoved) {
std::map<uint32_t, NEO::CreateBuffer::AllocationInfo> allocationInfo;
AllocationInfoType allocationInfo;
allocationInfo.resize(3u);
allocationInfo.insert({1u, {}});
allocationInfo[1u] = {};
allocationInfo[1u].memory = mockMemoryManager->allocateGraphicsMemoryWithProperties(MockAllocationProperties{1u, MemoryConstants::pageSize});
Buffer::cleanAllGraphicsAllocations(*context, *context->getMemoryManager(), allocationInfo);