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

Fix shader integer from/to double conversion #2831

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Conversation

gdkchan
Copy link
Member

@gdkchan gdkchan commented Nov 10, 2021

This fixes the Invalid reinterpret cast from "F32" to "F64" exception that would happen on any shader using I2F or F2I instructions to convert between double and integer types. That was happening because those float conversion instructions have a 32-bit float type, while it was trying to store them as a double, which made it try to reinterpret the value. It was fixed by adding new instructions for explicit conversion from and to double precision.

@gdkchan gdkchan added gpu Related to Ryujinx.Graphics fix Fix something labels Nov 10, 2021
@MadDragon1846
Copy link

This lets World War Z load into the menus instead of crashing before the title screen. (Unfortunately though the game runs really bad in the menus, then throws up an error when you try to start a match).

Copy link
Contributor

@marysaka marysaka left a comment

Choose a reason for hiding this comment

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

nice catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something gpu Related to Ryujinx.Graphics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants