diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-10 09:17:48 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:12 +0200 |
commit | 345e73f2feb0701e3c3099d002a1c21fb524eae4 (patch) | |
tree | c8c934dfec804d04a29f8ee27124274f5f999fb8 /src/video_core/textures/texture.h | |
parent | texture_cache: Change internal cache from lists to vectors (diff) | |
download | yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.tar yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.tar.gz yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.tar.bz2 yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.tar.lz yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.tar.xz yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.tar.zst yuzu-345e73f2feb0701e3c3099d002a1c21fb524eae4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/texture.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 219bfd559..f22b4e7c7 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -219,20 +219,17 @@ struct TICEntry { u32 BlockWidth() const { ASSERT(IsTiled()); - // The block height is stored in log2 format. - return 1 << block_width; + return block_width; } u32 BlockHeight() const { ASSERT(IsTiled()); - // The block height is stored in log2 format. - return 1 << block_height; + return block_height; } u32 BlockDepth() const { ASSERT(IsTiled()); - // The block height is stored in log2 format. - return 1 << block_depth; + return block_depth; } bool IsTiled() const { |