diff options
| author | 2019-08-21 02:22:54 -0300 | |
|---|---|---|
| committer | 2019-08-21 02:28:31 -0300 | |
| commit | 80702aa88f6f448decfbb06dc14db470c221dd38 (patch) | |
| tree | 564386e3afa4a28ac7028f10805e7671fbed26ee /src/video_core/surface.cpp | |
| parent | renderer_opengl: Use block linear swizzling for CPU framebuffers (diff) | |
| download | yuzu-80702aa88f6f448decfbb06dc14db470c221dd38.tar.gz yuzu-80702aa88f6f448decfbb06dc14db470c221dd38.tar.xz yuzu-80702aa88f6f448decfbb06dc14db470c221dd38.zip | |
renderer_opengl: Implement RGB565 framebuffer format
Diffstat (limited to 'src/video_core/surface.cpp')
| -rw-r--r-- | src/video_core/surface.cpp | 5 |
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 | } |