summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-07-24 20:41:40 -0500
committerGravatar Subv2018-07-24 20:41:40 -0500
commitdaf2504d310558e0a74e6eb321ab0811ba6e5e55 (patch)
tree0e223d93915874c207c6e6eafb88ac31156048ed /src/video_core/textures/decoders.cpp
parentMerge pull request #806 from lioncash/friend (diff)
downloadyuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.gz
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.tar.xz
yuzu-daf2504d310558e0a74e6eb321ab0811ba6e5e55.zip
GPU: Implemented the Z32_S8_X24 depth buffer format.
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-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) {
90 case DepthFormat::Z24_S8_UNORM: 90 case DepthFormat::Z24_S8_UNORM:
91 case DepthFormat::Z32_FLOAT: 91 case DepthFormat::Z32_FLOAT:
92 return 4; 92 return 4;
93 case DepthFormat::Z32_S8_X24_FLOAT:
94 return 8;
93 default: 95 default:
94 UNIMPLEMENTED_MSG("Format not implemented"); 96 UNIMPLEMENTED_MSG("Format not implemented");
95 break; 97 break;
@@ -150,6 +152,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid
150 case DepthFormat::S8_Z24_UNORM: 152 case DepthFormat::S8_Z24_UNORM:
151 case DepthFormat::Z24_S8_UNORM: 153 case DepthFormat::Z24_S8_UNORM:
152 case DepthFormat::Z32_FLOAT: 154 case DepthFormat::Z32_FLOAT:
155 case DepthFormat::Z32_S8_X24_FLOAT:
153 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, 156 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
154 unswizzled_data.data(), true, block_height); 157 unswizzled_data.data(), true, block_height);
155 break; 158 break;