diff options
author | Squall-Leonhart <danialhorton@hotmail.com> | 2023-10-11 09:19:35 +0200 |
---|---|---|
committer | Squall-Leonhart <danialhorton@hotmail.com> | 2023-10-11 10:12:33 +0200 |
commit | 9512992fe20b352ce265a358ed9bcfd17d9a74fd (patch) | |
tree | 645addf884869abeaf1739a9659d8dad6300b833 | |
parent | Reuse part of my previous idea to to use num_levels to check within AdjustMipBlockSize (diff) | |
download | yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.tar yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.tar.gz yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.tar.bz2 yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.tar.lz yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.tar.xz yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.tar.zst yuzu-9512992fe20b352ce265a358ed9bcfd17d9a74fd.zip |
-rw-r--r-- | src/video_core/texture_cache/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index 0f8ef4277..652097a3d 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp @@ -885,7 +885,7 @@ boost::container::small_vector<BufferImageCopy, 16> UnswizzleImage(Tegra::Memory }; const Extent3D num_tiles = AdjustTileSize(level_size, tile_size); const Extent3D block = - AdjustMipBlockSize(num_tiles, info.block, level, level_info.num_levels); + AdjustMipBlockSize(num_tiles, level_info.block, level, level_info.num_levels); const u32 stride_alignment = StrideAlignment(num_tiles, info.block, gob, bpp_log2); size_t guest_layer_offset = 0; @@ -1062,7 +1062,7 @@ boost::container::small_vector<SwizzleParameters, 16> FullUploadSwizzles(const I const Extent3D level_size = AdjustMipSize(size, level); const Extent3D num_tiles = AdjustTileSize(level_size, tile_size); const Extent3D block = - AdjustMipBlockSize(num_tiles, info.block, level, level_info.num_levels); + AdjustMipBlockSize(num_tiles, level_info.block, level, level_info.num_levels); params[level] = SwizzleParameters{ .num_tiles = num_tiles, .block = block, |