Skip to content

Commit 80fa9d0

Browse files
committed
Decouple aub stream memoryFree from makeNonResident
Change-Id: Ic4614441aff131356ce3ec03330d7dc42b5b0ecb
1 parent 0131e66 commit 80fa9d0

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

runtime/command_stream/aub_command_stream_receiver_hw.inl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,9 +769,6 @@ void AUBCommandStreamReceiverHw<GfxFamily>::processResidency(ResidencyContainer
769769
template <typename GfxFamily>
770770
void AUBCommandStreamReceiverHw<GfxFamily>::makeNonResident(GraphicsAllocation &gfxAllocation) {
771771
if (gfxAllocation.isResident(this->deviceIndex)) {
772-
if (hardwareContext) {
773-
hardwareContext->freeMemory(gfxAllocation.getGpuAddress(), gfxAllocation.getUnderlyingBufferSize());
774-
}
775772
this->getEvictionAllocations().push_back(&gfxAllocation);
776773
gfxAllocation.resetResidencyTaskCount(this->deviceIndex);
777774
}

unit_tests/command_stream/aub_file_stream_tests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ HWTEST_F(AubFileStreamTests, givenAubCommandStreamReceiverWhenMakeResidentIsCall
177177
MockGraphicsAllocation allocation(reinterpret_cast<void *>(0x1000), 0x1000);
178178
ResidencyContainer allocationsForResidency = {&allocation};
179179
aubCsr->processResidency(allocationsForResidency);
180-
aubCsr->makeNonResident(allocation);
181180

182181
EXPECT_TRUE(mockHardwareContext->writeMemoryCalled);
183-
EXPECT_TRUE(mockHardwareContext->freeMemoryCalled);
184182
}
185183

186184
HWTEST_F(AubFileStreamTests, givenAubCommandStreamReceiverWhenFlushIsCalledThenFileStreamShouldBeFlushed) {

0 commit comments

Comments
 (0)