summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-07-14 16:44:53 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-07-14 16:44:53 +0200
commit495b8e31b55ac7617c19d8dec216b1e08f415a2f (patch)
tree3a9a689179390dbb45fffc68ae44451d8e1f7738 /src/video_core/engines
parentBufferCache: fix clearing on forced download. (diff)
downloadyuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.tar
yuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.tar.gz
yuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.tar.bz2
yuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.tar.lz
yuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.tar.xz
yuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.tar.zst
yuzu-495b8e31b55ac7617c19d8dec216b1e08f415a2f.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index 81becb88a..0ae6692f9 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -181,8 +181,13 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
write_buffer.resize(dst_size);
}
- memory_manager.ReadBlock(regs.offset_in, read_buffer.data(), src_size);
- memory_manager.ReadBlock(regs.offset_out, write_buffer.data(), dst_size);
+ if (Settings::IsGPULevelExtreme()) {
+ memory_manager.ReadBlock(regs.offset_in, read_buffer.data(), src_size);
+ memory_manager.ReadBlock(regs.offset_out, write_buffer.data(), dst_size);
+ } else {
+ memory_manager.ReadBlockUnsafe(regs.offset_in, read_buffer.data(), src_size);
+ memory_manager.ReadBlockUnsafe(regs.offset_out, write_buffer.data(), dst_size);
+ }
// If the input is linear and the output is tiled, swizzle the input and copy it over.
if (regs.dst_params.block_size.depth > 0) {