mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 15:07:06 +02:00
Sync modified buffer uploads
This commit is contained in:
parent
4a11d5db2f
commit
33e5e4400b
1 changed files with 3 additions and 0 deletions
|
|
@ -1635,6 +1635,9 @@ bool BufferCache<P>::SynchronizeBuffer(Buffer& buffer, DAddr device_addr, u32 si
|
|||
if (total_size_bytes == 0) {
|
||||
return true;
|
||||
}
|
||||
if (memory_tracker.IsRegionGpuModified(device_addr, size)) {
|
||||
DownloadBufferMemory(buffer, device_addr, size);
|
||||
}
|
||||
const std::span<BufferCopy> copies_span(upload_copies.data(), upload_copies.size());
|
||||
UploadMemory(buffer, total_size_bytes, largest_copy, copies_span);
|
||||
any_buffer_uploaded = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue