Home
last modified time | relevance | path

Searched refs:num_comp (Results 1 – 12 of 12) sorted by relevance

/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_64b.c78 unsigned num_comp = nir_intrinsic_src_components(intr, 0); in lower_64b_intrinsics() local
80 nir_intrinsic_write_mask(intr) : BITSET_MASK(num_comp); in lower_64b_intrinsics()
81 nir_ssa_def *val = nir_ssa_for_src(b, intr->src[0], num_comp); in lower_64b_intrinsics()
84 for (unsigned i = 0; i < num_comp; i++) { in lower_64b_intrinsics()
107 unsigned num_comp = nir_intrinsic_dest_components(intr); in lower_64b_intrinsics() local
115 assert(num_comp == 1); in lower_64b_intrinsics()
127 nir_ssa_def *components[num_comp]; in lower_64b_intrinsics()
143 for (unsigned i = 0; i < num_comp; i++) { in lower_64b_intrinsics()
160 for (unsigned i = 0; i < num_comp; i++) { in lower_64b_intrinsics()
166 return nir_build_alu_src_arr(b, nir_op_vec(num_comp), components); in lower_64b_intrinsics()
[all …]
Dir3_nir_lower_wide_load_store.c58 unsigned num_comp = nir_intrinsic_src_components(intr, 0); in lower_wide_load_store() local
60 nir_ssa_def *val = nir_ssa_for_src(b, intr->src[0], num_comp); in lower_wide_load_store()
63 for (unsigned off = 0; off < num_comp; off += 4) { in lower_wide_load_store()
64 unsigned c = MIN2(num_comp - off, 4); in lower_wide_load_store()
83 unsigned num_comp = nir_intrinsic_dest_components(intr); in lower_wide_load_store() local
86 nir_ssa_def *components[num_comp]; in lower_wide_load_store()
88 for (unsigned off = 0; off < num_comp;) { in lower_wide_load_store()
89 unsigned c = MIN2(num_comp - off, 4); in lower_wide_load_store()
108 return nir_build_alu_src_arr(b, nir_op_vec(num_comp), components); in lower_wide_load_store()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_copy_propagate.c38 unsigned num_comp = instr->dest.dest.ssa.num_components; in is_swizzleless_move() local
40 if (instr->src[0].src.ssa->num_components != num_comp) in is_swizzleless_move()
44 for (unsigned i = 0; i < num_comp; i++) { in is_swizzleless_move()
49 for (unsigned i = 0; i < num_comp; i++) { in is_swizzleless_move()
69 unsigned num_comp = mov->dest.dest.ssa.num_components; in rewrite_to_vec() local
70 nir_alu_instr *new_vec = nir_alu_instr_create(b.shader, nir_op_vec(num_comp)); in rewrite_to_vec()
71 for (unsigned i = 0; i < num_comp; i++) in rewrite_to_vec()
90 unsigned num_comp = nir_ssa_alu_instr_src_components(user, src_idx); in copy_propagate_alu() local
95 for (unsigned i = 0; i < num_comp; i++) in copy_propagate_alu()
100 for (unsigned i = 1; i < num_comp; i++) { in copy_propagate_alu()
[all …]
Dnir_lower_wrmasks.c106 unsigned num_comp = nir_intrinsic_src_components(intr, value_idx); in split_wrmask() local
113 nir_ssa_def *value = nir_ssa_for_src(b, intr->src[value_idx], num_comp); in split_wrmask()
Dnir_split_64bit_vec3_and_vec4.c234 int num_comp[2] = {2, phi->dest.ssa.num_components - 2}; in split_phi() local
240 nir_ssa_dest_init(&new_phi[i]->instr, &new_phi[i]->dest, num_comp[i], in split_phi()
254 ((1 << num_comp[i]) - 1) << (2 * i)); in split_phi()
Dnir_opt_phi_precision.c413 unsigned num_comp = nir_dest_num_components(alu->dest.dest); in try_move_widening_src() local
414 new_src = nir_mov_alu(b, alu->src[0], num_comp); in try_move_widening_src()
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_load_store_bitsize.c125 int num_comp = nir_intrinsic_dest_components(intr); in lower_load_bitsize() local
126 if (num_comp <= 1) in lower_load_bitsize()
138 for (int component = 0; component < num_comp; component++) { in lower_load_bitsize()
164 nir_ssa_def *new_dst = nir_vec(b, dest_components, num_comp); in lower_load_bitsize()
178 int num_comp = nir_intrinsic_src_components(intr, value_idx); in lower_store_bitsize() local
179 if (num_comp <= 1) in lower_store_bitsize()
186 nir_ssa_def *value = nir_ssa_for_src(b, intr->src[value_idx], num_comp); in lower_store_bitsize()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_fs_out_to_vector.cpp108 int first_comp, int num_comp);
433 int first_comp, int num_comp) in create_combined_vector() argument
436 switch (num_comp) { in create_combined_vector()
448 while (i < num_comp) { in create_combined_vector()
450 for(uint8_t kk = 0; kk < s->num_components && i < num_comp; ++kk) { in create_combined_vector()
458 nir_ssa_dest_init(&instr->instr, &instr->dest.dest, num_comp, 32, NULL); in create_combined_vector()
459 instr->dest.write_mask = (1 << num_comp) - 1; in create_combined_vector()
Dsfn_instr_export.cpp487 int num_comp = int_from_string_with_prefix(elm_size_str, "ES:"); in from_string() local
494 …return new MemRingOutInstr(opcodes[ring], type, value, base_address, num_comp, index->as_register(… in from_string()
Dsfn_instr_alu.cpp2367 int num_comp = nir_dest_num_components(alu.dest.dest); in emit_alu_f2i32_or_u32_eg() local
2369 for (int i = 0; i < num_comp; ++i) { in emit_alu_f2i32_or_u32_eg()
2378 for (int i = 0; i < num_comp; ++i) { in emit_alu_f2i32_or_u32_eg()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_print.c129 unsigned num_comp = util_bitcount(comp_mask); in mir_print_embedded_constant() local
135 if (num_comp > 1) in mir_print_embedded_constant()
136 printf("vec%d(", num_comp); in mir_print_embedded_constant()
152 if (num_comp > 1) in mir_print_embedded_constant()
Ddisassemble.c540 unsigned comp_mask, num_comp = 0; in print_vector_constants() local
546 num_comp = util_bitcount(comp_mask); in print_vector_constants()
548 if (num_comp > 1) in print_vector_constants()
621 if (num_comp > 1) in print_vector_constants()
833 unsigned num_comp = util_bitcount(comp_mask); in print_vector_field() local
834 if (num_comp != 1) in print_vector_field()