diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-07 16:55:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-07 16:55:14 +0200 |
commit | ff3859d48209c4931993c0f2d14994145b0e81f8 (patch) | |
tree | 4de2a9bd8614958fbf1055e08b70892611f045a8 /src/video_core/surface.cpp | |
parent | Merge pull request #11684 from Kelebek1/disable_push_descriptor_maxwell (diff) | |
parent | Implement X8_D24 format (diff) | |
download | yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.tar yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.tar.gz yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.tar.bz2 yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.tar.lz yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.tar.xz yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.tar.zst yuzu-ff3859d48209c4931993c0f2d14994145b0e81f8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/surface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index e16cd5e73..5b3c7aa5a 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp @@ -85,6 +85,8 @@ PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format) { return PixelFormat::S8_UINT; case Tegra::DepthFormat::Z32_FLOAT_X24S8_UINT: return PixelFormat::D32_FLOAT_S8_UINT; + case Tegra::DepthFormat::X8Z24_UNORM: + return PixelFormat::X8_D24_UNORM; default: UNIMPLEMENTED_MSG("Unimplemented format={}", format); return PixelFormat::S8_UINT_D24_UNORM; @@ -202,6 +204,7 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format) { switch (format) { case Service::android::PixelFormat::Rgba8888: + case Service::android::PixelFormat::Rgbx8888: return PixelFormat::A8B8G8R8_UNORM; case Service::android::PixelFormat::Rgb565: return PixelFormat::R5G6B5_UNORM; |