summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-06 06:22:54 +0200
committerGitHub <noreply@github.com>2018-06-06 06:22:54 +0200
commit05dc93399baa6e99373f0bc5169a5fdce3da98f9 (patch)
tree6b2fec117de370f80dc1df636b9e97b3411f150a /src/video_core/textures
parentGDB Stub Improvements (#508) (diff)
parentGPU: Implemented the R11FG11FB10F texture and rendertarget formats. (diff)
downloadyuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.tar
yuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.tar.gz
yuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.tar.bz2
yuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.tar.lz
yuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.tar.xz
yuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.tar.zst
yuzu-05dc93399baa6e99373f0bc5169a5fdce3da98f9.zip
Diffstat (limited to 'src/video_core/textures')
-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;