mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Fix buffer memory tracking in case of composite buffers
This commit is contained in:
parent
fed064931a
commit
131672066a
@ -169,7 +169,7 @@ public:
|
|||||||
func(cpu_addr + pending_offset * BYTES_PER_PAGE,
|
func(cpu_addr + pending_offset * BYTES_PER_PAGE,
|
||||||
(pending_pointer - pending_offset) * BYTES_PER_PAGE);
|
(pending_pointer - pending_offset) * BYTES_PER_PAGE);
|
||||||
};
|
};
|
||||||
IterateWords(offset, size, [&](size_t index, u64 mask) {
|
IterateWords(offset, size - offset, [&](size_t index, u64 mask) {
|
||||||
if constexpr (type == Type::GPU) {
|
if constexpr (type == Type::GPU) {
|
||||||
mask &= ~untracked[index];
|
mask &= ~untracked[index];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user