diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-14 16:44:53 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-14 16:44:53 +0200 |
commit | 495b8e31b55ac7617c19d8dec216b1e08f415a2f (patch) | |
tree | 3a9a689179390dbb45fffc68ae44451d8e1f7738 | |
parent | BufferCache: fix clearing on forced download. (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/video_core/engines/maxwell_dma.cpp | 9 |
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) { |