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

softgpu: Handle infnan fog coefficients better #16485

Merged
merged 4 commits into from
Dec 2, 2022

Conversation

unknownbrackets
Copy link
Collaborator

This fixes the sky in Outrun, which was broken by my optimization to use a dot for the fog constant. See #11380 for the correct behavior, and #16131 for the frame dump.

Also slip in some debugger improvements I added while checking that.

-[Unknown]

For the GE debugger and CPU debugger, it's annoying sometimes to express
everything in hex.  This allows using an i or u prefix to get decimal.
This way you can break when a register is changed and prim count is in a
certain range, which can be convenient.
If we ended up with a dot product that had opposing inf signs, the add
would result in NAN and cause problems.
@hrydgard
Copy link
Owner

hrydgard commented Dec 2, 2022

Nice!

@hrydgard hrydgard merged commit 116bc9d into hrydgard:master Dec 2, 2022
@unknownbrackets unknownbrackets deleted the softgpu-fog-nan branch December 2, 2022 18:52
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.

2 participants