yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

buffer_cache: Only flush downloaded size

Fixes a regression unintentionally introduced by the garbage collector.
This makes regular memory downloads only flush the requested sizes.

This negatively affected Koei Tecmo games.
This commit is contained in:
ReinUsesLisp 2021-06-25 02:43:01 -03:00
parent 03abe8bf85
commit 9476309d53
1 changed files with 3 additions and 2 deletions

View File

@ -416,8 +416,9 @@ void BufferCache<P>::CachedWriteMemory(VAddr cpu_addr, u64 size) {
template <class P>
void BufferCache<P>::DownloadMemory(VAddr cpu_addr, u64 size) {
ForEachBufferInRange(cpu_addr, size,
[&](BufferId, Buffer& buffer) { DownloadBufferMemory(buffer); });
ForEachBufferInRange(cpu_addr, size, [&](BufferId, Buffer& buffer) {
DownloadBufferMemory(buffer, cpu_addr, size);
});
}
template <class P>