diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/morton.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/morton.cpp b/src/video_core/morton.cpp index f14abba7d..8c3b97463 100644 --- a/src/video_core/morton.cpp +++ b/src/video_core/morton.cpp | |||
| @@ -183,13 +183,14 @@ static constexpr ConversionArray linear_to_morton_fns = { | |||
| 183 | // clang-format on | 183 | // clang-format on |
| 184 | }; | 184 | }; |
| 185 | 185 | ||
| 186 | constexpr MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { | 186 | static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { |
| 187 | switch (mode) { | 187 | switch (mode) { |
| 188 | case MortonSwizzleMode::MortonToLinear: | 188 | case MortonSwizzleMode::MortonToLinear: |
| 189 | return morton_to_linear_fns[static_cast<std::size_t>(format)]; | 189 | return morton_to_linear_fns[static_cast<std::size_t>(format)]; |
| 190 | case MortonSwizzleMode::LinearToMorton: | 190 | case MortonSwizzleMode::LinearToMorton: |
| 191 | return linear_to_morton_fns[static_cast<std::size_t>(format)]; | 191 | return linear_to_morton_fns[static_cast<std::size_t>(format)]; |
| 192 | } | 192 | } |
| 193 | UNREACHABLE(); | ||
| 193 | } | 194 | } |
| 194 | 195 | ||
| 195 | /// 8x8 Z-Order coordinate from 2D coordinates | 196 | /// 8x8 Z-Order coordinate from 2D coordinates |