summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-28 02:50:08 +0100
committerGitHub <noreply@github.com>2019-02-28 02:50:08 +0100
commitf15e2dd88112ef6927845f6685c87adf38dccf41 (patch)
tree474b03803432e2824233b368664f2b53ca783ef4 /src/video_core/engines/maxwell_3d.h
parentSpeed up memory page mapping (#2141) (diff)
parentmaxwell_3d: Use std::bitset to manage dirty flags (diff)
downloadyuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.tar
yuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.tar.gz
yuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.tar.bz2
yuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.tar.lz
yuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.tar.xz
yuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.tar.zst
yuzu-f15e2dd88112ef6927845f6685c87adf38dccf41.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r--src/video_core/engines/maxwell_3d.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 584f51c48..7fbf1026e 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -5,8 +5,10 @@
#pragma once
#include <array>
+#include <bitset>
#include <unordered_map>
#include <vector>
+
#include "common/assert.h"
#include "common/bit_field.h"
#include "common/common_funcs.h"
@@ -1094,19 +1096,18 @@ public:
MemoryManager& memory_manager;
struct DirtyFlags {
- u8 color_buffer = 0xFF;
- bool zeta_buffer = true;
-
- bool shaders = true;
+ std::bitset<8> color_buffer{0xFF};
+ std::bitset<32> vertex_array{0xFFFFFFFF};
bool vertex_attrib_format = true;
- u32 vertex_array = 0xFFFFFFFF;
+ bool zeta_buffer = true;
+ bool shaders = true;
void OnMemoryWrite() {
- color_buffer = 0xFF;
zeta_buffer = true;
shaders = true;
- vertex_array = 0xFFFFFFFF;
+ color_buffer.set();
+ vertex_array.set();
}
};