diff options
| author | 2015-08-21 10:35:25 -0500 | |
|---|---|---|
| committer | 2015-08-21 10:35:25 -0500 | |
| commit | fef1462371b51fb5540817b76d30630868b2a961 (patch) | |
| tree | 7068df3c389cbfd261cb0d78ee40ce228d8924b7 /src/video_core | |
| parent | SWRasterizer: Removed a todo. Verified with hwtests. (diff) | |
| download | yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.gz yuzu-fef1462371b51fb5540817b76d30630868b2a961.tar.xz yuzu-fef1462371b51fb5540817b76d30630868b2a961.zip | |
SWRasterizer: Implemented stencil action 1 (GL_ZERO).
Verified with hwtests.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/pica.h | 2 | ||||
| -rw-r--r-- | src/video_core/rasterizer.cpp | 3 |
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 { | |||
| 442 | 442 | ||
| 443 | enum class StencilAction : u32 { | 443 | enum class StencilAction : u32 { |
| 444 | Keep = 0, | 444 | Keep = 0, |
| 445 | 445 | Zero = 1, | |
| 446 | Replace = 2, | 446 | Replace = 2, |
| 447 | Increment = 3, | 447 | Increment = 3, |
| 448 | Decrement = 4, | 448 | 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 | |||
| 220 | case Regs::StencilAction::Keep: | 220 | case Regs::StencilAction::Keep: |
| 221 | return old_stencil; | 221 | return old_stencil; |
| 222 | 222 | ||
| 223 | case Regs::StencilAction::Zero: | ||
| 224 | return 0; | ||
| 225 | |||
| 223 | case Regs::StencilAction::Replace: | 226 | case Regs::StencilAction::Replace: |
| 224 | return ref; | 227 | return ref; |
| 225 | 228 | ||