diff options
| author | 2023-02-26 09:20:12 -0500 | |
|---|---|---|
| committer | 2023-02-26 09:20:12 -0500 | |
| commit | 26c1edf2f083399a594a834bdd36be85369819f7 (patch) | |
| tree | e0d76a17a7c452ed21bb74bcecce8422bab461da /src/video_core/textures/astc.cpp | |
| parent | Merge pull request #9824 from german77/burning-profiles (diff) | |
| parent | configuration: Add async ASTC decode setting (diff) | |
| download | yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.gz yuzu-26c1edf2f083399a594a834bdd36be85369819f7.tar.xz yuzu-26c1edf2f083399a594a834bdd36be85369819f7.zip | |
Merge pull request #9849 from ameerj/async-astc
texture_cache: Add asynchronous ASTC texture decoding
Diffstat (limited to 'src/video_core/textures/astc.cpp')
| -rw-r--r-- | src/video_core/textures/astc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index e8d7c7863..4381eed1d 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp | |||
| @@ -1656,8 +1656,8 @@ void Decompress(std::span<const uint8_t> data, uint32_t width, uint32_t height, | |||
| 1656 | const u32 rows = Common::DivideUp(height, block_height); | 1656 | const u32 rows = Common::DivideUp(height, block_height); |
| 1657 | const u32 cols = Common::DivideUp(width, block_width); | 1657 | const u32 cols = Common::DivideUp(width, block_width); |
| 1658 | 1658 | ||
| 1659 | Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2, | 1659 | static Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2, |
| 1660 | "ASTCDecompress"}; | 1660 | "ASTCDecompress"}; |
| 1661 | 1661 | ||
| 1662 | for (u32 z = 0; z < depth; ++z) { | 1662 | for (u32 z = 0; z < depth; ++z) { |
| 1663 | const u32 depth_offset = z * height * width * 4; | 1663 | const u32 depth_offset = z * height * width * 4; |