diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-21 05:19:07 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:43 +0100 |
commit | 042256c6bbbe27a71805aa2dabe2cac436134b3d (patch) | |
tree | d2e6d12541b9f165e8ee5123205d2b7861b73c96 /src/video_core/engines/maxwell_3d.h | |
parent | vk_state_tracker: Implement dirty flags for stencil properties (diff) | |
download | yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.tar yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.tar.gz yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.tar.bz2 yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.tar.lz yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.tar.xz yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.tar.zst yuzu-042256c6bbbe27a71805aa2dabe2cac436134b3d.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 3ff6dec75..491cff370 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -1291,10 +1291,14 @@ public: u32 gl_end_count{}; } mme_draw; - 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>, 2> tables{}; + struct DirtyState { + using Flags = std::bitset<std::numeric_limits<u8>::max()>; + using Table = std::array<u8, Regs::NUM_REGS>; + using Tables = std::array<Table, 2>; + + Flags flags; + Flags on_write_stores; + Tables tables{}; } dirty; private: |