mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
1d74871f85
commit
0f31b5cc8b
@ -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);
|
||||
|
Reference in New Issue
Block a user