Skip to content

Fix sub_group_inverse_ballot testing#2695

Open
StuartDBrady wants to merge 4 commits into
KhronosGroup:mainfrom
StuartDBrady:fix-inverse-ballot-test
Open

Fix sub_group_inverse_ballot testing#2695
StuartDBrady wants to merge 4 commits into
KhronosGroup:mainfrom
StuartDBrady:fix-inverse-ballot-test

Conversation

@StuartDBrady
Copy link
Copy Markdown
Contributor

The previous test would still pass even if the implementation always
returned true.

Now that we use BALLOT_BIT_OPS for inverse_ballot, we no longer need
sub_group_inverse_ballot_source. We use sub_group_ballot_bit_ops_source
instead.

This change also renames BALLOT_COUNT_SCAN_FIND to BALLOT_BIT_OPS,
along with renaming rft_arith to rft_bit_ops, test_params_arith to
test_params_bit_ops, and sub_group_ballot_bit_scan_find_source to
sub_group_ballot_bit_ops_source.

It also uses cl_uint4_to_bs128 in BALLOT_BIT_OPS::chk and adds
static_asserts for BallotOp values.

Also rename rft_arith to rft_bit_ops, test_params_arith to
test_params_bit_ops, and sub_group_ballot_bit_scan_find_source to
sub_group_ballot_bit_ops_source.

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
Signed-off-by: Stuart Brady <stuart.brady@arm.com>
Signed-off-by: Stuart Brady <stuart.brady@arm.com>
The previous test would still pass even if the implementation always
returned true.

Now that we use BALLOT_BIT_OPS for inverse_ballot, we no longer need
sub_group_inverse_ballot_source. We use sub_group_ballot_bit_ops_source
instead.

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
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