summaryrefslogtreecommitdiff
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-10-27 16:44:09 -0400
committerGravatar Fernando Sahmkow2019-10-27 16:44:09 -0400
commit3f9262195b1ab4828d93f661e1b0dedacb01f937 (patch)
tree54a95ce1409a00ac686ee0ff4efcf3f789880935 /src/video_core/surface.cpp
parentMerge pull request #2976 from FernandoS27/cache-fast-brx-rebased (diff)
downloadyuzu-3f9262195b1ab4828d93f661e1b0dedacb01f937.tar.gz
yuzu-3f9262195b1ab4828d93f661e1b0dedacb01f937.tar.xz
yuzu-3f9262195b1ab4828d93f661e1b0dedacb01f937.zip
Video_Core: Implement texture format E5B9G9R9_SHAREDEXP.
This commit implements the E5B9G9R9 Texture format into the general system and OpenGL backend.
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,
315 break; 315 break;
316 } 316 }
317 break; 317 break;
318 case Tegra::Texture::TextureFormat::E5B9G9R9_SHAREDEXP:
319 switch (component_type) {
320 case Tegra::Texture::ComponentType::FLOAT:
321 return PixelFormat::E5B9G9R9F;
322 default:
323 break;
324 }
325 break;
318 case Tegra::Texture::TextureFormat::ZF32: 326 case Tegra::Texture::TextureFormat::ZF32:
319 return PixelFormat::Z32F; 327 return PixelFormat::Z32F;
320 case Tegra::Texture::TextureFormat::Z16: 328 case Tegra::Texture::TextureFormat::Z16: