summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-07-01 04:04:23 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-07-06 02:33:43 +0200
commitaec129c1ab333292c37e28bd6b76670e9d0a1acf (patch)
treea2a537d2f04c4a7d6924064b93ad348d398f67a5 /src/video_core/texture_cache
parentMerge pull request #8486 from liushuyu/github-actions-verify (diff)
downloadyuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar
yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.gz
yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.bz2
yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.lz
yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.xz
yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.zst
yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp2
-rw-r--r--src/video_core/texture_cache/formatter.h2
2 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 0937768d6..1412aa076 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -206,6 +206,8 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::ASTC_2D_6X6_UNORM;
case Hash(TextureFormat::ASTC_2D_6X6, UNORM, SRGB):
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_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 1b78ed445..95a572604 100644
--- a/src/video_core/texture_cache/formatter.h
+++ b/src/video_core/texture_cache/formatter.h
@@ -175,6 +175,8 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str
return "ASTC_2D_6X6_UNORM";
case PixelFormat::ASTC_2D_6X6_SRGB:
return "ASTC_2D_6X6_SRGB";
+ case PixelFormat::ASTC_2D_10X6_UNORM:
+ return "ASTC_2D_10X6_UNORM";
case PixelFormat::ASTC_2D_10X10_UNORM:
return "ASTC_2D_10X10_UNORM";
case PixelFormat::ASTC_2D_10X10_SRGB: