diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-07 10:55:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-07 10:55:14 -0400 |
commit | ff3859d48209c4931993c0f2d14994145b0e81f8 (patch) | |
tree | 4de2a9bd8614958fbf1055e08b70892611f045a8 /src/video_core/surface.cpp | |
parent | 10de8f2c60813ce79dd83e795f08fc8b62c6ffab (diff) | |
parent | ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd (diff) |
Merge pull request #11688 from Kelebek1/x8d42
Implement X8_D24 pixel format
Diffstat (limited to 'src/video_core/surface.cpp')
-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; |