diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-03-25 03:36:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 03:36:55 +0100 |
commit | 0608336c60c62b74af73422115ee0e0797362e8f (patch) | |
tree | 33c9b4d79130736839fc28030950d401bf4fd81b /src/video_core/surface.cpp | |
parent | Merge pull request #8068 from ameerj/shader-if-false (diff) | |
parent | Update project license to GPL v3. (diff) | |
download | yuzu-0608336c60c62b74af73422115ee0e0797362e8f.tar yuzu-0608336c60c62b74af73422115ee0e0797362e8f.tar.gz yuzu-0608336c60c62b74af73422115ee0e0797362e8f.tar.bz2 yuzu-0608336c60c62b74af73422115ee0e0797362e8f.tar.lz yuzu-0608336c60c62b74af73422115ee0e0797362e8f.tar.xz yuzu-0608336c60c62b74af73422115ee0e0797362e8f.tar.zst yuzu-0608336c60c62b74af73422115ee0e0797362e8f.zip |
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..5f428d35d 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp @@ -190,13 +190,13 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) } } -PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format) { +PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format) { switch (format) { - case Tegra::FramebufferConfig::PixelFormat::A8B8G8R8_UNORM: + case Service::android::PixelFormat::Rgba8888: return PixelFormat::A8B8G8R8_UNORM; - case Tegra::FramebufferConfig::PixelFormat::RGB565_UNORM: + case Service::android::PixelFormat::Rgb565: return PixelFormat::R5G6B5_UNORM; - case Tegra::FramebufferConfig::PixelFormat::B8G8R8A8_UNORM: + case Service::android::PixelFormat::Bgra8888: return PixelFormat::B8G8R8A8_UNORM; default: UNIMPLEMENTED_MSG("Unimplemented format={}", format); |