Explorar o código

DMA: Restrict optimised path for BlockToLinear further.

FernandoS27 %!s(int64=5) %!d(string=hai) anos
pai
achega
c736b9ffab
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/video_core/engines/maxwell_dma.cpp

+ 2 - 1
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;
     }