summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-11-27 03:21:57 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2018-11-27 03:22:57 +0100
commit237c2026e98682d3dfb2c186fc4e0e8dc47721e3 (patch)
tree8d0ca13459e4e6f3dcbb15e539959fe77c10febd /src/video_core
parentMerge pull request #1794 from Tinob/master (diff)
downloadyuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.tar
yuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.tar.gz
yuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.tar.bz2
yuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.tar.lz
yuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.tar.xz
yuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.tar.zst
yuzu-237c2026e98682d3dfb2c186fc4e0e8dc47721e3.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/morton.cpp3
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 = {
// clang-format on
};
-constexpr MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) {
+static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) {
switch (mode) {
case MortonSwizzleMode::MortonToLinear:
return morton_to_linear_fns[static_cast<std::size_t>(format)];
case MortonSwizzleMode::LinearToMorton:
return linear_to_morton_fns[static_cast<std::size_t>(format)];
}
+ UNREACHABLE();
}
/// 8x8 Z-Order coordinate from 2D coordinates