diff options
| author | 2020-04-19 13:27:56 -0400 | |
|---|---|---|
| committer | 2020-04-22 11:36:25 -0400 | |
| commit | 1b3be8a8f86f0315004a4c60ef1828ba09f48b32 (patch) | |
| tree | 357300d0e3cfae36610bc7c95b09aee39ef2e538 /src/video_core | |
| parent | ShaderCache/PipelineCache: Cache null shaders. (diff) | |
| download | yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.gz yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.tar.xz yuzu-1b3be8a8f86f0315004a4c60ef1828ba09f48b32.zip | |
MaxwellDMA: Correct copying on accuracy level.
Diffstat (limited to 'src/video_core')
| -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 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() { | |||
| 104 | write_buffer.resize(dst_size); | 104 | write_buffer.resize(dst_size); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | memory_manager.ReadBlock(source, read_buffer.data(), src_size); | 107 | if (Settings::IsGPULevelExtreme()) { |
| 108 | memory_manager.ReadBlock(dest, write_buffer.data(), dst_size); | 108 | memory_manager.ReadBlock(source, read_buffer.data(), src_size); |
| 109 | memory_manager.ReadBlock(dest, write_buffer.data(), dst_size); | ||
| 110 | } else { | ||
| 111 | memory_manager.ReadBlockUnsafe(source, read_buffer.data(), src_size); | ||
| 112 | memory_manager.ReadBlockUnsafe(dest, write_buffer.data(), dst_size); | ||
| 113 | } | ||
| 109 | 114 | ||
| 110 | Texture::UnswizzleSubrect( | 115 | Texture::UnswizzleSubrect( |
| 111 | regs.x_count, regs.y_count, regs.dst_pitch, regs.src_params.size_x, bytes_per_pixel, | 116 | regs.x_count, regs.y_count, regs.dst_pitch, regs.src_params.size_x, bytes_per_pixel, |