diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-20 05:51:16 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:33 +0100 |
commit | ca12a77670d1463c2257bcdd829bb9bc56f1461b (patch) | |
tree | 8c6f7781383232909584d65e982376cb2e7ecd46 /src/video_core/surface.cpp | |
parent | hle: nvflinger: BufferQueueProducer: Handle SetPreallocatedBuffer with empty buffer. (diff) | |
download | yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.gz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.bz2 yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.lz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.xz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.zst yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.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 f7d29534e..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(android::PixelFormat format) { +PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format) { switch (format) { - case android::PixelFormat::Rgba8888: + case Service::android::PixelFormat::Rgba8888: return PixelFormat::A8B8G8R8_UNORM; - case android::PixelFormat::Rgb565: + case Service::android::PixelFormat::Rgb565: return PixelFormat::R5G6B5_UNORM; - case android::PixelFormat::Bgra8888: + case Service::android::PixelFormat::Bgra8888: return PixelFormat::B8G8R8A8_UNORM; default: UNIMPLEMENTED_MSG("Unimplemented format={}", format); |