mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Change processResidency argument to a reference
Change-Id: Ie313a8cc4e479a314bcf170917397c13fbb70d14 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
610eda5ad1
commit
ac1d2b9901
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user