summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-04 17:42:33 +0200
committerSubv <subv2112@gmail.com>2018-07-04 17:42:33 +0200
commit016e357c752e3aed1094c664e7387ebed9738f03 (patch)
tree94ddf7b71a46087a8f4c9d392a09a17e4ce3e57e /src/video_core/textures/decoders.cpp
parentMerge pull request #618 from Subv/clear_used_buffers (diff)
downloadyuzu-016e357c752e3aed1094c664e7387ebed9738f03.tar
yuzu-016e357c752e3aed1094c664e7387ebed9738f03.tar.gz
yuzu-016e357c752e3aed1094c664e7387ebed9738f03.tar.bz2
yuzu-016e357c752e3aed1094c664e7387ebed9738f03.tar.lz
yuzu-016e357c752e3aed1094c664e7387ebed9738f03.tar.xz
yuzu-016e357c752e3aed1094c664e7387ebed9738f03.tar.zst
yuzu-016e357c752e3aed1094c664e7387ebed9738f03.zip
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-rw-r--r--src/video_core/textures/decoders.cpp2
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) {
switch (format) {
case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
+ case DepthFormat::Z32_FLOAT:
return 4;
default:
UNIMPLEMENTED_MSG("Format not implemented");
@@ -132,6 +133,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid
switch (format) {
case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
+ case DepthFormat::Z32_FLOAT:
CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
unswizzled_data.data(), true, block_height);
break;