aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/maxwell_dma.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-26 22:14:10 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 17:56:41 -0300
commiteed789d0d134fbeef1c16f9829b5c1b4b7dabb17 (patch)
tree4a7dba754df1a71c29de64cfaab34b56b0d72dff /src/video_core/engines/maxwell_dma.cpp
parentb92dfcd7f2a03b04a1d6090d7dd2684986f7adee (diff)
video_core: Reintroduce dirty flags infrastructure
Diffstat (limited to 'src/video_core/engines/maxwell_dma.cpp')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index ae51765a6..c2610f992 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -56,6 +56,9 @@ void MaxwellDMA::HandleCopy() {
return;
}
+ // All copies here update the main memory, so mark all rasterizer states as invalid.
+ system.GPU().Maxwell3D().OnMemoryWrite();
+
if (regs.exec.is_dst_linear && regs.exec.is_src_linear) {
// When the enable_2d bit is disabled, the copy is performed as if we were copying a 1D
// buffer of length `x_count`, otherwise we copy a 2D image of dimensions (x_count,