summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-08 04:33:18 +0200
committerGitHub <noreply@github.com>2018-07-08 04:33:18 +0200
commitd990f2355b7fb6b9ea117137e924fd67c1f85a40 (patch)
tree612bf56762415f771d2ec05169e7f3e946286272 /src/video_core/textures/decoders.cpp
parentMerge pull request #639 from bunnei/revert-vfs (diff)
parentGPU: Implemented the BC7U texture format. (diff)
downloadyuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.tar
yuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.tar.gz
yuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.tar.bz2
yuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.tar.lz
yuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.tar.xz
yuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.tar.zst
yuzu-d990f2355b7fb6b9ea117137e924fd67c1f85a40.zip
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-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: