summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-24 01:10:00 +0200
committerbunnei <bunneidev@gmail.com>2018-07-24 03:22:54 +0200
commita27c0099ededac2d1fb1745a437a446450dfea10 (patch)
treef50d597af8bec5e7403217945d061f3e6ecaff4f /src/video_core/textures
parentgl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT. (diff)
downloadyuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.gz
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.bz2
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.lz
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.xz
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.tar.zst
yuzu-a27c0099ededac2d1fb1745a437a446450dfea10.zip
Diffstat (limited to 'src/video_core/textures')
-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) {
return 8;
case TextureFormat::R32_G32_B32_A32:
return 16;
+ case TextureFormat::R32_G32:
+ return 8;
default:
UNIMPLEMENTED_MSG("Format not implemented");
break;
@@ -118,6 +120,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
case TextureFormat::G8R8:
case TextureFormat::R16_G16_B16_A16:
case TextureFormat::R32_G32_B32_A32:
+ case TextureFormat::R32_G32:
case TextureFormat::BF10GF11RF11:
case TextureFormat::ASTC_2D_4X4:
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
case TextureFormat::G8R8:
case TextureFormat::BF10GF11RF11:
case TextureFormat::R32_G32_B32_A32:
+ case TextureFormat::R32_G32:
// TODO(Subv): For the time being just forward the same data without any decoding.
rgba_data = texture_data;
break;