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: Don't wrap on 16bit destination format for blend mix. #5540

Merged
merged 2 commits into from
Feb 18, 2022

Conversation

lightningterror
Copy link
Contributor

@lightningterror lightningterror commented Feb 18, 2022

Description of Changes

GS-hw: Rename alpha_clamp to blend_mix.

GS-hw: Don't wrap on 16bit destination format for blend mix.
Helps Dog's Life blending, we shouldn't wrap as we do more blend math afterward which will be wrong if we wrapped before.

Rationale behind Changes

Solves blending issues on Dog's life.
Fixes #1004

Suggested Testing Steps

Test blending levels

Helps Dog's Life blending, we shouldn't wrap as we do more blend math afterward which will be wrong if we wrapped before.
@refractionpcsx2
Copy link
Member

refractionpcsx2 commented Feb 18, 2022

We should note this is also wrong as that means the result of the blend is stored as 32bit and not 16bit. We might be lucky and it doesn't really matter (as it seems to not for Dog's Life), but we should be aware that later we might have to say no hardware blend on 16bit target in order to get the correctly truncated colour values.

@lightningterror lightningterror merged commit 06766dd into master Feb 18, 2022
@lightningterror lightningterror deleted the blend-work10 branch February 18, 2022 18:01
lightningterror added a commit that referenced this pull request Feb 18, 2022
Allow to wrap on colclip.
For real tho, ideal solution is sw blend, doing any clamp/wrap is wrong on blend mix.
lightningterror added a commit that referenced this pull request Feb 18, 2022
Allow to wrap on colclip.
For real tho, ideal solution is sw blend, doing any clamp/wrap is wrong on blend mix.
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.

Dog's Life (PAL) - Dog gets black after a few seconds
2 participants