diff options
| author | 2019-04-11 17:14:55 -0300 | |
|---|---|---|
| committer | 2019-06-20 21:36:11 -0300 | |
| commit | bab21e8cb3df9c06e3c0a37a8fc68fed676f5d6e (patch) | |
| tree | 860ce1a40373ff6002506bef72f78022de7d022c /src/video_core/textures/decoders.cpp | |
| parent | Merge pull request #2596 from FernandoS27/revert-2590 (diff) | |
| download | yuzu-bab21e8cb3df9c06e3c0a37a8fc68fed676f5d6e.tar.gz yuzu-bab21e8cb3df9c06e3c0a37a8fc68fed676f5d6e.tar.xz yuzu-bab21e8cb3df9c06e3c0a37a8fc68fed676f5d6e.zip | |
gl_texture_cache: Initial implementation
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
| -rw-r--r-- | src/video_core/textures/decoders.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index 217805386..664ed4b56 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp | |||
| @@ -359,7 +359,8 @@ std::size_t CalculateSize(bool tiled, u32 bytes_per_pixel, u32 width, u32 height | |||
| 359 | const u32 aligned_width = Common::AlignUp(width * bytes_per_pixel, gob_size_x); | 359 | const u32 aligned_width = Common::AlignUp(width * bytes_per_pixel, gob_size_x); |
| 360 | const u32 aligned_height = Common::AlignUp(height, gob_size_y * block_height); | 360 | const u32 aligned_height = Common::AlignUp(height, gob_size_y * block_height); |
| 361 | const u32 aligned_depth = Common::AlignUp(depth, gob_size_z * block_depth); | 361 | const u32 aligned_depth = Common::AlignUp(depth, gob_size_z * block_depth); |
| 362 | return aligned_width * aligned_height * aligned_depth; | 362 | const u32 size = aligned_width * aligned_height * aligned_depth; |
| 363 | return size; | ||
| 363 | } else { | 364 | } else { |
| 364 | return width * height * depth * bytes_per_pixel; | 365 | return width * height * depth * bytes_per_pixel; |
| 365 | } | 366 | } |