Browse Source
Merge pull request #13000 from liamwhite/skip-null-memory
device_memory_manager: skip unregistered interfaces on invalidate
pull/15/merge
Narr the Reg
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
4 deletions
-
src/core/device_memory_manager.inc
|
|
|
@ -522,13 +522,17 @@ void DeviceMemoryManager<Traits>::UpdatePagesCachedCount(DAddr addr, size_t size |
|
|
|
auto* memory_device_inter = registered_processes[asid.id]; |
|
|
|
const auto release_pending = [&] { |
|
|
|
if (uncache_bytes > 0) { |
|
|
|
MarkRegionCaching(memory_device_inter, uncache_begin << Memory::YUZU_PAGEBITS, |
|
|
|
uncache_bytes, false); |
|
|
|
if (memory_device_inter != nullptr) { |
|
|
|
MarkRegionCaching(memory_device_inter, uncache_begin << Memory::YUZU_PAGEBITS, |
|
|
|
uncache_bytes, false); |
|
|
|
} |
|
|
|
uncache_bytes = 0; |
|
|
|
} |
|
|
|
if (cache_bytes > 0) { |
|
|
|
MarkRegionCaching(memory_device_inter, cache_begin << Memory::YUZU_PAGEBITS, |
|
|
|
cache_bytes, true); |
|
|
|
if (memory_device_inter != nullptr) { |
|
|
|
MarkRegionCaching(memory_device_inter, cache_begin << Memory::YUZU_PAGEBITS, |
|
|
|
cache_bytes, true); |
|
|
|
} |
|
|
|
cache_bytes = 0; |
|
|
|
} |
|
|
|
}; |
|
|
|
|