summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-08-21 17:35:25 +0200
committerSubv <subv2112@gmail.com>2015-08-21 17:35:25 +0200
commitfef1462371b51fb5540817b76d30630868b2a961 (patch)
tree7068df3c389cbfd261cb0d78ee40ce228d8924b7 /src
parentSWRasterizer: Removed a todo. Verified with hwtests. (diff)
downloadyuzu-fef1462371b51fb5540817b76d30630868b2a961.tar
yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.gz
yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.bz2
yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.lz
yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.xz
yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.zst
yuzu-fef1462371b51fb5540817b76d30630868b2a961.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/pica.h2
-rw-r--r--src/video_core/rasterizer.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 6383e5d56..a47dddd75 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -442,7 +442,7 @@ struct Regs {
enum class StencilAction : u32 {
Keep = 0,
-
+ Zero = 1,
Replace = 2,
Increment = 3,
Decrement = 4,
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index c6557bf1a..25911e0a2 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -220,6 +220,9 @@ static u8 PerformStencilAction(Regs::StencilAction action, u8 old_stencil, u8 re
case Regs::StencilAction::Keep:
return old_stencil;
+ case Regs::StencilAction::Zero:
+ return 0;
+
case Regs::StencilAction::Replace:
return ref;