From 02473ea7d5ecad04f411702c674438cac9898e95 Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 4 Apr 2022 16:26:53 -0700 Subject: Revert "texture_cache/util: Remove unneeded ReadBlockUnsafe" --- src/video_core/texture_cache/util.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 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); -- cgit v1.2.3