summaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-04-14 01:44:16 -0300
committerGravatar ReinUsesLisp2019-06-20 21:36:11 -0300
commitfb94871791f78703737125cd2e5a13db8b7d1059 (patch)
tree774dc3eab1bea643568582fd96ea4d96c4bd824b /src/video_core/texture_cache.cpp
parentgl_texture_cache: Initial implementation (diff)
downloadyuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.gz
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.xz
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.zip
gl_texture_cache: Add fast copy path
Diffstat (limited to 'src/video_core/texture_cache.cpp')
-rw-r--r--src/video_core/texture_cache.cpp4
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}