summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-05-07 00:18:00 +0200
committerLiam <byteslice@airmail.cc>2022-05-07 00:18:00 +0200
commit4f1a2c2562914fc05d94be9812fbcb2c69606429 (patch)
treeb054a265eaabf6bdf8a359698cba7b7ba08591b4 /src
parentMerge pull request #8300 from Morph1984/resultval-range (diff)
downloadyuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.tar
yuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.tar.gz
yuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.tar.bz2
yuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.tar.lz
yuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.tar.xz
yuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.tar.zst
yuzu-4f1a2c2562914fc05d94be9812fbcb2c69606429.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index 76e8bc656..3eb7cc596 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -134,7 +134,7 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
// Deswizzle the input and copy it over.
UNIMPLEMENTED_IF(regs.launch_dma.remap_enable != 0);
- const u32 bytes_per_pixel = regs.pitch_out / regs.line_length_in;
+ const u32 bytes_per_pixel = 1;
const Parameters& src_params = regs.src_params;
const u32 width = src_params.width;
const u32 height = src_params.height;
@@ -166,7 +166,7 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
UNIMPLEMENTED_IF(regs.launch_dma.remap_enable != 0);
const auto& dst_params = regs.dst_params;
- const u32 bytes_per_pixel = regs.pitch_in / regs.line_length_in;
+ const u32 bytes_per_pixel = 1;
const u32 width = dst_params.width;
const u32 height = dst_params.height;
const u32 depth = dst_params.depth;
@@ -210,7 +210,7 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
}
void MaxwellDMA::FastCopyBlockLinearToPitch() {
- const u32 bytes_per_pixel = regs.pitch_out / regs.line_length_in;
+ const u32 bytes_per_pixel = 1;
const size_t src_size = GOB_SIZE;
const size_t dst_size = static_cast<size_t>(regs.pitch_out) * regs.line_count;
u32 pos_x = regs.src_params.origin.x;