diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-03 20:05:13 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-03 20:58:13 +0200 |
commit | 9da1552417440ca2294f9e06d33be42d933db117 (patch) | |
tree | 8f6e486e5a74b936aba268eb2599fa7bb1e43bb8 /src/video_core/textures/decoders.cpp | |
parent | Update AudioRenderer Voice Sections (#614) (diff) | |
download | yuzu-9da1552417440ca2294f9e06d33be42d933db117.tar yuzu-9da1552417440ca2294f9e06d33be42d933db117.tar.gz yuzu-9da1552417440ca2294f9e06d33be42d933db117.tar.bz2 yuzu-9da1552417440ca2294f9e06d33be42d933db117.tar.lz yuzu-9da1552417440ca2294f9e06d33be42d933db117.tar.xz yuzu-9da1552417440ca2294f9e06d33be42d933db117.tar.zst yuzu-9da1552417440ca2294f9e06d33be42d933db117.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/decoders.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index 680f22ddb..7b06fea3e 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -76,6 +76,7 @@ u32 BytesPerPixel(TextureFormat format) { static u32 DepthBytesPerPixel(DepthFormat format) { switch (format) { + case DepthFormat::S8_Z24_UNORM: case DepthFormat::Z24_S8_UNORM: return 4; default: @@ -129,6 +130,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::S8_Z24_UNORM: case DepthFormat::Z24_S8_UNORM: CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, unswizzled_data.data(), true, block_height); |