aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/surface_params.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-14 08:41:06 -0400
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-14 12:00:32 -0400
commit3cf88515675778294d20c79bfd07214b407aeaf0 (patch)
treef8ef9261aa047c70f0dd5205edb9fecb5f0b8f96 /src/video_core/texture_cache/surface_params.cpp
parent5e7b10ec498fe4ac74fc307243c17ef9edbe819d (diff)
Texture_Cache: Remove some unprecise fallback case and clang format
Diffstat (limited to 'src/video_core/texture_cache/surface_params.cpp')
-rw-r--r--src/video_core/texture_cache/surface_params.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp
index df92608599..33c94daa89 100644
--- a/src/video_core/texture_cache/surface_params.cpp
+++ b/src/video_core/texture_cache/surface_params.cpp
@@ -294,13 +294,14 @@ std::size_t SurfaceParams::GetInnerMipmapMemorySize(u32 level, bool as_host_size
const u32 height{GetMipmapSize(uncompressed, GetMipHeight(level), GetDefaultBlockHeight())};
const u32 depth{is_layered ? 1U : GetMipDepth(level)};
if (is_tiled) {
- return Tegra::Texture::CalculateSize(!as_host_size, GetBytesPerPixel(), width, height, depth,
- GetMipBlockHeight(level), GetMipBlockDepth(level));
+ return Tegra::Texture::CalculateSize(!as_host_size, GetBytesPerPixel(), width, height,
+ depth, GetMipBlockHeight(level),
+ GetMipBlockDepth(level));
} else {
if (as_host_size || IsBuffer()) {
- return GetBytesPerPixel()*width*height*depth;
+ return GetBytesPerPixel() * width * height * depth;
} else {
- return pitch*height*depth;
+ return pitch * height * depth;
}
}
}