summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-11-06 11:08:22 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-11-24 20:35:44 +0100
commit5fbd6954efbfe3dd95fcd496cd25664c092947fc (patch)
treeca9c4a7e1855b4406531eada1e84b6cb26802122 /src/video_core/surface.cpp
parentFermi2D: Rework blit engine and add a software blitter. (diff)
downloadyuzu-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.cpp2
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;