mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
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:
committed by
sys_ocldev
parent
9e8af5e045
commit
8a9d0a81df
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user