summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-06 04:57:16 +0200
committerSubv <subv2112@gmail.com>2018-06-06 04:57:16 +0200
commitc531a92edaae409275d9e7309d7b315d6fccf190 (patch)
treee3a14bf936375514f99485b68b1dce05d377c93d /src/video_core/textures/decoders.cpp
parentGPU: Fixed the compression factor for RGBA16F textures. (diff)
downloadyuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.gz
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.bz2
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.lz
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.xz
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.zst
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.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 2d2af5554..7bf9c4c4b 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -55,6 +55,7 @@ u32 BytesPerPixel(TextureFormat format) {
return 16;
case TextureFormat::A8R8G8B8:
case TextureFormat::A2B10G10R10:
+ case TextureFormat::BF10GF11RF11:
return 4;
case TextureFormat::A1B5G5R5:
case TextureFormat::B5G6R5:
@@ -92,6 +93,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
case TextureFormat::B5G6R5:
case TextureFormat::R8:
case TextureFormat::R16_G16_B16_A16:
+ case TextureFormat::BF10GF11RF11:
CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
unswizzled_data.data(), true, block_height);
break;
@@ -118,6 +120,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat
case TextureFormat::A1B5G5R5:
case TextureFormat::B5G6R5:
case TextureFormat::R8:
+ case TextureFormat::BF10GF11RF11:
// TODO(Subv): For the time being just forward the same data without any decoding.
rgba_data = texture_data;
break;