diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-05 04:00:24 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-08 08:53:38 +0200 |
commit | ce8291f6c5a7e0dba5e7d72e94de06bf4423d539 (patch) | |
tree | 2012ec97e3014c2fb9e3df67d9c39545c131ddd4 /src/video_core/textures | |
parent | gl_rasterizer_cache: Remove impl. of FlushGLBuffer. (diff) | |
download | yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.tar yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.tar.gz yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.tar.bz2 yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.tar.lz yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.tar.xz yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.tar.zst yuzu-ce8291f6c5a7e0dba5e7d72e94de06bf4423d539.zip |
Diffstat (limited to 'src/video_core/textures')
-rw-r--r-- | src/video_core/textures/texture.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index c6bd2f4b9..c2fb824b2 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -170,8 +170,12 @@ struct TICEntry { BitField<0, 16, u32> width_minus_1; BitField<23, 4, TextureType> texture_type; }; - u16 height_minus_1; - INSERT_PADDING_BYTES(10); + union { + BitField<0, 16, u32> height_minus_1; + BitField<16, 15, u32> depth_minus_1; + }; + + INSERT_PADDING_BYTES(8); GPUVAddr Address() const { return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) | address_low); @@ -192,6 +196,10 @@ struct TICEntry { return height_minus_1 + 1; } + u32 Depth() const { + return depth_minus_1 + 1; + } + u32 BlockHeight() const { ASSERT(header_version == TICHeaderVersion::BlockLinear || header_version == TICHeaderVersion::BlockLinearColorKey); |