Home
last modified time | relevance | path

Searched refs:new_bit_size (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_opt_load_store_vectorize.c631 new_bitsize_acceptable(struct vectorize_ctx *ctx, unsigned new_bit_size, in new_bitsize_acceptable() argument
634 if (size % new_bit_size != 0) in new_bitsize_acceptable()
637 unsigned new_num_components = size / new_bit_size; in new_bitsize_acceptable()
645 common_bit_size = MIN2(common_bit_size, new_bit_size); in new_bitsize_acceptable()
648 if (new_bit_size / common_bit_size > NIR_MAX_VEC_COMPONENTS) in new_bitsize_acceptable()
653 new_bit_size, new_num_components, in new_bitsize_acceptable()
661 if (low_size % new_bit_size != 0) in new_bitsize_acceptable()
663 if (high_size % new_bit_size != 0) in new_bitsize_acceptable()
667 if (!nir_component_mask_can_reinterpret(write_mask, get_bit_size(low), new_bit_size)) in new_bitsize_acceptable()
671 if (!nir_component_mask_can_reinterpret(write_mask, get_bit_size(high), new_bit_size)) in new_bitsize_acceptable()
[all …]
Dnir_deref.c1205 const unsigned new_bit_size = glsl_get_bit_size(parent->type); in opt_load_vec_deref() local
1211 load->dest.ssa.bit_size = new_bit_size; in opt_load_vec_deref()
1217 if (old_bit_size != new_bit_size) in opt_load_vec_deref()
1247 const unsigned new_bit_size = glsl_get_bit_size(parent->type); in opt_store_vec_deref() local
1254 if (old_bit_size != new_bit_size) in opt_store_vec_deref()
1255 data = nir_bitcast_vector(b, data, new_bit_size); in opt_store_vec_deref()
1263 new_bit_size); in opt_store_vec_deref()
Dnir.c46 unsigned new_bit_size) in nir_component_mask_can_reinterpret() argument
49 assert(util_is_power_of_two_nonzero(new_bit_size)); in nir_component_mask_can_reinterpret()
51 if (old_bit_size == new_bit_size) in nir_component_mask_can_reinterpret()
54 if (old_bit_size == 1 || new_bit_size == 1) in nir_component_mask_can_reinterpret()
57 if (old_bit_size > new_bit_size) { in nir_component_mask_can_reinterpret()
58 unsigned ratio = old_bit_size / new_bit_size; in nir_component_mask_can_reinterpret()
68 if (start % new_bit_size != 0) in nir_component_mask_can_reinterpret()
70 if (count % new_bit_size != 0) in nir_component_mask_can_reinterpret()
82 unsigned new_bit_size) in nir_component_mask_reinterpret() argument
84 assert(nir_component_mask_can_reinterpret(mask, old_bit_size, new_bit_size)); in nir_component_mask_reinterpret()
[all …]
Dnir.h81 unsigned new_bit_size);
85 unsigned new_bit_size);