diff options
| author | 2021-11-11 18:13:35 -0800 | |
|---|---|---|
| committer | 2022-03-24 18:13:32 -0700 | |
| commit | d456b9d554da32e4353ba6e837e1cb8690782a9d (patch) | |
| tree | 75029812af06aabfcc83d29098db4ff85e929ea5 /src/video_core/surface.cpp | |
| parent | hle: nvflinger: Add implementation for GraphicBuffer class. (diff) | |
| download | yuzu-d456b9d554da32e4353ba6e837e1cb8690782a9d.tar.gz yuzu-d456b9d554da32e4353ba6e837e1cb8690782a9d.tar.xz yuzu-d456b9d554da32e4353ba6e837e1cb8690782a9d.zip | |
hle: nvflinger: Move PixelFormat to its own header.
Diffstat (limited to 'src/video_core/surface.cpp')
| -rw-r--r-- | src/video_core/surface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index a36015c8c..f7d29534e 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp | |||
| @@ -190,13 +190,13 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) | |||
| 190 | } | 190 | } |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format) { | 193 | PixelFormat PixelFormatFromGPUPixelFormat(android::PixelFormat format) { |
| 194 | switch (format) { | 194 | switch (format) { |
| 195 | case Tegra::FramebufferConfig::PixelFormat::A8B8G8R8_UNORM: | 195 | case android::PixelFormat::Rgba8888: |
| 196 | return PixelFormat::A8B8G8R8_UNORM; | 196 | return PixelFormat::A8B8G8R8_UNORM; |
| 197 | case Tegra::FramebufferConfig::PixelFormat::RGB565_UNORM: | 197 | case android::PixelFormat::Rgb565: |
| 198 | return PixelFormat::R5G6B5_UNORM; | 198 | return PixelFormat::R5G6B5_UNORM; |
| 199 | case Tegra::FramebufferConfig::PixelFormat::B8G8R8A8_UNORM: | 199 | case android::PixelFormat::Bgra8888: |
| 200 | return PixelFormat::B8G8R8A8_UNORM; | 200 | return PixelFormat::B8G8R8A8_UNORM; |
| 201 | default: | 201 | default: |
| 202 | UNIMPLEMENTED_MSG("Unimplemented format={}", format); | 202 | UNIMPLEMENTED_MSG("Unimplemented format={}", format); |