2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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

View file

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