mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
clang.-format
This commit is contained in:
parent
5740edfc47
commit
e50b94183f
@ -140,8 +140,7 @@ void BufferCache::InvalidateMemory(VAddr device_addr, u64 size, bool unmap) {
|
|||||||
// This is a temporary workaround...
|
// 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, 4_KB);
|
const VAddr aligned_addr = Common::AlignDown(device_addr, 4_KB);
|
||||||
const u64 aligned_size =
|
const u64 aligned_size = Common::AlignUp(device_addr + size, 4_KB) - aligned_addr;
|
||||||
Common::AlignUp(device_addr + size, 4_KB) - aligned_addr;
|
|
||||||
dma_sync_ranges.Add(aligned_addr, aligned_size);
|
dma_sync_ranges.Add(aligned_addr, aligned_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user