diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-10-08 18:54:59 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-09 18:57:02 +0200 |
commit | f32a49d3d8b820a20c5311a0c27df5846d55b0e9 (patch) | |
tree | 6246dd9150144fdcb1947bb0d84105ed2e3f406c /src/video_core/surface.cpp | |
parent | Surfaces: Implement ASTC 6x6 10x10 12x12 8x6 6x5 (diff) | |
download | yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.tar yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.tar.gz yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.tar.bz2 yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.tar.lz yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.tar.xz yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.tar.zst yuzu-f32a49d3d8b820a20c5311a0c27df5846d55b0e9.zip |
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r-- | src/video_core/surface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index a61dcbfb0..4416fb4ac 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp @@ -212,6 +212,14 @@ PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format, break; } break; + case Tegra::Texture::TextureFormat::A4B4G4R4: + switch (component_type) { + case Tegra::Texture::ComponentType::UNORM: + return PixelFormat::R4G4B4A4U; + default: + break; + } + break; case Tegra::Texture::TextureFormat::R8: switch (component_type) { case Tegra::Texture::ComponentType::UNORM: |