summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2019-10-28 05:36:58 +0100
committerGitHub <noreply@github.com>2019-10-28 05:36:58 +0100
commitc5d9589942b77c70c37982bd3b407abfdcca26a2 (patch)
tree7cdcc51a16a51f40ef98c4e214aa6bb52778a0db /src/video_core/surface.cpp
parentMerge pull request #2971 from FernandoS27/new-scheduler-v2 (diff)
parentVideo_Core: Implement texture format E5B9G9R9_SHAREDEXP. (diff)
downloadyuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar
yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.gz
yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.bz2
yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.lz
yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.xz
yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.zst
yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.zip
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r--src/video_core/surface.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 9a3c05288..621136b6e 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -315,6 +315,14 @@ PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format,
break;
}
break;
+ case Tegra::Texture::TextureFormat::E5B9G9R9_SHAREDEXP:
+ switch (component_type) {
+ case Tegra::Texture::ComponentType::FLOAT:
+ return PixelFormat::E5B9G9R9F;
+ default:
+ break;
+ }
+ break;
case Tegra::Texture::TextureFormat::ZF32:
return PixelFormat::Z32F;
case Tegra::Texture::TextureFormat::Z16: