mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
Delete unneeded residency/eviction allocations mutators
Change-Id: Ic73ea4c4e3ebf422f935a440a1b4789fe1c15494 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b774e9c62b
commit
95e4dc4152
@@ -1176,7 +1176,7 @@ TEST_F(DrmCommandStreamLeaksTest, makeResidentTwice) {
|
||||
EXPECT_EQ(buffer, bo1);
|
||||
EXPECT_EQ(1u, bo1->getRefCount());
|
||||
|
||||
csr->clearResidencyAllocations();
|
||||
csr->getResidencyAllocations().clear();
|
||||
csr->makeResident(*allocation);
|
||||
csr->processResidency(csr->getResidencyAllocations(), *osContext);
|
||||
|
||||
@@ -1368,7 +1368,7 @@ TEST_F(DrmCommandStreamLeaksTest, GivenAllocationsContainingDifferentCountOfFrag
|
||||
EXPECT_EQ(1u, bo->getRefCount());
|
||||
}
|
||||
mm->freeGraphicsMemory(allocation);
|
||||
csr->clearResidencyAllocations();
|
||||
csr->getResidencyAllocations().clear();
|
||||
|
||||
EXPECT_EQ(0u, hostPtrManager.getFragmentCount());
|
||||
|
||||
@@ -1423,7 +1423,7 @@ TEST_F(DrmCommandStreamLeaksTest, GivenTwoAllocationsWhenBackingStorageIsTheSame
|
||||
|
||||
mm->freeGraphicsMemory(allocation);
|
||||
mm->freeGraphicsMemory(allocation2);
|
||||
csr->clearResidencyAllocations();
|
||||
csr->getResidencyAllocations().clear();
|
||||
}
|
||||
|
||||
TEST_F(DrmCommandStreamLeaksTest, GivenTwoAllocationsWhenBackingStorageIsDifferentThenMakeResidentShouldAddTwoLocations) {
|
||||
@@ -1446,7 +1446,7 @@ TEST_F(DrmCommandStreamLeaksTest, GivenTwoAllocationsWhenBackingStorageIsDiffere
|
||||
|
||||
mm->freeGraphicsMemory(allocation);
|
||||
mm->freeGraphicsMemory(allocation2);
|
||||
csr->clearResidencyAllocations();
|
||||
csr->getResidencyAllocations().clear();
|
||||
}
|
||||
|
||||
TEST_F(DrmCommandStreamLeaksTest, makeResidentSizeZero) {
|
||||
@@ -1616,7 +1616,7 @@ TEST_F(DrmCommandStreamLeaksTest, CheckDrmFree) {
|
||||
mm->freeGraphicsMemory(allocation);
|
||||
}
|
||||
|
||||
TEST_F(DrmCommandStreamLeaksTest, MakeResidentClearResidencyAllocationsInMemoryManager) {
|
||||
TEST_F(DrmCommandStreamLeaksTest, MakeResidentClearResidencyAllocationsInCommandStreamReceiver) {
|
||||
auto allocation1 = mm->allocateGraphicsMemory(1024);
|
||||
auto allocation2 = mm->allocateGraphicsMemory(1024);
|
||||
|
||||
|
||||
@@ -547,8 +547,8 @@ TEST_F(WddmCommandStreamTest, processEvictionPlacesAllAllocationsOnTrimCandidate
|
||||
ASSERT_NE(nullptr, allocation);
|
||||
ASSERT_NE(nullptr, allocation2);
|
||||
|
||||
csr->pushAllocationForEviction(allocation);
|
||||
csr->pushAllocationForEviction(allocation2);
|
||||
csr->getEvictionAllocations().push_back(allocation);
|
||||
csr->getEvictionAllocations().push_back(allocation2);
|
||||
|
||||
EXPECT_EQ(2u, csr->getEvictionAllocations().size());
|
||||
|
||||
@@ -566,7 +566,7 @@ TEST_F(WddmCommandStreamTest, processEvictionClearsEvictionAllocations) {
|
||||
GraphicsAllocation *allocation = memManager->allocateGraphicsMemory(4096);
|
||||
ASSERT_NE(nullptr, allocation);
|
||||
|
||||
csr->pushAllocationForEviction(allocation);
|
||||
csr->getEvictionAllocations().push_back(allocation);
|
||||
|
||||
EXPECT_EQ(1u, csr->getEvictionAllocations().size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user