diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-06 11:08:22 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-11-24 20:35:44 +0100 |
commit | 5fbd6954efbfe3dd95fcd496cd25664c092947fc (patch) | |
tree | ca9c4a7e1855b4406531eada1e84b6cb26802122 /src/video_core/surface.cpp | |
parent | Fermi2D: Rework blit engine and add a software blitter. (diff) | |
download | yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.gz yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.bz2 yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.lz yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.xz yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.tar.zst yuzu-5fbd6954efbfe3dd95fcd496cd25664c092947fc.zip |
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r-- | src/video_core/surface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index 6bd133d10..80a7d908f 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp @@ -118,8 +118,10 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) case Tegra::RenderTargetFormat::R16G16B16X16_FLOAT: return PixelFormat::R16G16B16X16_FLOAT; case Tegra::RenderTargetFormat::A8R8G8B8_UNORM: + case Tegra::RenderTargetFormat::X8R8G8B8_UNORM: return PixelFormat::B8G8R8A8_UNORM; case Tegra::RenderTargetFormat::A8R8G8B8_SRGB: + case Tegra::RenderTargetFormat::X8R8G8B8_SRGB: return PixelFormat::B8G8R8A8_SRGB; case Tegra::RenderTargetFormat::A2B10G10R10_UNORM: return PixelFormat::A2B10G10R10_UNORM; |