summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2019-09-22 01:40:46 +0200
committerFearlessTobi <thm.frey@gmail.com>2019-09-22 02:16:44 +0200
commit55d272efe66a30307567db10f32c623364f58848 (patch)
tree516d8619fd8dbe11fea931e1016260097c710f74 /src/video_core/surface.cpp
parentUpdate README.md (#2871) (diff)
downloadyuzu-55d272efe66a30307567db10f32c623364f58848.tar
yuzu-55d272efe66a30307567db10f32c623364f58848.tar.gz
yuzu-55d272efe66a30307567db10f32c623364f58848.tar.bz2
yuzu-55d272efe66a30307567db10f32c623364f58848.tar.lz
yuzu-55d272efe66a30307567db10f32c623364f58848.tar.xz
yuzu-55d272efe66a30307567db10f32c623364f58848.tar.zst
yuzu-55d272efe66a30307567db10f32c623364f58848.zip
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r--src/video_core/surface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 53d0142cb..250afc6d6 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -159,6 +159,8 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format)
return PixelFormat::R32UI;
case Tegra::RenderTargetFormat::RG32_UINT:
return PixelFormat::RG32UI;
+ case Tegra::RenderTargetFormat::RGBX16_FLOAT:
+ return PixelFormat::RGBX16F;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
UNREACHABLE();
@@ -415,6 +417,7 @@ ComponentType ComponentTypeFromRenderTarget(Tegra::RenderTargetFormat format) {
case Tegra::RenderTargetFormat::RG8_SNORM:
return ComponentType::SNorm;
case Tegra::RenderTargetFormat::RGBA16_FLOAT:
+ case Tegra::RenderTargetFormat::RGBX16_FLOAT:
case Tegra::RenderTargetFormat::R11G11B10_FLOAT:
case Tegra::RenderTargetFormat::RGBA32_FLOAT:
case Tegra::RenderTargetFormat::RG32_FLOAT: