Change processResidency argument to a reference

Change-Id: Ie313a8cc4e479a314bcf170917397c13fbb70d14
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-09-14 10:39:21 +02:00
committed by sys_ocldev
parent 610eda5ad1
commit ac1d2b9901
18 changed files with 58 additions and 57 deletions

View File

@@ -243,7 +243,7 @@ HWTEST_F(TbxCommandStreamTests, givenTbxCommandStreamReceiverWhenProcessResidenc
EXPECT_EQ(ObjectNotResident, graphicsAllocation->residencyTaskCount);
tbxCsr->pushAllocationForResidency(graphicsAllocation);
tbxCsr->processResidency(&tbxCsr->getResidencyAllocations(), *pDevice->getOsContext());
tbxCsr->processResidency(tbxCsr->getResidencyAllocations(), *pDevice->getOsContext());
EXPECT_NE(ObjectNotResident, graphicsAllocation->residencyTaskCount);
EXPECT_EQ((int)tbxCsr->peekTaskCount() + 1, graphicsAllocation->residencyTaskCount);
@@ -262,7 +262,7 @@ HWTEST_F(TbxCommandStreamTests, givenTbxCommandStreamReceiverWhenProcessResidenc
EXPECT_EQ(ObjectNotResident, graphicsAllocation->residencyTaskCount);
ResidencyContainer allocationsForResidency = {graphicsAllocation};
tbxCsr->processResidency(&allocationsForResidency, *pDevice->getOsContext());
tbxCsr->processResidency(allocationsForResidency, *pDevice->getOsContext());
EXPECT_NE(ObjectNotResident, graphicsAllocation->residencyTaskCount);
EXPECT_EQ((int)tbxCsr->peekTaskCount() + 1, graphicsAllocation->residencyTaskCount);