summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-06-13 22:41:16 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-21 02:38:34 +0200
commit7232a1ed16e46715c29d781fb143bdf799090bec (patch)
treeb3be910260ee9c0e3eb67fa007f81c9296a60d72 /src/video_core/engines
parenttexture_cache: Use siblings textures on Rebuild and fix possible error on blitting (diff)
downloadyuzu-7232a1ed16e46715c29d781fb143bdf799090bec.tar
yuzu-7232a1ed16e46715c29d781fb143bdf799090bec.tar.gz
yuzu-7232a1ed16e46715c29d781fb143bdf799090bec.tar.bz2
yuzu-7232a1ed16e46715c29d781fb143bdf799090bec.tar.lz
yuzu-7232a1ed16e46715c29d781fb143bdf799090bec.tar.xz
yuzu-7232a1ed16e46715c29d781fb143bdf799090bec.tar.zst
yuzu-7232a1ed16e46715c29d781fb143bdf799090bec.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/engine_upload.cpp2
-rw-r--r--src/video_core/engines/engine_upload.h6
-rw-r--r--src/video_core/engines/fermi_2d.h6
-rw-r--r--src/video_core/engines/maxwell_dma.cpp2
-rw-r--r--src/video_core/engines/maxwell_dma.h4
5 files changed, 10 insertions, 10 deletions
diff --git a/src/video_core/engines/engine_upload.cpp b/src/video_core/engines/engine_upload.cpp
index c776b9a56..d44ad0cd8 100644
--- a/src/video_core/engines/engine_upload.cpp
+++ b/src/video_core/engines/engine_upload.cpp
@@ -39,7 +39,7 @@ void State::ProcessData(const u32 data, const bool is_last_call) {
UNIMPLEMENTED_IF(regs.dest.BlockWidth() != 0);
UNIMPLEMENTED_IF(regs.dest.BlockDepth() != 0);
const std::size_t dst_size = Tegra::Texture::CalculateSize(
- true, 1, regs.dest.width, regs.dest.height, 1, regs.dest.BlockHeight(), 1);
+ true, 1, regs.dest.width, regs.dest.height, 1, regs.dest.BlockHeight(), 0);
tmp_buffer.resize(dst_size);
memory_manager.ReadBlock(address, tmp_buffer.data(), dst_size);
Tegra::Texture::SwizzleKepler(regs.dest.width, regs.dest.height, regs.dest.x, regs.dest.y,
diff --git a/src/video_core/engines/engine_upload.h b/src/video_core/engines/engine_upload.h
index cb294aec3..462da419e 100644
--- a/src/video_core/engines/engine_upload.h
+++ b/src/video_core/engines/engine_upload.h
@@ -39,15 +39,15 @@ struct Registers {
}
u32 BlockWidth() const {
- return block_width;
+ return block_width.Value();
}
u32 BlockHeight() const {
- return block_height;
+ return block_height.Value();
}
u32 BlockDepth() const {
- return block_depth;
+ return block_depth.Value();
}
} dest;
};
diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.h
index 0a4c7c5ad..05421d185 100644
--- a/src/video_core/engines/fermi_2d.h
+++ b/src/video_core/engines/fermi_2d.h
@@ -84,15 +84,15 @@ public:
}
u32 BlockWidth() const {
- return block_width;
+ return block_width.Value();
}
u32 BlockHeight() const {
- return block_height;
+ return block_height.Value();
}
u32 BlockDepth() const {
- return block_depth;
+ return block_depth.Value();
}
};
static_assert(sizeof(Surface) == 0x28, "Surface has incorrect size");
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index afb9578d0..3a5dfef0c 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -111,7 +111,7 @@ void MaxwellDMA::HandleCopy() {
memory_manager.WriteBlock(dest, write_buffer.data(), dst_size);
} else {
- ASSERT(regs.dst_params.BlockDepth() == 0);
+ ASSERT(regs.dst_params.BlockDepth() == 1);
const u32 src_bytes_per_pixel = regs.src_pitch / regs.x_count;
diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.h
index 522fa97dc..17b015ca7 100644
--- a/src/video_core/engines/maxwell_dma.h
+++ b/src/video_core/engines/maxwell_dma.h
@@ -59,11 +59,11 @@ public:
};
u32 BlockHeight() const {
- return block_height;
+ return block_height.Value();
}
u32 BlockDepth() const {
- return block_depth;
+ return block_depth.Value();
}
};