summaryrefslogtreecommitdiffstats
path: root/src/video_core/swrasterizer
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2017-08-28 10:21:51 +0200
committerGitHub <noreply@github.com>2017-08-28 10:21:51 +0200
commit647f017c6d42121808aa4522049e3ea8f4d5ed31 (patch)
tree38f1ac4e26d827d64a8e09d168da24dea9c56286 /src/video_core/swrasterizer
parentMerge pull request #2897 from bunnei/telemetry-ui (diff)
parentWarnings: Fixed a few missing-return warnings in video_core. (diff)
downloadyuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar
yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.gz
yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.bz2
yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.lz
yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.xz
yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.zst
yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.zip
Diffstat (limited to 'src/video_core/swrasterizer')
-rw-r--r--src/video_core/swrasterizer/framebuffer.cpp2
-rw-r--r--src/video_core/swrasterizer/texturing.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer/framebuffer.cpp b/src/video_core/swrasterizer/framebuffer.cpp
index 7de3aac75..f34eab6cf 100644
--- a/src/video_core/swrasterizer/framebuffer.cpp
+++ b/src/video_core/swrasterizer/framebuffer.cpp
@@ -352,6 +352,8 @@ u8 LogicOp(u8 src, u8 dest, FramebufferRegs::LogicOp op) {
case FramebufferRegs::LogicOp::OrInverted:
return ~src | dest;
}
+
+ UNREACHABLE();
};
} // namespace Rasterizer
diff --git a/src/video_core/swrasterizer/texturing.cpp b/src/video_core/swrasterizer/texturing.cpp
index 4f02b93f2..79b1ce841 100644
--- a/src/video_core/swrasterizer/texturing.cpp
+++ b/src/video_core/swrasterizer/texturing.cpp
@@ -89,6 +89,8 @@ Math::Vec3<u8> GetColorModifier(TevStageConfig::ColorModifier factor,
case ColorModifier::OneMinusSourceBlue:
return (Math::Vec3<u8>(255, 255, 255) - values.bbb()).Cast<u8>();
}
+
+ UNREACHABLE();
};
u8 GetAlphaModifier(TevStageConfig::AlphaModifier factor, const Math::Vec4<u8>& values) {
@@ -119,6 +121,8 @@ u8 GetAlphaModifier(TevStageConfig::AlphaModifier factor, const Math::Vec4<u8>&
case AlphaModifier::OneMinusSourceBlue:
return 255 - values.b();
}
+
+ UNREACHABLE();
};
Math::Vec3<u8> ColorCombine(TevStageConfig::Operation op, const Math::Vec3<u8> input[3]) {