Home
last modified time | relevance | path

Searched refs:common_bit_size (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_builder.h962 unsigned common_bit_size = dest_bit_size; in nir_extract_bits() local
964 common_bit_size = MIN2(common_bit_size, srcs[i]->bit_size); in nir_extract_bits()
966 common_bit_size = MIN2(common_bit_size, (1u << (ffs(first_bit) - 1))); in nir_extract_bits()
969 assert(common_bit_size >= 8); in nir_extract_bits()
972 assert(num_bits / common_bit_size <= ARRAY_SIZE(common_comps)); in nir_extract_bits()
980 for (unsigned i = 0; i < num_bits / common_bit_size; i++) { in nir_extract_bits()
981 const unsigned bit = first_bit + (i * common_bit_size); in nir_extract_bits()
990 assert(bit + common_bit_size <= src_end_bit); in nir_extract_bits()
996 if (srcs[src_idx]->bit_size > common_bit_size) { in nir_extract_bits()
997 nir_ssa_def *unpacked = nir_unpack_bits(b, comp, common_bit_size); in nir_extract_bits()
[all …]
Dnir_opt_load_store_vectorize.c667 unsigned common_bit_size = MIN2(get_bit_size(low), get_bit_size(high)); in new_bitsize_acceptable() local
668 common_bit_size = MIN2(common_bit_size, new_bit_size); in new_bitsize_acceptable()
670 common_bit_size = MIN2(common_bit_size, (1u << (ffs(high_offset * 8) - 1))); in new_bitsize_acceptable()
671 if (new_bit_size / common_bit_size > NIR_MAX_VEC_COMPONENTS) in new_bitsize_acceptable()