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

D3D: Restore workaround for erroneous NaN optimization #11603

Merged

Conversation

Dentomologist
Copy link
Contributor

The HLSL compiler incorrectly decides isnan can't be true, so this workaround was originally added in 5.0-15109 but was dropped during the conversion to SPIR-V in 5.0-16815. I've readded it and converted it to glsl.

This bug rebroke shadow-eyes.dff on Direct3D 11 and 12 and gave console warnings during shader compilation.

The HLSL compiler incorrectly decides isnan can't be true, so this
workaround was originally added in 52c8273 but lost during the
conversion to SPIR-V.
@iwubcode

This comment was marked as outdated.

Copy link
Contributor

@iwubcode iwubcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After re-reading the original review, seems ok. Untested but matches previous functionality.

Copy link
Member

@OatmealDome OatmealDome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, seems to work.

@OatmealDome OatmealDome merged commit c0d0a04 into dolphin-emu:master Feb 26, 2023
@Dentomologist Dentomologist deleted the fix_d3d_nan_regression branch February 26, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants