mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user