summaryrefslogtreecommitdiff
path: root/src/video_core/surface.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2019-09-03 22:36:32 -0400
committerGravatar GitHub2019-09-03 22:36:32 -0400
commit19af91434e7aea4232d12bf66ce86d33c134d1ba (patch)
tree034bed59283a16c7e0939d2959179c8835f51442 /src/video_core/surface.cpp
parentMerge pull request #2812 from ReinUsesLisp/f2i-selector (diff)
parentrenderer_opengl: Implement RGB565 framebuffer format (diff)
downloadyuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.gz
yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.tar.xz
yuzu-19af91434e7aea4232d12bf66ce86d33c134d1ba.zip
Merge pull request #2793 from ReinUsesLisp/bgr565
renderer_opengl: Implement RGB565 framebuffer format
Diffstat (limited to 'src/video_core/surface.cpp')
-rw-r--r--src/video_core/surface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index c50f6354d..4ceb219be 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -445,11 +445,12 @@ PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat
445 switch (format) { 445 switch (format) {
446 case Tegra::FramebufferConfig::PixelFormat::ABGR8: 446 case Tegra::FramebufferConfig::PixelFormat::ABGR8:
447 return PixelFormat::ABGR8U; 447 return PixelFormat::ABGR8U;
448 case Tegra::FramebufferConfig::PixelFormat::RGB565:
449 return PixelFormat::B5G6R5U;
448 case Tegra::FramebufferConfig::PixelFormat::BGRA8: 450 case Tegra::FramebufferConfig::PixelFormat::BGRA8:
449 return PixelFormat::BGRA8; 451 return PixelFormat::BGRA8;
450 default: 452 default:
451 LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); 453 UNIMPLEMENTED_MSG("Unimplemented format={}", static_cast<u32>(format));
452 UNREACHABLE();
453 return PixelFormat::ABGR8U; 454 return PixelFormat::ABGR8U;
454 } 455 }
455} 456}