aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <104419015+jojo-chaechae@users.noreply.github.com>2026-11-03 05:26:42 +0600
committerGitHub <noreply@github.com>2026-11-03 05:26:42 +0600
commit4be4e1ded0bbe32526f26552c87f9e897646130c (patch)
treecdd74f971a869367ba9736517bde657bd0f38e94
parent0322a7a8b8cb86f23643827b0ac50fb938e9986f (diff)
parent8af82558bb25bb2ab46f3d750d3da55b82512e41 (diff)
Merge pull request #295 from rdenno/fix/texture-x8z24-components
texture_cache: look up X8Z24 with UNORM, UINT, UNORM, UNORM components
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp1
1 files changed, 1 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 20bb96aae3..18be2dcbf3 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -150,6 +150,7 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
case Hash(TextureFormat::X8Z24, UNORM):
return PixelFormat::X8_D24_UNORM;
case Hash(TextureFormat::X8Z24, UNORM, UINT, UINT, UINT, LINEAR):
+ case Hash(TextureFormat::X8Z24, UNORM, UINT, UNORM, UNORM, LINEAR):
return PixelFormat::X8_D24_UNORM;
case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR):
return PixelFormat::S8_UINT_D24_UNORM;