diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-10-08 12:54:59 -0400 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-09 12:57:02 -0400 |
commit | f32a49d3d8b820a20c5311a0c27df5846d55b0e9 (patch) | |
tree | 6246dd9150144fdcb1947bb0d84105ed2e3f406c /src/video_core/surface.cpp | |
parent | b9ddb517b191b449b8d935acb29962e43054dde4 (diff) |
Surfaces: Implement R4G4B4A4U format.
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: |