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

[NFC] subgroups: clarify bs128 to uint4 conversion #1893

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Feb 12, 2024

There appears to have been some confusion over uint_mask during the initial reviews of the subgroup tests. Add a comment to clarify the purpose of the mask.

Use a 32-bit all-ones mask (0xffffffff) instead of a 64-bit all-ones mask to further clarify the intent, that is, don't delay discarding the upper 32 bits until the assignment but mask them out immediately.

Fixes #1203

StuartDBrady
StuartDBrady previously approved these changes Apr 4, 2024
Copy link
Contributor

@StuartDBrady StuartDBrady left a comment

Choose a reason for hiding this comment

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

Looks good to me.

There appears to have been some confusion over `uint_mask` during the
initial reviews of the subgroup tests.  Add a comment to clarify the
purpose of the mask.

Use a 32-bit all-ones mask (`0xffffffff`) instead of a 64-bit all-ones
mask to further clarify the intent, that is, don't delay discarding
the upper 32 bits until the assignment but mask them out immediately.

Fixes KhronosGroup#1203

Signed-off-by: Sven van Haastregt <[email protected]>
@svenvh svenvh force-pushed the subgroups-bs128 branch from 60c829d to 9d34676 Compare April 4, 2024 11:53
@svenvh svenvh changed the title [NFC] subgroups: clarify bs128 usage with comment [NFC] subgroups: clarify bs128 to uint4 conversion Apr 4, 2024
Copy link
Contributor

@StuartDBrady StuartDBrady left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@svenvh svenvh merged commit 48003e9 into KhronosGroup:main Apr 4, 2024
7 checks passed
@svenvh svenvh deleted the subgroups-bs128 branch April 4, 2024 13:12
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.

Subgroups tests - clarify initialization of bs128 to <unsigned long>(-1)
2 participants