summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-14 05:25:11 +0200
committerbunnei <bunneidev@gmail.com>2018-07-15 05:43:28 +0200
commite21190f47f2fdc0b24f1220700640ed854972ccc (patch)
treed924ea8185ab9a6e9da0421b5c56f2628a61418f /src/video_core/textures
parentMerge pull request #598 from bunnei/makedonecurrent (diff)
downloadyuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar
yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.gz
yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.bz2
yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.lz
yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.xz
yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.tar.zst
yuzu-e21190f47f2fdc0b24f1220700640ed854972ccc.zip
Diffstat (limited to 'src/video_core/textures')
-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 b3937b2fe..a4ba9f66a 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -77,6 +77,8 @@ u32 BytesPerPixel(TextureFormat format) {
static u32 DepthBytesPerPixel(DepthFormat format) {
switch (format) {
+ case DepthFormat::Z16_UNORM:
+ return 2;
case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
case DepthFormat::Z32_FLOAT:
@@ -133,6 +135,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid
std::vector<u8> unswizzled_data(width * height * bytes_per_pixel);
switch (format) {
+ case DepthFormat::Z16_UNORM:
case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
case DepthFormat::Z32_FLOAT: