diff options
| author | 2021-06-13 15:15:08 -0400 | |
|---|---|---|
| committer | 2021-06-15 20:19:00 -0400 | |
| commit | c4ff7ecf511edb8adc2f2d8eff9d51212a87dc6b (patch) | |
| tree | 1d8b154c9e2ab468af6f867be6fe93a632a50428 /src/video_core/textures/astc.h | |
| parent | Merge pull request #6470 from ameerj/lm-silence (diff) | |
| download | yuzu-c4ff7ecf511edb8adc2f2d8eff9d51212a87dc6b.tar.gz yuzu-c4ff7ecf511edb8adc2f2d8eff9d51212a87dc6b.tar.xz yuzu-c4ff7ecf511edb8adc2f2d8eff9d51212a87dc6b.zip | |
textures: Reintroduce CPU ASTC decoder
Users may want to fall back to the CPU ASTC texture decoder due to hangs
and crashes that may be caused by keeping the GPU under compute heavy
loads for extended periods of time. This is especially the case in games
such as Astral Chain which make extensive use of ASTC textures.
Diffstat (limited to 'src/video_core/textures/astc.h')
| -rw-r--r-- | src/video_core/textures/astc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/textures/astc.h b/src/video_core/textures/astc.h index c1c73fda5..c1c37dfe7 100644 --- a/src/video_core/textures/astc.h +++ b/src/video_core/textures/astc.h | |||
| @@ -129,4 +129,7 @@ struct AstcBufferData { | |||
| 129 | decltype(REPLICATE_BYTE_TO_16_TABLE) replicate_byte_to_16 = REPLICATE_BYTE_TO_16_TABLE; | 129 | decltype(REPLICATE_BYTE_TO_16_TABLE) replicate_byte_to_16 = REPLICATE_BYTE_TO_16_TABLE; |
| 130 | } constexpr ASTC_BUFFER_DATA; | 130 | } constexpr ASTC_BUFFER_DATA; |
| 131 | 131 | ||
| 132 | void Decompress(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth, | ||
| 133 | uint32_t block_width, uint32_t block_height, std::span<uint8_t> output); | ||
| 134 | |||
| 132 | } // namespace Tegra::Texture::ASTC | 135 | } // namespace Tegra::Texture::ASTC |