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

@@ -226,9 +226,9 @@ HWTEST_F(EnqueueReadImageTest, GivenImage1DarrayWhenReadImageIsCalledThenHostPtr
EnqueueReadImageHelper<>::enqueueReadImage(pCmdQ, srcImage, CL_FALSE, origin, region);
auto memoryManager = pCmdQ->getDevice().getMemoryManager();
auto &csr = pCmdQ->getDevice().getCommandStreamReceiver();
auto temporaryAllocation = memoryManager->graphicsAllocations.peekHead();
auto temporaryAllocation = csr.getTemporaryAllocations().peekHead();
ASSERT_NE(nullptr, temporaryAllocation);
EXPECT_EQ(temporaryAllocation->getUnderlyingBufferSize(), imageSize);
@@ -245,9 +245,9 @@ HWTEST_F(EnqueueReadImageTest, GivenImage2DarrayWhenReadImageIsCalledThenHostPtr
EnqueueReadImageHelper<>::enqueueReadImage(pCmdQ, srcImage, CL_FALSE, origin, region);
auto memoryManager = pCmdQ->getDevice().getMemoryManager();
auto &csr = pCmdQ->getDevice().getCommandStreamReceiver();
auto temporaryAllocation = memoryManager->graphicsAllocations.peekHead();
auto temporaryAllocation = csr.getTemporaryAllocations().peekHead();
ASSERT_NE(nullptr, temporaryAllocation);
EXPECT_EQ(temporaryAllocation->getUnderlyingBufferSize(), imageSize);