diff options
| author | 2022-10-21 01:54:44 -0400 | |
|---|---|---|
| committer | 2022-10-21 01:54:57 -0400 | |
| commit | f16db300c6117da0286a5504cd3605e6aceaf40f (patch) | |
| tree | f25091afaa3ca95e9652a60eaa6c60fd683beba9 | |
| parent | Merge pull request #9088 from Fdawgs/chore/images (diff) | |
| download | yuzu-f16db300c6117da0286a5504cd3605e6aceaf40f.tar.gz yuzu-f16db300c6117da0286a5504cd3605e6aceaf40f.tar.xz yuzu-f16db300c6117da0286a5504cd3605e6aceaf40f.zip | |
format_lookup_table: Implement R32_B24G8 with D32_FLOAT_S8_UINT
This format is similar to Z32_FLOAT_X24S8_UINT, which is implemented with D32_FLOAT_S8_UINT.
Used in Persona 5 Royal
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/texture_cache/format_lookup_table.cpp | 2 |
1 files changed, 2 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 ad935d386..08aa8ca33 100644 --- a/src/video_core/texture_cache/format_lookup_table.cpp +++ b/src/video_core/texture_cache/format_lookup_table.cpp | |||
| @@ -150,6 +150,8 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red, | |||
| 150 | return PixelFormat::D24_UNORM_S8_UINT; | 150 | return PixelFormat::D24_UNORM_S8_UINT; |
| 151 | case Hash(TextureFormat::D32S8, FLOAT, UINT, UNORM, UNORM, LINEAR): | 151 | case Hash(TextureFormat::D32S8, FLOAT, UINT, UNORM, UNORM, LINEAR): |
| 152 | return PixelFormat::D32_FLOAT_S8_UINT; | 152 | return PixelFormat::D32_FLOAT_S8_UINT; |
| 153 | case Hash(TextureFormat::R32_B24G8, FLOAT, UINT, UNORM, UNORM, LINEAR): | ||
| 154 | return PixelFormat::D32_FLOAT_S8_UINT; | ||
| 153 | case Hash(TextureFormat::BC1_RGBA, UNORM, LINEAR): | 155 | case Hash(TextureFormat::BC1_RGBA, UNORM, LINEAR): |
| 154 | return PixelFormat::BC1_RGBA_UNORM; | 156 | return PixelFormat::BC1_RGBA_UNORM; |
| 155 | case Hash(TextureFormat::BC1_RGBA, UNORM, SRGB): | 157 | case Hash(TextureFormat::BC1_RGBA, UNORM, SRGB): |