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 e5e9e1898..cda2646ad 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp | |||
| @@ -61,6 +61,7 @@ u32 BytesPerPixel(TextureFormat format) { | |||
| 61 | case TextureFormat::A8R8G8B8: | 61 | case TextureFormat::A8R8G8B8: |
| 62 | case TextureFormat::A2B10G10R10: | 62 | case TextureFormat::A2B10G10R10: |
| 63 | case TextureFormat::BF10GF11RF11: | 63 | case TextureFormat::BF10GF11RF11: |
| 64 | case TextureFormat::R32: | ||
| 64 | return 4; | 65 | return 4; |
| 65 | case TextureFormat::A1B5G5R5: | 66 | case TextureFormat::A1B5G5R5: |
| 66 | case TextureFormat::B5G6R5: | 67 | case TextureFormat::B5G6R5: |
| @@ -121,6 +122,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, | |||
| 121 | case TextureFormat::R16_G16_B16_A16: | 122 | case TextureFormat::R16_G16_B16_A16: |
| 122 | case TextureFormat::R32_G32_B32_A32: | 123 | case TextureFormat::R32_G32_B32_A32: |
| 123 | case TextureFormat::R32_G32: | 124 | case TextureFormat::R32_G32: |
| 125 | case TextureFormat::R32: | ||
| 124 | case TextureFormat::BF10GF11RF11: | 126 | case TextureFormat::BF10GF11RF11: |
| 125 | case TextureFormat::ASTC_2D_4X4: | 127 | case TextureFormat::ASTC_2D_4X4: |
| 126 | CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, | 128 | CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, |
| @@ -178,6 +180,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat | |||
| 178 | case TextureFormat::BF10GF11RF11: | 180 | case TextureFormat::BF10GF11RF11: |
| 179 | case TextureFormat::R32_G32_B32_A32: | 181 | case TextureFormat::R32_G32_B32_A32: |
| 180 | case TextureFormat::R32_G32: | 182 | case TextureFormat::R32_G32: |
| 183 | case TextureFormat::R32: | ||
| 181 | // TODO(Subv): For the time being just forward the same data without any decoding. | 184 | // TODO(Subv): For the time being just forward the same data without any decoding. |
| 182 | rgba_data = texture_data; | 185 | rgba_data = texture_data; |
| 183 | break; | 186 | break; |