diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-14 05:25:11 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-15 05:43:28 +0200 |
commit | e21190f47f2fdc0b24f1220700640ed854972ccc (patch) | |
tree | d924ea8185ab9a6e9da0421b5c56f2628a61418f /src/video_core/textures/decoders.cpp | |
parent | Merge pull request #598 from bunnei/makedonecurrent (diff) | |
download | yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.gz yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.bz2 yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.lz yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.xz yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.zst yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.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 b3937b2fe..a4ba9f66a 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -77,6 +77,8 @@ u32 BytesPerPixel(TextureFormat format) { static u32 DepthBytesPerPixel(DepthFormat format) { switch (format) { + case DepthFormat::Z16_UNORM: + return 2; case DepthFormat::S8_Z24_UNORM: case DepthFormat::Z24_S8_UNORM: case DepthFormat::Z32_FLOAT: @@ -133,6 +135,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid std::vector<u8> unswizzled_data(width * height * bytes_per_pixel); switch (format) { + case DepthFormat::Z16_UNORM: case DepthFormat::S8_Z24_UNORM: case DepthFormat::Z24_S8_UNORM: case DepthFormat::Z32_FLOAT: |