Commit 54937d82 authored by Daniel Schürmann's avatar Daniel Schürmann Committed by Bas Nieuwenhuizen
Browse files

nir: use ballot_bit_size when lowering ballot_bitfield_extract

Reviewed-by: default avatarJason Ekstrand <>
Reviewed-by: default avatarBas Nieuwenhuizen <>
parent 4d802df3
......@@ -359,7 +359,7 @@ lower_subgroups_intrin(nir_builder *b, nir_intrinsic_instr *intrin,
return nir_i2b(b, nir_iand(b, nir_ushr(b, int_val,
nir_imm_int(b, 1)));
nir_imm_intN_t(b, 1, options->ballot_bit_size)));
case nir_intrinsic_ballot_bit_count_reduce:
return nir_bit_count(b, int_val);
case nir_intrinsic_ballot_find_lsb:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment