diff options
| author | 2019-02-12 21:44:20 -0500 | |
|---|---|---|
| committer | 2019-02-12 21:44:20 -0500 | |
| commit | cd542d5aacc3ac8eec5ca5be182a76da56c19d05 (patch) | |
| tree | 3e9b7ff5fe6f56e7ae492f776a6c5a9e3785c7ab /src/video_core/surface.cpp | |
| parent | Merge pull request #2114 from lioncash/global (diff) | |
| parent | Implement BGRA8 framebuffer format (diff) | |
| download | yuzu-cd542d5aacc3ac8eec5ca5be182a76da56c19d05.tar.gz yuzu-cd542d5aacc3ac8eec5ca5be182a76da56c19d05.tar.xz yuzu-cd542d5aacc3ac8eec5ca5be182a76da56c19d05.zip | |
Merge pull request #2099 from greggameplayer/BGRA8-Framebuffer-Real
Implement BGRA8 framebuffer format
Diffstat (limited to 'src/video_core/surface.cpp')
| -rw-r--r-- | src/video_core/surface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index 2f6612a35..044ba116a 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp | |||
| @@ -426,6 +426,8 @@ PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat | |||
| 426 | switch (format) { | 426 | switch (format) { |
| 427 | case Tegra::FramebufferConfig::PixelFormat::ABGR8: | 427 | case Tegra::FramebufferConfig::PixelFormat::ABGR8: |
| 428 | return PixelFormat::ABGR8U; | 428 | return PixelFormat::ABGR8U; |
| 429 | case Tegra::FramebufferConfig::PixelFormat::BGRA8: | ||
| 430 | return PixelFormat::BGRA8; | ||
| 429 | default: | 431 | default: |
| 430 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); | 432 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); |
| 431 | UNREACHABLE(); | 433 | UNREACHABLE(); |