yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Revert "texture_cache/util: Remove unneeded ReadBlockUnsafe"

This commit is contained in:
bunnei 2022-04-04 16:26:53 -07:00 committed by GitHub
parent c7f3c2cedf
commit 02473ea7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);