diff options
| author | 2022-08-12 10:58:09 +0100 | |
|---|---|---|
| committer | 2022-10-07 14:13:45 +0100 | |
| commit | 752659aef3f16111981a097989dd7a5ddecff316 (patch) | |
| tree | 775fbe8d1a478b2b8c201d86432743d4f3ddb2a4 /src/video_core/surface.cpp | |
| parent | Merge pull request #6142 from lat9nq/prog_meta_ref_bind_address (diff) | |
| download | yuzu-752659aef3f16111981a097989dd7a5ddecff316.tar.gz yuzu-752659aef3f16111981a097989dd7a5ddecff316.tar.xz yuzu-752659aef3f16111981a097989dd7a5ddecff316.zip | |
Update 3D regs
Diffstat (limited to 'src/video_core/surface.cpp')
| -rw-r--r-- | src/video_core/surface.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index a2bf08294..6bd133d10 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp | |||
| @@ -73,17 +73,17 @@ bool SurfaceTargetIsArray(SurfaceTarget target) { | |||
| 73 | 73 | ||
| 74 | PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format) { | 74 | PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format) { |
| 75 | switch (format) { | 75 | switch (format) { |
| 76 | case Tegra::DepthFormat::S8_UINT_Z24_UNORM: | 76 | case Tegra::DepthFormat::Z24_UNORM_S8_UINT: |
| 77 | return PixelFormat::S8_UINT_D24_UNORM; | 77 | return PixelFormat::S8_UINT_D24_UNORM; |
| 78 | case Tegra::DepthFormat::D24S8_UNORM: | 78 | case Tegra::DepthFormat::S8Z24_UNORM: |
| 79 | return PixelFormat::D24_UNORM_S8_UINT; | 79 | return PixelFormat::D24_UNORM_S8_UINT; |
| 80 | case Tegra::DepthFormat::D32_FLOAT: | 80 | case Tegra::DepthFormat::Z32_FLOAT: |
| 81 | return PixelFormat::D32_FLOAT; | 81 | return PixelFormat::D32_FLOAT; |
| 82 | case Tegra::DepthFormat::D16_UNORM: | 82 | case Tegra::DepthFormat::Z16_UNORM: |
| 83 | return PixelFormat::D16_UNORM; | 83 | return PixelFormat::D16_UNORM; |
| 84 | case Tegra::DepthFormat::S8_UINT: | 84 | case Tegra::DepthFormat::S8_UINT: |
| 85 | return PixelFormat::S8_UINT; | 85 | return PixelFormat::S8_UINT; |
| 86 | case Tegra::DepthFormat::D32_FLOAT_S8X24_UINT: | 86 | case Tegra::DepthFormat::Z32_FLOAT_X24S8_UINT: |
| 87 | return PixelFormat::D32_FLOAT_S8_UINT; | 87 | return PixelFormat::D32_FLOAT_S8_UINT; |
| 88 | default: | 88 | default: |
| 89 | UNIMPLEMENTED_MSG("Unimplemented format={}", format); | 89 | UNIMPLEMENTED_MSG("Unimplemented format={}", format); |
| @@ -117,9 +117,9 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) | |||
| 117 | return PixelFormat::R32G32_UINT; | 117 | return PixelFormat::R32G32_UINT; |
| 118 | case Tegra::RenderTargetFormat::R16G16B16X16_FLOAT: | 118 | case Tegra::RenderTargetFormat::R16G16B16X16_FLOAT: |
| 119 | return PixelFormat::R16G16B16X16_FLOAT; | 119 | return PixelFormat::R16G16B16X16_FLOAT; |
| 120 | case Tegra::RenderTargetFormat::B8G8R8A8_UNORM: | 120 | case Tegra::RenderTargetFormat::A8R8G8B8_UNORM: |
| 121 | return PixelFormat::B8G8R8A8_UNORM; | 121 | return PixelFormat::B8G8R8A8_UNORM; |
| 122 | case Tegra::RenderTargetFormat::B8G8R8A8_SRGB: | 122 | case Tegra::RenderTargetFormat::A8R8G8B8_SRGB: |
| 123 | return PixelFormat::B8G8R8A8_SRGB; | 123 | return PixelFormat::B8G8R8A8_SRGB; |
| 124 | case Tegra::RenderTargetFormat::A2B10G10R10_UNORM: | 124 | case Tegra::RenderTargetFormat::A2B10G10R10_UNORM: |
| 125 | return PixelFormat::A2B10G10R10_UNORM; | 125 | return PixelFormat::A2B10G10R10_UNORM; |