aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-08-21 11:01:42 -0500
committerSubv <subv2112@gmail.com>2015-08-21 11:01:42 -0500
commitaee8f01e0ad245471a968966022d854be84b7da5 (patch)
treead6a2b0a93303caf6c6823a52a676931498b29ce /src/video_core/rasterizer.cpp
parent2caf213ae0a83b29efc4366b5f4f83568e26ab3d (diff)
SWRasterizer: Implemented stencil ops 6 and 7.
IncrementWrap and DecrementWrap, verified with hwtests.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 25911e0a23..b6c0e1bfff 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -237,6 +237,12 @@ static u8 PerformStencilAction(Regs::StencilAction action, u8 old_stencil, u8 re
case Regs::StencilAction::Invert:
return ~old_stencil;
+ case Regs::StencilAction::IncrementWrap:
+ return old_stencil + 1;
+
+ case Regs::StencilAction::DecrementWrap:
+ return old_stencil - 1;
+
default:
LOG_CRITICAL(HW_GPU, "Unknown stencil action %x", (int)action);
UNIMPLEMENTED();