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 bit rotates by using == 0 instead of != 0 for mask_is_zero. #1129

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

eddyb
Copy link
Contributor

@eddyb eddyb commented Feb 7, 2024

(no idea what happened here, the variable name alone should've made this easy to spot, but it took @chrisliebaer seeing the broken expression in SPIRV-Cross output, to narrow it down)

@eddyb eddyb enabled auto-merge (rebase) February 7, 2024 09:13
@fornwall fornwall self-requested a review February 7, 2024 09:32
Copy link
Contributor

@fornwall fornwall left a comment

Choose a reason for hiding this comment

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

Nice!

@eddyb eddyb merged commit 3689d11 into EmbarkStudios:main Feb 7, 2024
8 checks passed
@eddyb eddyb deleted the rotate-me-right-around-zero branch February 7, 2024 17:07
@eddyb eddyb restored the rotate-me-right-around-zero branch February 7, 2024 17:07
@eddyb eddyb deleted the rotate-me-right-around-zero branch February 7, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integer bitwise rotate miscompilation
2 participants