summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/util.cpp
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-10-11 11:56:47 +0200
committerGitHub <noreply@github.com>2023-10-11 11:56:47 +0200
commitb6d19329ac710f82c424b433dcd108adad3da9b1 (patch)
tree0c1518bafbd3500465985cf59eb8a9ab9209527e /src/video_core/texture_cache/util.cpp
parentMerge pull request #11534 from Squall-Leonhart/IFREMOVED (diff)
parentFix mistaken usage of info.block instead of level_info.block (diff)
downloadyuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.tar
yuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.tar.gz
yuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.tar.bz2
yuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.tar.lz
yuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.tar.xz
yuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.tar.zst
yuzu-b6d19329ac710f82c424b433dcd108adad3da9b1.zip
Diffstat (limited to 'src/video_core/texture_cache/util.cpp')
-rw-r--r--src/video_core/texture_cache/util.cpp4
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 2e8160db0..8151cabf0 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,