mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fixup GCM unmap event sending
This commit is contained in:
parent
17e78a9e6f
commit
0e31aafc09
@ -3543,9 +3543,11 @@ namespace rsx
|
|||||||
hle_lock = std::unique_lock{cfg.gcmio_mutex};
|
hle_lock = std::unique_lock{cfg.gcmio_mutex};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int bit = 0;
|
||||||
|
|
||||||
while (to_unmap)
|
while (to_unmap)
|
||||||
{
|
{
|
||||||
const int bit = (std::countr_zero<u64>(utils::rol64(to_unmap, 0 - bit)) + bit);
|
bit = (std::countr_zero<u64>(utils::rol64(to_unmap, 0 - bit)) + bit);
|
||||||
to_unmap &= ~(1ull << bit);
|
to_unmap &= ~(1ull << bit);
|
||||||
|
|
||||||
constexpr u16 null_entry = 0xFFFF;
|
constexpr u16 null_entry = 0xFFFF;
|
||||||
|
Loading…
Reference in New Issue
Block a user