aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/maxwell_dma.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-29 23:20:09 -0800
committerGitHub <noreply@github.com>2020-12-29 23:20:09 -0800
commitd5fe722a30947c5c808717ad8940077e95a3a81c (patch)
treef6f5d6d6379b0404147969e7d1f548ed3d49ca01 /src/video_core/engines/maxwell_dma.cpp
parent85cfd96f62177338de78d5ca6d7fa4eda0a3728b (diff)
parent9764c13d6d2977903f407761b27d847c0056e1c4 (diff)
Merge pull request #4967 from ReinUsesLisp/new-texcache
video_core/texture_cache: Rewrite the texture cache
Diffstat (limited to 'src/video_core/engines/maxwell_dma.cpp')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index 1c29e895e..ba750748c 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -96,6 +96,7 @@ void MaxwellDMA::CopyPitchToPitch() {
}
void MaxwellDMA::CopyBlockLinearToPitch() {
+ UNIMPLEMENTED_IF(regs.src_params.block_size.width != 0);
UNIMPLEMENTED_IF(regs.src_params.block_size.depth != 0);
UNIMPLEMENTED_IF(regs.src_params.layer != 0);
@@ -135,6 +136,8 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
}
void MaxwellDMA::CopyPitchToBlockLinear() {
+ UNIMPLEMENTED_IF_MSG(regs.dst_params.block_size.width != 0, "Block width is not one");
+
const auto& dst_params = regs.dst_params;
const u32 bytes_per_pixel = regs.pitch_in / regs.line_length_in;
const u32 width = dst_params.width;