diff options
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
| -rw-r--r-- | src/video_core/textures/decoders.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index d5ab4e4f9..b3937b2fe 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp | |||
| @@ -52,6 +52,7 @@ u32 BytesPerPixel(TextureFormat format) { | |||
| 52 | return 8; | 52 | return 8; |
| 53 | case TextureFormat::DXT23: | 53 | case TextureFormat::DXT23: |
| 54 | case TextureFormat::DXT45: | 54 | case TextureFormat::DXT45: |
| 55 | case TextureFormat::BC7U: | ||
| 55 | // In this case a 'pixel' actually refers to a 4x4 tile. | 56 | // In this case a 'pixel' actually refers to a 4x4 tile. |
| 56 | return 16; | 57 | return 16; |
| 57 | case TextureFormat::ASTC_2D_4X4: | 58 | case TextureFormat::ASTC_2D_4X4: |
| @@ -98,6 +99,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, | |||
| 98 | case TextureFormat::DXT23: | 99 | case TextureFormat::DXT23: |
| 99 | case TextureFormat::DXT45: | 100 | case TextureFormat::DXT45: |
| 100 | case TextureFormat::DXN1: | 101 | case TextureFormat::DXN1: |
| 102 | case TextureFormat::BC7U: | ||
| 101 | // In the DXT and DXN formats, each 4x4 tile is swizzled instead of just individual pixel | 103 | // In the DXT and DXN formats, each 4x4 tile is swizzled instead of just individual pixel |
| 102 | // values. | 104 | // values. |
| 103 | CopySwizzledData(width / 4, height / 4, bytes_per_pixel, bytes_per_pixel, data, | 105 | CopySwizzledData(width / 4, height / 4, bytes_per_pixel, bytes_per_pixel, data, |
| @@ -155,6 +157,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat | |||
| 155 | case TextureFormat::DXT23: | 157 | case TextureFormat::DXT23: |
| 156 | case TextureFormat::DXT45: | 158 | case TextureFormat::DXT45: |
| 157 | case TextureFormat::DXN1: | 159 | case TextureFormat::DXN1: |
| 160 | case TextureFormat::BC7U: | ||
| 158 | case TextureFormat::ASTC_2D_4X4: | 161 | case TextureFormat::ASTC_2D_4X4: |
| 159 | case TextureFormat::A8R8G8B8: | 162 | case TextureFormat::A8R8G8B8: |
| 160 | case TextureFormat::A2B10G10R10: | 163 | case TextureFormat::A2B10G10R10: |