From 494c41dd5a2638342637bb296e47114fbf70f67c Mon Sep 17 00:00:00 2001 From: ameerj <52414509+ameerj@users.noreply.github.com> Date: Mon, 4 Apr 2022 15:57:54 -0400 Subject: texture_cache/util: Remove unneeded ReadBlockUnsafe This call was reading GPU memory into the dst buffer, which is then overwritten by the SwizzleTexture call. --- src/video_core/texture_cache/util.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index d8e19cb2f..334cb7b05 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp @@ -561,7 +561,6 @@ 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