diff options
author | Unknown <gregoire.hage@gmail.com> | 2018-07-26 02:01:29 +0200 |
---|---|---|
committer | Unknown <gregoire.hage@gmail.com> | 2018-07-26 02:01:29 +0200 |
commit | 4672a01cbf3a0ec484cc2d603278951198572051 (patch) | |
tree | 1d184b35a2e6d9af1162e92143863fda684fe17e /src/video_core/textures/decoders.cpp | |
parent | Merge pull request #819 from Subv/srgb (diff) | |
download | yuzu-4672a01cbf3a0ec484cc2d603278951198572051.tar yuzu-4672a01cbf3a0ec484cc2d603278951198572051.tar.gz yuzu-4672a01cbf3a0ec484cc2d603278951198572051.tar.bz2 yuzu-4672a01cbf3a0ec484cc2d603278951198572051.tar.lz yuzu-4672a01cbf3a0ec484cc2d603278951198572051.tar.xz yuzu-4672a01cbf3a0ec484cc2d603278951198572051.tar.zst yuzu-4672a01cbf3a0ec484cc2d603278951198572051.zip |
Diffstat (limited to '')
-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 50c5a56f6..d794f8402 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -62,6 +62,7 @@ u32 BytesPerPixel(TextureFormat format) { case TextureFormat::A2B10G10R10: case TextureFormat::BF10GF11RF11: case TextureFormat::R32: + case TextureFormat::R16_G16: return 4; case TextureFormat::A1B5G5R5: case TextureFormat::B5G6R5: @@ -127,6 +128,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, case TextureFormat::R32_G32: case TextureFormat::R32: case TextureFormat::R16: + case TextureFormat::R16_G16: case TextureFormat::BF10GF11RF11: case TextureFormat::ASTC_2D_4X4: CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, @@ -187,6 +189,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat case TextureFormat::R32_G32: case TextureFormat::R32: case TextureFormat::R16: + case TextureFormat::R16_G16: // TODO(Subv): For the time being just forward the same data without any decoding. rgba_data = texture_data; break; |