summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-06-04 00:52:40 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commitc736b9ffabc8a869d8ed131d365aff21b049f751 (patch)
tree79f29b036c859591e1173e234386e6ed5cf1b605 /src
parentvk_swapchain: Handle outdated swapchains (diff)
downloadyuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.tar
yuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.tar.gz
yuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.tar.bz2
yuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.tar.lz
yuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.tar.xz
yuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.tar.zst
yuzu-c736b9ffabc8a869d8ed131d365aff21b049f751.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index c51776466..c7ec1eac9 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -127,7 +127,8 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
// Optimized path for micro copies.
const size_t dst_size = static_cast<size_t>(regs.pitch_out) * regs.line_count;
- if (dst_size < GOB_SIZE && regs.pitch_out <= GOB_SIZE_X) {
+ if (dst_size < GOB_SIZE && regs.pitch_out <= GOB_SIZE_X &&
+ regs.src_params.height > GOB_SIZE_Y) {
FastCopyBlockLinearToPitch();
return;
}