summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-27 05:22:59 +0100
committerGitHub <noreply@github.com>2018-11-27 05:22:59 +0100
commit1cd40f107f2681bf3df84aa148feb20a179d6c23 (patch)
treeccf9d2ff40734309cdb61ded841709216007b22d
parentMerge pull request #1804 from lioncash/cast (diff)
parentmorton: Fixup compiler warning (diff)
downloadyuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar
yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.gz
yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.bz2
yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.lz
yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.xz
yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.tar.zst
yuzu-1cd40f107f2681bf3df84aa148feb20a179d6c23.zip
-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