Move temporary and reusable allocation lists to command stream receiver

Change-Id: I40df6fe39b367e243e3710c5fdeaab3c85198d9d
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2018-10-09 11:50:58 +02:00
committed by sys_ocldev
parent 9e8af5e045
commit 8a9d0a81df
30 changed files with 323 additions and 282 deletions

View File

@@ -199,9 +199,9 @@ HWTEST_F(EnqueueWriteImageTest, GivenImage1DarrayWhenReadWriteImageIsCalledThenH
EnqueueWriteImageHelper<>::enqueueWriteImage(pCmdQ, dstImage2, CL_FALSE, origin, region);
auto memoryManager = pCmdQ->getDevice().getMemoryManager();
auto &csr = pCmdQ->getDevice().getCommandStreamReceiver();
auto temporaryAllocation1 = memoryManager->graphicsAllocations.peekHead();
auto temporaryAllocation1 = csr.getTemporaryAllocations().peekHead();
ASSERT_NE(nullptr, temporaryAllocation1);
EXPECT_EQ(temporaryAllocation1->getUnderlyingBufferSize(), imageSize);
@@ -223,9 +223,9 @@ HWTEST_F(EnqueueWriteImageTest, GivenImage2DarrayWhenReadWriteImageIsCalledThenH
EnqueueWriteImageHelper<>::enqueueWriteImage(pCmdQ, dstImage2, CL_FALSE, origin, region);
auto memoryManager = pCmdQ->getDevice().getMemoryManager();
auto &csr = pCmdQ->getDevice().getCommandStreamReceiver();
auto temporaryAllocation1 = memoryManager->graphicsAllocations.peekHead();
auto temporaryAllocation1 = csr.getTemporaryAllocations().peekHead();
ASSERT_NE(nullptr, temporaryAllocation1);
EXPECT_EQ(temporaryAllocation1->getUnderlyingBufferSize(), imageSize);