pcsx2
pcsx2 copied to clipboard
GS-hw: Further optimize blending equations.
Description of Changes
GS-hw: Further optimize blending equations. Allow to run free sw blend with no texture barriers, more speed for all renderers.
CLAMP 1, negative result will be clamped to 0. Condition 1: (0 - Cs)*Alpha + 0, (0 - Cd)*Alpha + 0 Condition 2: Alpha is either As or F higher than 1.0f (0 - Cd)*Alpha + Cd, (0 - Cs)*F + Cs
Rationale behind Changes
More brr when using blending.
Suggested Testing Steps
Test blending.
With the changes cleaned up and done properly I wasn't able to find any test case that hits the code, maybe not worth committing.
I'm sorry but I've seen "more brr" in more PRs than I can count. what does this mean?
Goes faster.
Do you wanna run this through the GS Dump runner (after a rebase)? see if anything changes
I'll just merge it instead, should be fine, since I didn't manage to find a game that uses it.