Lines Matching defs:value
65 ballot_type_to_uint(nir_builder *b, nir_ssa_def *value,
71 assert(value->num_components == 4 && value->bit_size == 32);
73 return nir_extract_bits(b, &value, 1, 0, options->ballot_components,
78 uint_to_ballot_type(nir_builder *b, nir_ssa_def *value,
82 assert(util_is_power_of_two_nonzero(value->num_components));
87 if (total_bits > value->bit_size * value->num_components)
88 value = nir_pad_vector_imm_int(b, value, 0, total_bits / value->bit_size);
90 value = nir_bitcast_vector(b, value, bit_size);
100 if (value->num_components > num_components)
101 value = nir_trim_vector(b, value, num_components);
103 return value;
113 nir_ssa_def *value = nir_ssa_for_src(b, intrin->src[0],
124 /* value */
125 chan_intrin->src[0] = nir_src_for_ssa(nir_channel(b, value, i));
150 nir_ssa_def *value = intrin->src[0].ssa;
159 chan_intrin->src[0] = nir_src_for_ssa(nir_channel(b, value, i));
176 nir_ssa_def *value = intrin->src[0].ssa;
181 nir_ssa_def *rfi = nir_read_first_invocation(b, nir_channel(b, value, i));
185 is_eq = nir_feq(b, rfi, nir_channel(b, value, i));
187 is_eq = nir_ieq(b, rfi, nir_channel(b, value, i));
343 * reading from first_id gets the correct value, so that we can then kill
345 * ensure that first_id invocation gets the correct value. It only won't be
346 * assigned the correct value already if the invocation it's reading from
391 /* Return a ballot-mask-sized value which represents "val" sign-extended and
410 * masks out the high bits of the shift value already, so in case there's
412 * already has the right value and all we have to do is fixup the other
497 * "ballot_bit_size" and since nir_ushr masks the shift value it will
499 * in all cases. The other components will also get the correct value in
517 vec_bit_count(nir_builder *b, nir_ssa_def *value)
519 nir_ssa_def *vec_result = nir_bit_count(b, value);
521 for (unsigned i = 1; i < value->num_components; i++)
527 vec_find_lsb(nir_builder *b, nir_ssa_def *value)
529 nir_ssa_def *vec_result = nir_find_lsb(b, value);
531 for (int i = value->num_components - 1; i >= 0; i--) {
535 nir_iadd_imm(b, channel, i * value->bit_size),
542 vec_find_msb(nir_builder *b, nir_ssa_def *value)
544 nir_ssa_def *vec_result = nir_ufind_msb(b, value);
546 for (unsigned i = 0; i < value->num_components; i++) {
550 nir_iadd_imm(b, channel, i * value->bit_size),