diff options
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
| -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 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; |