Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GS/HW: Fix some channel shuffle and target match behaviour #10458

Merged
merged 3 commits into from
Dec 25, 2023

Conversation

refractionpcsx2
Copy link
Member

@refractionpcsx2 refractionpcsx2 commented Dec 24, 2023

Description of Changes

Fixes some behaviour for alpha shuffles, also fix handling of dst matches when target is used as a source or the entire content is invalidated.

Rationale behind Changes

Channel shuffle change: Alpha just wasnt' handled, there was a note there saying "let's choose blue" like a flip of a coin.

DST Matches change: There were cases where games were using a target as a different format, or adding an alpha channel to a 24bit value, but things were getting out of sync. Terminator 3 was using this with old data in the RGB (where the depth was), Final Fantasy X-2 used part of the Z buffer as a 16bit target, but this later got completely cleared and we weren't removing the target due to the valid size being different, now we invalidate dst matches based on the area drawn to them.

Suggested Testing Steps

Check The Terminator 3 and the menus in Final Fantasy X-2. Maybe a sprinkle of other games.

Final Fantasy X-2:
Master:
image
PR:
image

Terminator 3:
Master:
image
PR:
image

@refractionpcsx2 refractionpcsx2 merged commit e5a87c7 into master Dec 25, 2023
22 checks passed
@refractionpcsx2 refractionpcsx2 deleted the gs_shuf_dst branch December 25, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants