summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_dma.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-27 02:14:10 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:56:41 +0100
commiteed789d0d134fbeef1c16f9829b5c1b4b7dabb17 (patch)
tree4a7dba754df1a71c29de64cfaab34b56b0d72dff /src/video_core/engines/maxwell_dma.cpp
parentgl_state: Remove completely (diff)
downloadyuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.tar
yuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.tar.gz
yuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.tar.bz2
yuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.tar.lz
yuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.tar.xz
yuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.tar.zst
yuzu-eed789d0d134fbeef1c16f9829b5c1b4b7dabb17.zip
Diffstat (limited to '')
-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,