diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-04-14 06:44:16 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:11 +0200 |
commit | fb94871791f78703737125cd2e5a13db8b7d1059 (patch) | |
tree | 774dc3eab1bea643568582fd96ea4d96c4bd824b /src/video_core/texture_cache.cpp | |
parent | gl_texture_cache: Initial implementation (diff) | |
download | yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.gz yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.bz2 yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.lz yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.xz yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.zst yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache.cpp b/src/video_core/texture_cache.cpp index c42365a82..1cfb9962f 100644 --- a/src/video_core/texture_cache.cpp +++ b/src/video_core/texture_cache.cpp @@ -160,7 +160,7 @@ u32 SurfaceParams::GetMipBlockHeight(u32 level) const { // Auto block resizing algorithm from: // https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nv50/nv50_miptree.c if (level == 0) { - return block_height; + return this->block_height; } const u32 height{GetMipHeight(level)}; const u32 default_block_height{GetDefaultBlockHeight()}; @@ -316,7 +316,7 @@ std::size_t SurfaceParams::GetInnerMemorySize(bool as_host_size, bool layer_only size += GetInnerMipmapMemorySize(level, as_host_size, layer_only, uncompressed); } if (is_tiled && !as_host_size) { - size = Common::AlignUp(size, Tegra::Texture::GetGOBSize() * block_height * block_depth); + //size = Common::AlignUp(size, Tegra::Texture::GetGOBSize() * block_height * block_depth); } return size; } |