mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 04:25:45 +00:00
maxwell_3d: Change write dirty flags to a bitset
This commit is contained in:
parent
8798448c7b
commit
e94ea8758d
3 changed files with 16 additions and 16 deletions
|
@ -1273,9 +1273,7 @@ public:
|
|||
|
||||
/// Notify a memory write has happened.
|
||||
void OnMemoryWrite() {
|
||||
for (const u8 store : dirty.on_write_stores) {
|
||||
dirty.flags[store] = true;
|
||||
}
|
||||
dirty.flags |= dirty.on_write_stores;
|
||||
}
|
||||
|
||||
enum class MMEDrawMode : u32 {
|
||||
|
@ -1295,8 +1293,8 @@ public:
|
|||
|
||||
struct {
|
||||
std::bitset<std::numeric_limits<u8>::max()> flags;
|
||||
std::bitset<std::numeric_limits<u8>::max()> on_write_stores;
|
||||
std::array<std::array<u8, Regs::NUM_REGS>, 3> tables{};
|
||||
std::array<u8, 32> on_write_stores{};
|
||||
} dirty;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue