summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/format_lookup_table.cpp
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2022-10-06 17:10:28 +0200
committerGitHub <noreply@github.com>2022-10-06 17:10:28 +0200
commit31d4bc695390fbc08c60f67a90078366afceb21c (patch)
treefc4638c6128890246ab6dc65215c0df025a873ee /src/video_core/texture_cache/format_lookup_table.cpp
parentMerge pull request #9013 from liamwhite/spinning-a-yarn (diff)
parentTexture Cache: Add ASTC 10x5 Format. (diff)
downloadyuzu-31d4bc695390fbc08c60f67a90078366afceb21c.tar
yuzu-31d4bc695390fbc08c60f67a90078366afceb21c.tar.gz
yuzu-31d4bc695390fbc08c60f67a90078366afceb21c.tar.bz2
yuzu-31d4bc695390fbc08c60f67a90078366afceb21c.tar.lz
yuzu-31d4bc695390fbc08c60f67a90078366afceb21c.tar.xz
yuzu-31d4bc695390fbc08c60f67a90078366afceb21c.tar.zst
yuzu-31d4bc695390fbc08c60f67a90078366afceb21c.zip
Diffstat (limited to 'src/video_core/texture_cache/format_lookup_table.cpp')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp4
1 files changed, 4 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):