summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-05 00:22:48 +0200
committerSubv <subv2112@gmail.com>2018-07-07 16:17:48 +0200
commit4633dd9505e69fe03d6e1c704a53fa7a7d15b391 (patch)
tree4571c9577674aadb70f2bb0fad90f18581751f13 /src/video_core/textures
parentMerge pull request #631 from lioncash/dynarmic (diff)
downloadyuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.tar
yuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.tar.gz
yuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.tar.bz2
yuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.tar.lz
yuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.tar.xz
yuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.tar.zst
yuzu-4633dd9505e69fe03d6e1c704a53fa7a7d15b391.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 d5ab4e4f9..b3937b2fe 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -52,6 +52,7 @@ u32 BytesPerPixel(TextureFormat format) {
return 8;
case TextureFormat::DXT23:
case TextureFormat::DXT45:
+ case TextureFormat::BC7U:
// In this case a 'pixel' actually refers to a 4x4 tile.
return 16;
case TextureFormat::ASTC_2D_4X4:
@@ -98,6 +99,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
case TextureFormat::DXT23:
case TextureFormat::DXT45:
case TextureFormat::DXN1:
+ case TextureFormat::BC7U:
// In the DXT and DXN formats, each 4x4 tile is swizzled instead of just individual pixel
// values.
CopySwizzledData(width / 4, height / 4, bytes_per_pixel, bytes_per_pixel, data,
@@ -155,6 +157,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat
case TextureFormat::DXT23:
case TextureFormat::DXT45:
case TextureFormat::DXN1:
+ case TextureFormat::BC7U:
case TextureFormat::ASTC_2D_4X4:
case TextureFormat::A8R8G8B8:
case TextureFormat::A2B10G10R10: