mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
DOUBLEINVSRCALPHA and DOUBLEINVDSTALPHA are 255 - 2a without a clamp: for a >= 128 the factor is negative and its term subtracts, -(((2c + 1) * (2|f| + 1)) >> 10), with only the sum clamped. Measured with every factor and equation against a CPU-filled destination (gpu/probe exp116, all exact). The x86 jit clamps the factors at 0, so these blends use the C++ pixel function. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
To get to 100% compatibility, we will need a software renderer as there are games out there that do tricks that can't really be faked in a sensible way. Useful for homebrew too that mix sw and accel rendering.