diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 16:45:40 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 16:45:40 +0200 |
commit | 1a49991676fa3311cb2efdfd4f250a0f63063d5f (patch) | |
tree | fc4638c6128890246ab6dc65215c0df025a873ee /src/video_core/texture_cache | |
parent | Merge pull request #9013 from liamwhite/spinning-a-yarn (diff) | |
download | yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.gz yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.bz2 yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.lz yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.xz yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.zst yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.zip |
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r-- | src/video_core/texture_cache/format_lookup_table.cpp | 4 | ||||
-rw-r--r-- | src/video_core/texture_cache/formatter.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp index 1412aa076..c71694d2a 100644 --- a/src/video_core/texture_cache/format_lookup_table.cpp +++ b/src/video_core/texture_cache/format_lookup_table.cpp @@ -208,6 +208,10 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red, return PixelFormat::ASTC_2D_6X6_SRGB; case Hash(TextureFormat::ASTC_2D_10X6, UNORM, LINEAR): return PixelFormat::ASTC_2D_10X6_UNORM; + case Hash(TextureFormat::ASTC_2D_10X5, UNORM, LINEAR): + return PixelFormat::ASTC_2D_10X5_UNORM; + case Hash(TextureFormat::ASTC_2D_10X5, UNORM, SRGB): + return PixelFormat::ASTC_2D_10X5_SRGB; case Hash(TextureFormat::ASTC_2D_10X10, UNORM, LINEAR): return PixelFormat::ASTC_2D_10X10_UNORM; case Hash(TextureFormat::ASTC_2D_10X10, UNORM, SRGB): diff --git a/src/video_core/texture_cache/formatter.h b/src/video_core/texture_cache/formatter.h index 95a572604..6881e4c90 100644 --- a/src/video_core/texture_cache/formatter.h +++ b/src/video_core/texture_cache/formatter.h @@ -177,6 +177,10 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str return "ASTC_2D_6X6_SRGB"; case PixelFormat::ASTC_2D_10X6_UNORM: return "ASTC_2D_10X6_UNORM"; + case PixelFormat::ASTC_2D_10X5_UNORM: + return "ASTC_2D_10X5_UNORM"; + case PixelFormat::ASTC_2D_10X5_SRGB: + return "ASTC_2D_10X5_SRGB"; case PixelFormat::ASTC_2D_10X10_UNORM: return "ASTC_2D_10X10_UNORM"; case PixelFormat::ASTC_2D_10X10_SRGB: |