Implement stencil action 2 in SW renderer

This commit is contained in:
MoochMcGee 2015-07-21 19:50:27 -05:00
parent 3a5352baf8
commit bd371f3a5b
2 changed files with 4 additions and 0 deletions

View file

@ -431,6 +431,7 @@ struct Regs {
enum class StencilAction : u32 {
Keep = 0,
AndReverse = 2,
Xor = 5,
};

View file

@ -221,6 +221,9 @@ static u8 PerformStencilAction(Regs::StencilAction action, u8 dest, u8 ref) {
case Regs::StencilAction::Keep:
return dest;
case Regs::StencilAction::AndReverse:
return dest & ~ref;
case Regs::StencilAction::Xor:
return dest ^ ref;