summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-rw-r--r--src/video_core/textures/decoders.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index 9c2a10d2e..f4c7e40df 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -50,6 +50,8 @@ u32 BytesPerPixel(TextureFormat format) {
50 return 8; 50 return 8;
51 case TextureFormat::A8R8G8B8: 51 case TextureFormat::A8R8G8B8:
52 return 4; 52 return 4;
53 case TextureFormat::B5G6R5:
54 return 2;
53 default: 55 default:
54 UNIMPLEMENTED_MSG("Format not implemented"); 56 UNIMPLEMENTED_MSG("Format not implemented");
55 break; 57 break;
@@ -70,6 +72,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
70 unswizzled_data.data(), true, block_height); 72 unswizzled_data.data(), true, block_height);
71 break; 73 break;
72 case TextureFormat::A8R8G8B8: 74 case TextureFormat::A8R8G8B8:
75 case TextureFormat::B5G6R5:
73 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, 76 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
74 unswizzled_data.data(), true, block_height); 77 unswizzled_data.data(), true, block_height);
75 break; 78 break;
@@ -89,6 +92,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat
89 switch (format) { 92 switch (format) {
90 case TextureFormat::DXT1: 93 case TextureFormat::DXT1:
91 case TextureFormat::A8R8G8B8: 94 case TextureFormat::A8R8G8B8:
95 case TextureFormat::B5G6R5:
92 // TODO(Subv): For the time being just forward the same data without any decoding. 96 // TODO(Subv): For the time being just forward the same data without any decoding.
93 rgba_data = texture_data; 97 rgba_data = texture_data;
94 break; 98 break;