summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-25 03:41:40 +0200
committerSubv <subv2112@gmail.com>2018-07-25 03:41:40 +0200
commitdaf2504d310558e0a74e6eb321ab0811ba6e5e55 (patch)
tree0e223d93915874c207c6e6eafb88ac31156048ed /src/video_core/textures/decoders.cpp
parentMerge pull request #806 from lioncash/friend (diff)
downloadyuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.gz
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.bz2
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.lz
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.xz
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.zst
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/textures/decoders.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index 970c06e71..50c5a56f6 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -90,6 +90,8 @@ static u32 DepthBytesPerPixel(DepthFormat format) {
case DepthFormat::Z24_S8_UNORM:
case DepthFormat::Z32_FLOAT:
return 4;
+ case DepthFormat::Z32_S8_X24_FLOAT:
+ return 8;
default:
UNIMPLEMENTED_MSG("Format not implemented");
break;
@@ -150,6 +152,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid
case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
case DepthFormat::Z32_FLOAT:
+ case DepthFormat::Z32_S8_X24_FLOAT:
CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
unswizzled_data.data(), true, block_height);
break;