mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-17 17:43:13 +00:00
BlendState: Use masking as a fastpath for the logic op NO_OP.
This commit is contained in:
parent
23b0faeba5
commit
f6c7a258ed
@ -107,6 +107,14 @@ void BlendingState::Generate(const BPMemory& bp)
|
|||||||
|
|
||||||
// The logicop bit has the lowest priority
|
// The logicop bit has the lowest priority
|
||||||
else if (bp.blendmode.logicopenable)
|
else if (bp.blendmode.logicopenable)
|
||||||
|
{
|
||||||
|
if (bp.blendmode.logicmode == BlendMode::NOOP)
|
||||||
|
{
|
||||||
|
// Fast path for Kirby's Return to Dreamland, they use it with dstAlpha.
|
||||||
|
colorupdate = false;
|
||||||
|
alphaupdate = alphaupdate && dstalpha;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
logicopenable = true;
|
logicopenable = true;
|
||||||
logicmode = bp.blendmode.logicmode;
|
logicmode = bp.blendmode.logicmode;
|
||||||
@ -116,4 +124,5 @@ void BlendingState::Generate(const BPMemory& bp)
|
|||||||
// TODO: Not supported by backends.
|
// TODO: Not supported by backends.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user