diff options
| author | 2022-04-13 20:19:06 +0200 | |
|---|---|---|
| committer | 2022-10-06 21:00:53 +0200 | |
| commit | fd7afda1e802fffe843ac28811470432949fe7ee (patch) | |
| tree | a769d41c2d4e9e8e12e1a0dc15d8ecc8a970e222 /src/video_core/texture_cache | |
| parent | Buffer Cache: Deduce vertex array limit from memory layout when limit is the ... (diff) | |
| download | yuzu-fd7afda1e802fffe843ac28811470432949fe7ee.tar.gz yuzu-fd7afda1e802fffe843ac28811470432949fe7ee.tar.xz yuzu-fd7afda1e802fffe843ac28811470432949fe7ee.zip | |
VideoCore: Implement formats needed for N64 emulation.
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/format_lookup_table.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/texture_cache/formatter.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp index c71694d2a..ad935d386 100644 --- a/src/video_core/texture_cache/format_lookup_table.cpp +++ b/src/video_core/texture_cache/format_lookup_table.cpp | |||
| @@ -63,7 +63,7 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red, | |||
| 63 | case Hash(TextureFormat::A4B4G4R4, UNORM): | 63 | case Hash(TextureFormat::A4B4G4R4, UNORM): |
| 64 | return PixelFormat::A4B4G4R4_UNORM; | 64 | return PixelFormat::A4B4G4R4_UNORM; |
| 65 | case Hash(TextureFormat::G4R4, UNORM): | 65 | case Hash(TextureFormat::G4R4, UNORM): |
| 66 | return PixelFormat::R4G4_UNORM; | 66 | return PixelFormat::G4R4_UNORM; |
| 67 | case Hash(TextureFormat::A5B5G5R1, UNORM): | 67 | case Hash(TextureFormat::A5B5G5R1, UNORM): |
| 68 | return PixelFormat::A5B5G5R1_UNORM; | 68 | return PixelFormat::A5B5G5R1_UNORM; |
| 69 | case Hash(TextureFormat::R8, UNORM): | 69 | case Hash(TextureFormat::R8, UNORM): |
diff --git a/src/video_core/texture_cache/formatter.h b/src/video_core/texture_cache/formatter.h index 6881e4c90..acc854715 100644 --- a/src/video_core/texture_cache/formatter.h +++ b/src/video_core/texture_cache/formatter.h | |||
| @@ -153,8 +153,8 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str | |||
| 153 | return "BC7_SRGB"; | 153 | return "BC7_SRGB"; |
| 154 | case PixelFormat::A4B4G4R4_UNORM: | 154 | case PixelFormat::A4B4G4R4_UNORM: |
| 155 | return "A4B4G4R4_UNORM"; | 155 | return "A4B4G4R4_UNORM"; |
| 156 | case PixelFormat::R4G4_UNORM: | 156 | case PixelFormat::G4R4_UNORM: |
| 157 | return "R4G4_UNORM"; | 157 | return "G4R4_UNORM"; |
| 158 | case PixelFormat::ASTC_2D_4X4_SRGB: | 158 | case PixelFormat::ASTC_2D_4X4_SRGB: |
| 159 | return "ASTC_2D_4X4_SRGB"; | 159 | return "ASTC_2D_4X4_SRGB"; |
| 160 | case PixelFormat::ASTC_2D_8X8_SRGB: | 160 | case PixelFormat::ASTC_2D_8X8_SRGB: |