summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-07-23 19:10:00 -0400
committerGravatar bunnei2018-07-23 21:22:54 -0400
commita27c0099ededac2d1fb1745a437a446450dfea10 (patch)
treef50d597af8bec5e7403217945d061f3e6ecaff4f /src/video_core/textures/decoders.cpp
parentgl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT. (diff)
downloadyuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.gz
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.xz
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.zip
gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT.
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 a3e67d105..e5e9e1898 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -72,6 +72,8 @@ u32 BytesPerPixel(TextureFormat format) {
72 return 8; 72 return 8;
73 case TextureFormat::R32_G32_B32_A32: 73 case TextureFormat::R32_G32_B32_A32:
74 return 16; 74 return 16;
75 case TextureFormat::R32_G32:
76 return 8;
75 default: 77 default:
76 UNIMPLEMENTED_MSG("Format not implemented"); 78 UNIMPLEMENTED_MSG("Format not implemented");
77 break; 79 break;
@@ -118,6 +120,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
118 case TextureFormat::G8R8: 120 case TextureFormat::G8R8:
119 case TextureFormat::R16_G16_B16_A16: 121 case TextureFormat::R16_G16_B16_A16:
120 case TextureFormat::R32_G32_B32_A32: 122 case TextureFormat::R32_G32_B32_A32:
123 case TextureFormat::R32_G32:
121 case TextureFormat::BF10GF11RF11: 124 case TextureFormat::BF10GF11RF11:
122 case TextureFormat::ASTC_2D_4X4: 125 case TextureFormat::ASTC_2D_4X4:
123 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, 126 CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
@@ -174,6 +177,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat
174 case TextureFormat::G8R8: 177 case TextureFormat::G8R8:
175 case TextureFormat::BF10GF11RF11: 178 case TextureFormat::BF10GF11RF11:
176 case TextureFormat::R32_G32_B32_A32: 179 case TextureFormat::R32_G32_B32_A32:
180 case TextureFormat::R32_G32:
177 // TODO(Subv): For the time being just forward the same data without any decoding. 181 // TODO(Subv): For the time being just forward the same data without any decoding.
178 rgba_data = texture_data; 182 rgba_data = texture_data;
179 break; 183 break;