summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Squall Leonhart2023-08-11 00:51:24 +1000
committerGravatar Squall-Leonhart2023-08-11 08:18:54 +1000
commitb9ab44ed0e8706eed9d7fa6f3d6e70b0299ef42e (patch)
treebbd4a39c4805c8f9beb308de27139d49bcea4621
parentMerge pull request #11093 from liamwhite/result-ergonomics (diff)
downloadyuzu-b9ab44ed0e8706eed9d7fa6f3d6e70b0299ef42e.tar.gz
yuzu-b9ab44ed0e8706eed9d7fa6f3d6e70b0299ef42e.tar.xz
yuzu-b9ab44ed0e8706eed9d7fa6f3d6e70b0299ef42e.zip
Fix an assert in the format lookup table fir Z16
Came across this while looking into Asterix and Obelix XXL glitching
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp
index 11ced6c38..0105bbff4 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -138,7 +138,7 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
138 return PixelFormat::E5B9G9R9_FLOAT; 138 return PixelFormat::E5B9G9R9_FLOAT;
139 case Hash(TextureFormat::Z32, FLOAT): 139 case Hash(TextureFormat::Z32, FLOAT):
140 return PixelFormat::D32_FLOAT; 140 return PixelFormat::D32_FLOAT;
141 case Hash(TextureFormat::Z16, UNORM): 141 case Hash(TextureFormat::Z16, UNORM, UINT, UINT, UINT, LINEAR):
142 return PixelFormat::D16_UNORM; 142 return PixelFormat::D16_UNORM;
143 case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR): 143 case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR):
144 return PixelFormat::S8_UINT_D24_UNORM; 144 return PixelFormat::S8_UINT_D24_UNORM;