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

BlendingState: Set source and destination alpha factors in logic op workaround #10441

Merged
merged 1 commit into from Feb 28, 2022

Conversation

OatmealDome
Copy link
Member

@OatmealDome OatmealDome commented Feb 7, 2022

Title. Kirby's Air Ride uses the alpha value as a multiplier for the pixel's color in shadow rendering. If we don't update it, then the alpha ends up being set to 0 for the entire frame, causing the entire world to be shadowed in darkness as every color gets multiplied by zero.

The FifoCI diff can be found here. Doesn't seem to affect any other games.

Fixes Kirby's Air Ride on Intel Macs.

@OatmealDome OatmealDome marked this pull request as draft February 7, 2022 20:37
@OatmealDome OatmealDome changed the title [WIP] BlendingState: Improve logic ops workaround BlendingState: Set source and destination alpha factors in logic op workaround Feb 7, 2022
@OatmealDome OatmealDome marked this pull request as ready for review February 7, 2022 21:08
@locofocos
Copy link

Thanks for building this! I've been affected by this exact bug on my Intel Mac and my Pixel 3a (android build) using the Vulkan video backend. I tested the android apk from your CI build, and Kirby's Air Ride looks perfect now on my Pixel 3a 👍

I tried testing the "osx-universal" dmg from your CI build on my mac, but it's crashing when I try to open any game, probably something unrelated.

@JMC47 JMC47 merged commit f65dc6d into dolphin-emu:master Feb 28, 2022
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants