freeGraphicsMemory to call freeGpuAddressRange on gfx partition
Related-To: NEO-2687 Change-Id: Id4ded6f5b443fb30c795cb8fab4bedda2fd66469
This commit is contained in:
parent
91858d89d8
commit
2e7696121b
|
@ -600,7 +600,8 @@ void DrmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation)
|
||||||
}
|
}
|
||||||
void *reserveAddress = gfxAllocation->getReservedAddressPtr();
|
void *reserveAddress = gfxAllocation->getReservedAddressPtr();
|
||||||
if (reserveAddress) {
|
if (reserveAddress) {
|
||||||
releaseReservedCpuAddressRange(reserveAddress, gfxAllocation->getReservedAddressSize());
|
auto gpuAddressToFree = GmmHelper::decanonize(reinterpret_cast<uint64_t>(reserveAddress));
|
||||||
|
gfxPartition.freeGpuAddressRange(gpuAddressToFree, gfxAllocation->getReservedAddressSize());
|
||||||
}
|
}
|
||||||
delete gfxAllocation;
|
delete gfxAllocation;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue