diff options
Diffstat (limited to 'src/video_core/texture_cache.cpp')
| -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 { | |||
| 160 | // Auto block resizing algorithm from: | 160 | // Auto block resizing algorithm from: |
| 161 | // https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nv50/nv50_miptree.c | 161 | // https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nv50/nv50_miptree.c |
| 162 | if (level == 0) { | 162 | if (level == 0) { |
| 163 | return block_height; | 163 | return this->block_height; |
| 164 | } | 164 | } |
| 165 | const u32 height{GetMipHeight(level)}; | 165 | const u32 height{GetMipHeight(level)}; |
| 166 | const u32 default_block_height{GetDefaultBlockHeight()}; | 166 | const u32 default_block_height{GetDefaultBlockHeight()}; |
| @@ -316,7 +316,7 @@ std::size_t SurfaceParams::GetInnerMemorySize(bool as_host_size, bool layer_only | |||
| 316 | size += GetInnerMipmapMemorySize(level, as_host_size, layer_only, uncompressed); | 316 | size += GetInnerMipmapMemorySize(level, as_host_size, layer_only, uncompressed); |
| 317 | } | 317 | } |
| 318 | if (is_tiled && !as_host_size) { | 318 | if (is_tiled && !as_host_size) { |
| 319 | size = Common::AlignUp(size, Tegra::Texture::GetGOBSize() * block_height * block_depth); | 319 | //size = Common::AlignUp(size, Tegra::Texture::GetGOBSize() * block_height * block_depth); |
| 320 | } | 320 | } |
| 321 | return size; | 321 | return size; |
| 322 | } | 322 | } |