rpcs3
rpcs3 copied to clipboard
Add various SPU patterns
- Add accurate_re intrinsic
- Add pattern for accurate_re * value = full divison
- Add variants of fast division
- Add variants of sqrt
- Fix pattern recognition by using peek_through_bitcasts (@Nekotekina's fix)
The Need for Speed Most Wanted audio is broken on this PR Build. RPCS3.log.gz
Testing needed?
This Pull Request has a positive impact on PlayStation Home it seems :
Now the MLAA anti-aliasing works with UI elements while before, it was a complete black-screen.
I disabled one pattern, needs testing.
Same results, the NFS audio is still broken on the latest PR build. RPCS3.log.gz
Rebased on Accurate FI PR and found the problematic shortcut, NFS now works.
Can't wait for this to be merged into master branch ! )) A lot of GT6 softlocks are gone with this PR ! (maybe all of them)
Moved the spu_re_accurate(b) * a = a/b patterns to relaxed as they were the ones creating issues in Resistance 2.
This PR doesn't fix audio in Blur I'm afraid, it still needs Accurate Xfloat to stop audio from randomly disappearing completely and game stability. (tested latest commit only).
I couldn't find any regression on my games. Accurate now should be more accurate than it was, approximate may be very slightly slower but work with more games and relaxed should be faster than it was.
Can you add description of the instruction patterns themselfs in the pr description. Such as FREST(x) => FI(x) = 1/x or sonething So it would be easier to follow and review
1.00000011920928955078125f(1.0f with lowest fraction bit set)
If this is what it is I rather have a bits representation such as bit_cast<f32>(bit_cast<u32>(1.f) + 1)
instead of relying on the compiler to round it correctly and being more intuiative to read.
This PR introduced a new deadlock in MGO (and presumably MGS4) when using relaxed xfloat.
It seems to be stemming from the FI instruction, and the deadlock happens in control_task.spu.task
.
Previously MGO only needed approximate FM, FMA, and FNMS.
Well this broke lbp2 brainy cakes level making story no longer beatable
Well this broke lbp2 brainy cakes level making story no longer beatable
the level was already broken since february if im not wrong
the level was already broken since february if im not wrong
This PR was merged in February.
the level was already broken since february if im not wrong
well downgrading to the version before this fixes it and it was merged in feb so uh
the level was already broken since february if im not wrong
well downgrading to the version before this fixes it and it was merged in feb so uh
lmao excuse my foolishness