summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-05 01:27:13 +0200
committerGitHub <noreply@github.com>2022-04-05 01:27:13 +0200
commit119d1692c998291f6617862a98870a67d2ce8851 (patch)
tree0abb9ae160b2a6f16bd9d89f6a9a7490a95290bc /src
parentMerge pull request #8154 from ameerj/unneeded-read-block (diff)
parentRevert "texture_cache/util: Remove unneeded ReadBlockUnsafe" (diff)
downloadyuzu-119d1692c998291f6617862a98870a67d2ce8851.tar
yuzu-119d1692c998291f6617862a98870a67d2ce8851.tar.gz
yuzu-119d1692c998291f6617862a98870a67d2ce8851.tar.bz2
yuzu-119d1692c998291f6617862a98870a67d2ce8851.tar.lz
yuzu-119d1692c998291f6617862a98870a67d2ce8851.tar.xz
yuzu-119d1692c998291f6617862a98870a67d2ce8851.tar.zst
yuzu-119d1692c998291f6617862a98870a67d2ce8851.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp
index 334cb7b05..d8e19cb2f 100644
--- a/src/video_core/texture_cache/util.cpp
+++ b/src/video_core/texture_cache/util.cpp
@@ -561,6 +561,7 @@ void SwizzleBlockLinearImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr
for (s32 layer = 0; layer < info.resources.layers; ++layer) {
const std::span<const u8> src = input.subspan(host_offset);
+ gpu_memory.ReadBlockUnsafe(gpu_addr + guest_offset, dst.data(), dst.size_bytes());
SwizzleTexture(dst, src, bytes_per_block, num_tiles.width, num_tiles.height,
num_tiles.depth, block.height, block.depth);