diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2023-05-24 03:55:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-24 03:55:45 +0200 |
| commit | 178e8a6b0e72b2159bdbebeef818fe8d5cb6c668 (patch) | |
| tree | 442b586dc2ead257e4411101b05a06298c97e423 /src/video_core/textures/astc.cpp | |
| parent | a496e853ff6904442989cdee56d62e3d66c3b130 (diff) | |
| parent | 011dfe1db7d7912e93da90e66df3cbae83b351d3 (diff) | |
Merge pull request #10398 from liamwhite/bcn
video_core: add ASTC recompression
Diffstat (limited to 'src/video_core/textures/astc.cpp')
| -rw-r--r-- | src/video_core/textures/astc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index a68bc0d775..fef0be31d8 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -16,8 +16,8 @@ #include "common/alignment.h" #include "common/common_types.h" #include "common/polyfill_ranges.h" -#include "common/thread_worker.h" #include "video_core/textures/astc.h" +#include "video_core/textures/workers.h" class InputBitStream { public: @@ -1656,8 +1656,7 @@ void Decompress(std::span<const uint8_t> data, uint32_t width, uint32_t height, const u32 rows = Common::DivideUp(height, block_height); const u32 cols = Common::DivideUp(width, block_width); - static Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2, - "ASTCDecompress"}; + Common::ThreadWorker& workers{GetThreadWorkers()}; for (u32 z = 0; z < depth; ++z) { const u32 depth_offset = z * height * width * 4; |
