aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-20 14:06:26 -0500
committerGitHub <noreply@github.com>2019-01-20 14:06:26 -0500
commit197d0d9d2408e608909b32dfa057791215d42c77 (patch)
tree5b37be4dc4e4e1bac75529e2b238b1b6d0ecde47 /src/video_core/engines/maxwell_3d.h
parentcbf8bea9d570d0207b7bc8d63b73109f2df059d5 (diff)
parent19cf9952252fc0f9c31037676b56b6d7716ffd2f (diff)
Merge pull request #2008 from ReinUsesLisp/dirty-framebuffers
gl_rasterizer_cache: Use dirty flags for framebuffers
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r--src/video_core/engines/maxwell_3d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index d50e5a126..1f76aa670 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -1089,12 +1089,17 @@ public:
MemoryManager& memory_manager;
struct DirtyFlags {
+ u8 color_buffer = 0xFF;
+ bool zeta_buffer = true;
+
bool shaders = true;
bool vertex_attrib_format = true;
u32 vertex_array = 0xFFFFFFFF;
void OnMemoryWrite() {
+ color_buffer = 0xFF;
+ zeta_buffer = true;
shaders = true;
vertex_array = 0xFFFFFFFF;
}