diff options
| author | 2018-07-05 11:09:15 -0400 | |
|---|---|---|
| committer | 2018-07-05 11:09:15 -0400 | |
| commit | 9a3c0b161e4400946ae3a5b4173b6b240c3ae4c4 (patch) | |
| tree | 115d4fe369558520288738d4b3cacd3bf8eea19a /src/video_core/textures/decoders.cpp | |
| parent | Merge pull request #619 from Subv/flip_cull (diff) | |
| parent | GPU: Implemented the 32 bit float depth buffer format. (diff) | |
| download | yuzu-9a3c0b161e4400946ae3a5b4173b6b240c3ae4c4.tar.gz yuzu-9a3c0b161e4400946ae3a5b4173b6b240c3ae4c4.tar.xz yuzu-9a3c0b161e4400946ae3a5b4173b6b240c3ae4c4.zip | |
Merge pull request #620 from Subv/depth_z32f
GPU: Implemented the 32 bit float depth buffer format.
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
| -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 7b06fea3e..d5ab4e4f9 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp | |||
| @@ -78,6 +78,7 @@ static u32 DepthBytesPerPixel(DepthFormat format) { | |||
| 78 | switch (format) { | 78 | switch (format) { |
| 79 | case DepthFormat::S8_Z24_UNORM: | 79 | case DepthFormat::S8_Z24_UNORM: |
| 80 | case DepthFormat::Z24_S8_UNORM: | 80 | case DepthFormat::Z24_S8_UNORM: |
| 81 | case DepthFormat::Z32_FLOAT: | ||
| 81 | return 4; | 82 | return 4; |
| 82 | default: | 83 | default: |
| 83 | UNIMPLEMENTED_MSG("Format not implemented"); | 84 | UNIMPLEMENTED_MSG("Format not implemented"); |
| @@ -132,6 +133,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid | |||
| 132 | switch (format) { | 133 | switch (format) { |
| 133 | case DepthFormat::S8_Z24_UNORM: | 134 | case DepthFormat::S8_Z24_UNORM: |
| 134 | case DepthFormat::Z24_S8_UNORM: | 135 | case DepthFormat::Z24_S8_UNORM: |
| 136 | case DepthFormat::Z32_FLOAT: | ||
| 135 | CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, | 137 | CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, |
| 136 | unswizzled_data.data(), true, block_height); | 138 | unswizzled_data.data(), true, block_height); |
| 137 | break; | 139 | break; |