summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-06-05 21:57:16 -0500
committerGravatar Subv2018-06-05 21:57:16 -0500
commitc531a92edaae409275d9e7309d7b315d6fccf190 (patch)
treee3a14bf936375514f99485b68b1dce05d377c93d /src/video_core/textures/decoders.cpp
parentGPU: Fixed the compression factor for RGBA16F textures. (diff)
downloadyuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.gz
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.tar.xz
yuzu-c531a92edaae409275d9e7309d7b315d6fccf190.zip
GPU: Implemented the R11FG11FB10F texture and rendertarget formats.
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) {
55 return 16; 55 return 16;
56 case TextureFormat::A8R8G8B8: 56 case TextureFormat::A8R8G8B8:
57 case TextureFormat::A2B10G10R10: 57 case TextureFormat::A2B10G10R10:
58 case TextureFormat::BF10GF11RF11:
58 return 4; 59 return 4;
59 case TextureFormat::A1B5G5R5: 60 case TextureFormat::A1B5G5R5:
60 case TextureFormat::B5G6R5: 61 case TextureFormat::B5G6R5:
@@ -92,6 +93,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
92 case TextureFormat::B5G6R5: 93 case TextureFormat::B5G6R5:
93 case TextureFormat::R8: 94 case TextureFormat::R8:
94 case TextureFormat::R16_G16_B16_A16: 95 case TextureFormat::R16_G16_B16_A16:
96 case TextureFormat::BF10GF11RF11:
95 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, 97 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
96 unswizzled_data.data(), true, block_height); 98 unswizzled_data.data(), true, block_height);
97 break; 99 break;
@@ -118,6 +120,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat
118 case TextureFormat::A1B5G5R5: 120 case TextureFormat::A1B5G5R5:
119 case TextureFormat::B5G6R5: 121 case TextureFormat::B5G6R5:
120 case TextureFormat::R8: 122 case TextureFormat::R8:
123 case TextureFormat::BF10GF11RF11:
121 // TODO(Subv): For the time being just forward the same data without any decoding. 124 // TODO(Subv): For the time being just forward the same data without any decoding.
122 rgba_data = texture_data; 125 rgba_data = texture_data;
123 break; 126 break;