mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Updated temporary workaround to use 4k pages
This commit is contained in:
parent
b684dbd7a7
commit
5740edfc47
@ -137,11 +137,12 @@ void BufferCache::InvalidateMemory(VAddr device_addr, u64 size, bool unmap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
// This is a temporary workaround...
|
||||||
std::scoped_lock lock(dma_sync_ranges_mutex);
|
std::scoped_lock lock(dma_sync_ranges_mutex);
|
||||||
const VAddr aligned_addr = Common::AlignDown(device_addr, CACHING_PAGESIZE);
|
const VAddr aligned_addr = Common::AlignDown(device_addr, 4_KB);
|
||||||
const u64 aligned_size =
|
const u64 aligned_size =
|
||||||
Common::AlignUp(device_addr + size, CACHING_PAGESIZE) - aligned_addr;
|
Common::AlignUp(device_addr + size, 4_KB) - aligned_addr;
|
||||||
dma_sync_ranges.Add(device_addr, size);
|
dma_sync_ranges.Add(aligned_addr, aligned_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user