summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-19 19:27:56 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-22 17:36:25 +0200
commit1b3be8a8f86f0315004a4c60ef1828ba09f48b32 (patch)
tree357300d0e3cfae36610bc7c95b09aee39ef2e538
parentShaderCache/PipelineCache: Cache null shaders. (diff)
downloadyuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar
yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.gz
yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.bz2
yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.lz
yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.xz
yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.zst
yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.zip
-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 32b04e31e..3bfed6ab8 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -104,8 +104,13 @@ void MaxwellDMA::HandleCopy() {
write_buffer.resize(dst_size);
}
- memory_manager.ReadBlock(source, read_buffer.data(), src_size);
- memory_manager.ReadBlock(dest, write_buffer.data(), dst_size);
+ if (Settings::IsGPULevelExtreme()) {
+ memory_manager.ReadBlock(source, read_buffer.data(), src_size);
+ memory_manager.ReadBlock(dest, write_buffer.data(), dst_size);
+ } else {
+ memory_manager.ReadBlockUnsafe(source, read_buffer.data(), src_size);
+ memory_manager.ReadBlockUnsafe(dest, write_buffer.data(), dst_size);
+ }
Texture::UnswizzleSubrect(
regs.x_count, regs.y_count, regs.dst_pitch, regs.src_params.size_x, bytes_per_pixel,