Home
last modified time | relevance | path

Searched refs:wrmask (Results 1 - 25 of 43) sorted by relevance

12

/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_lower_subgroups.c65 mov_dst->wrmask = dst->wrmask; in mov_immed()
71 mov->repeat = util_last_bit(mov_dst->wrmask) - 1; in mov_immed()
84 mov_dst->wrmask = dst->wrmask; in mov_reg()
85 mov_src->wrmask = src->wrmask; in mov_reg()
86 mov->repeat = util_last_bit(mov_dst->wrmask) - 1; in mov_reg()
103 instr_dst->wrmask = dst->wrmask; in binop()
[all...]
H A Dir3_a6xx.c52 ldib->dsts[0]->wrmask = MASK(intr->num_components); in emit_intrinsic_load_ssbo()
70 unsigned wrmask = nir_intrinsic_write_mask(intr); in emit_intrinsic_store_ssbo() local
71 unsigned ncomp = ffs(~wrmask) - 1; in emit_intrinsic_store_ssbo()
73 assert(wrmask == BITFIELD_MASK(intr->num_components)); in emit_intrinsic_store_ssbo()
192 atomic->dsts[0]->wrmask = src1->dsts[0]->wrmask; in emit_intrinsic_atomic_ssbo()
211 ldib->dsts[0]->wrmask = MASK(intr->num_components); in emit_intrinsic_load_image()
340 atomic->dsts[0]->wrmask = src1->dsts[0]->wrmask; in emit_intrinsic_atomic_image()
360 resinfo->dsts[0]->wrmask in emit_intrinsic_image_size()
[all...]
H A Dir3_dce.c83 if (src && is_tex_or_prefetch(src) && (src->dsts[0]->wrmask > 1)) { in remove_unused_by_block()
84 src->dsts[0]->wrmask &= ~(1 << instr->split.off); in remove_unused_by_block()
154 /* fixup wrmask of split instructions to account for adjusted tex in find_and_remove_unused()
155 * wrmask's: in find_and_remove_unused()
166 instr->srcs[0]->wrmask = src->dsts[0]->wrmask; in find_and_remove_unused()
H A Dir3_lower_spill.c126 spill->srcs[1]->wrmask = MASK(orig_components); in split_spill()
138 clone->srcs[1]->wrmask = MASK(components); in split_spill()
160 reload->dsts[0]->wrmask = MASK(orig_components); in split_reload()
172 clone->dsts[0]->wrmask = MASK(components); in split_reload()
H A Dir3_a4xx.c86 ldgb->dsts[0]->wrmask = MASK(intr->num_components); in emit_intrinsic_load_ssbo()
102 unsigned wrmask = nir_intrinsic_write_mask(intr); in emit_intrinsic_store_ssbo() local
103 unsigned ncomp = ffs(~wrmask) - 1; in emit_intrinsic_store_ssbo()
105 assert(wrmask == BITFIELD_MASK(intr->num_components)); in emit_intrinsic_store_ssbo()
315 ldib->dsts[0]->wrmask = MASK(intr->num_components); in emit_intrinsic_load_image()
H A Dir3_validate.c84 validate_assert(ctx, src->wrmask == reg->wrmask); in validate_src()
136 validate_assert(ctx, reg->tied->wrmask == reg->wrmask); in validate_dst()
233 ctx, util_is_power_of_two_or_zero(instr->dsts[0]->wrmask + 1)); in validate_instr()
H A Dir3_nir_lower_wide_load_store.c59 unsigned wrmask = nir_intrinsic_write_mask(intr); in lower_wide_load_store() local
73 nir_intrinsic_set_write_mask(store, (wrmask >> off) & 0xf); in lower_wide_load_store()
H A Dir3.h167 * wrmask may be a bad name since it is used to represent both
170 unsigned wrmask : 16; /* up to vec16 */ member
1142 return util_last_bit(reg->wrmask); in reg_elems()
1164 return util_last_bit(instr->dsts[0]->wrmask); in dest_regs()
1171 if (dst->wrmask == 0) in is_dest_gpr()
1916 reg->wrmask = src->dsts[0]->wrmask; in __ssa_src()
2031 dst->wrmask = (1 << components) - 1; in ir3_MOVMSK()
2045 dst->wrmask = (1 << components) - 1; in ir3_BALLOT_MACRO()
2331 ir3_SAM(struct ir3_block *block, opc_t opc, type_t type, unsigned wrmask, in ir3_SAM() argument
[all...]
H A Dir3_postsched.c470 assert(reg->wrmask >= 1); in calculate_deps()
471 u_foreach_bit (b, reg->wrmask) { in calculate_deps()
481 if (reg->wrmask == 0) in calculate_deps()
489 assert(reg->wrmask >= 1); in calculate_deps()
490 u_foreach_bit (b, reg->wrmask) { in calculate_deps()
H A Dir3_print.c341 if (reg->wrmask > 0x1) in print_reg_name()
342 mesa_log_stream_printf(stream, " (wrmask=0x%x)", reg->wrmask); in print_reg_name()
362 if (instr->dsts[0]->wrmask & (1 << i)) in print_instr()
376 if (reg->wrmask == 0) in print_instr()
H A Dir3_compiler_nir.c70 __ssa_dst(in)->wrmask = compmask; in create_input()
98 instr->srcs[1]->wrmask = 0x3; in create_frag_input()
369 unsigned dst_sz, wrmask; in emit_alu() local
374 wrmask = (1 << dst_sz) - 1; in emit_alu()
377 wrmask = alu->dest.write_mask; in emit_alu()
414 if (wrmask & (1 << i)) { in emit_alu()
897 ldc->dsts[0]->wrmask = MASK(ncomp); in emit_intrinsic_load_ubo_ldc()
1063 resinfo->dsts[0]->wrmask = MASK(3); in emit_intrinsic_ssbo_size()
1093 ldl->dsts[0]->wrmask = MASK(intr->num_components); in emit_intrinsic_load_shared()
1108 unsigned base, wrmask, ncom in emit_intrinsic_store_shared() local
1316 unsigned wrmask, ncomp; emit_intrinsic_store_scratch() local
1408 emit_sam(struct ir3_context *ctx, opc_t opc, struct tex_src_info info, type_t type, unsigned wrmask, struct ir3_instruction *src0, struct ir3_instruction *src1) emit_sam() argument
[all...]
H A Dir3_nir_lower_64b.c79 unsigned wrmask = nir_intrinsic_has_write_mask(intr) ? in lower_64b_intrinsics() local
85 if (!(wrmask & BITFIELD_BIT(i))) in lower_64b_intrinsics()
H A Dir3_parser.y83 unsigned wrmask;
163 reg->wrmask = MAX2(1, rflags.wrmask);
164 rflags.flags = rflags.wrmask = 0;
175 reg->wrmask = MAX2(1, rflags.wrmask);
176 rflags.flags = rflags.wrmask = 0;
783 T_IDENTIFIER '=' integer ',' /* wrmask */
876 instr->dsts[0]->wrmask = (1 << num) - 1;
1299 | T_WRMASK { rflags.wrmask
[all...]
H A Dir3_context.c351 collect->dsts[0]->wrmask = MASK(arrsz); in ir3_create_collect()
363 if ((n == 1) && (src->dsts[0]->wrmask == 0x1) && in ir3_split_dest()
389 if (src->dsts[0]->wrmask & (1 << (i + base))) in ir3_split_dest()
H A Dir3_spill.c761 src->wrmask = reg->wrmask; in spill()
861 src->wrmask = def->wrmask; in split()
886 dst->wrmask = MASK(elems); in extract()
932 dst->wrmask = MASK(elems); in reload()
1568 dst->wrmask = def->wrmask; in add_live_in_phi()
1580 src->wrmask = def->wrmask; in add_live_in_phi()
[all...]
H A Dir3_merge_regs.c447 reg->wrmask = src[j]->wrmask; in create_parallel_copy()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_wrmasks.c31 * intrinsic store_ssbo (ssa_76, ssa_105, ssa_106) (2, 0, 4, 0) // wrmask=y
39 * intrinsic store_ssbo (ssa_109, ssa_105, ssa_108) (1, 0, 4, 0) // wrmask=x
44 * intrinsic store_ssbo (ssa_76, ssa_105, ssa_106) (15, 0, 4, 0) // wrmask=xzw
53 * intrinsic store_ssbo (ssa_109, ssa_105, ssa_108) (1, 0, 4, 0) // wrmask=x
58 * intrinsic store_ssbo (ssa_112, ssa_105, ssa_111) (3, 0, 4, 0) // wrmask=xy
108 unsigned wrmask = nir_intrinsic_write_mask(intr); in split_wrmask() local
109 while (wrmask) { in split_wrmask()
110 unsigned first_component = ffs(wrmask) - 1; in split_wrmask()
111 unsigned length = ffs(~(wrmask >> first_component)) - 1; in split_wrmask()
175 wrmask in split_wrmask()
[all...]
H A Dnir_lower_clip_disable.c82 int wrmask = nir_intrinsic_write_mask(instr); in lower_clip_plane_store() local
88 if (wrmask & (1 << i)) { in lower_clip_plane_store()
96 nir_store_deref(b, deref, nir_vec(b, components, instr->num_components), wrmask); in lower_clip_plane_store()
H A Dnir_lower_vars_to_ssa.c637 unsigned wrmask = nir_intrinsic_write_mask(intrin); in rename_variables() local
638 if (wrmask == (1 << intrin->num_components) - 1) { in rename_variables()
658 if (wrmask & (1 << i)) { in rename_variables()
H A Dnir_opt_copy_prop_vars.c1040 unsigned wrmask = nir_intrinsic_write_mask(intrin); in copy_prop_vars_block() local
1041 kill_aliases(state, copies, &dst, wrmask); in copy_prop_vars_block()
1057 unsigned wrmask = nir_intrinsic_write_mask(intrin); in copy_prop_vars_block() local
1059 get_entry_and_kill_aliases(state, copies, &vec_dst, wrmask); in copy_prop_vars_block()
1060 value_set_from_value(&entry->src, &value, vec_index, wrmask); in copy_prop_vars_block()
/third_party/mesa3d/src/broadcom/compiler/
H A Dv3d_nir_lower_load_store_bitsize.c196 unsigned wrmask = nir_intrinsic_write_mask(intr); in lower_store_bitsize() local
197 while (wrmask) { in lower_store_bitsize()
198 unsigned component = ffs(wrmask) - 1; in lower_store_bitsize()
226 wrmask &= ~(1 << component); in lower_store_bitsize()
/third_party/mesa3d/src/freedreno/ir3/tests/
H A Ddelay.c122 * ir3_delay_calc_* relies on the src/dst wrmask being correct even for ALU
135 instr->dsts[0]->wrmask = MASK(instr->repeat + 1); in fixup_wrmask()
141 reg->wrmask = MASK(instr->repeat + 1); in fixup_wrmask()
143 reg->wrmask = 1; in fixup_wrmask()
/third_party/mesa3d/src/panfrost/bifrost/valhall/
H A Dasm.py130 wrmask = 0x3
137 wrmask = 1 << WMASKS.index(mask)
139 return parse_int(reg[1:], 0, 63) | (wrmask << 6)
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atifs_to_nir.c410 nir_const_value wrmask[4] = { 0 }; in compile_instruction() local
413 wrmask[i].b = 1; in compile_instruction()
417 nir_build_imm(t->b, 4, 1, wrmask), in compile_instruction()
/third_party/mesa3d/src/compiler/nir/tests/
H A Dload_store_vectorizer_tests.cpp56 unsigned wrmask=0xf, unsigned access=0);
62 uint32_t id, unsigned bit_size=32, unsigned components=1, unsigned wrmask=0xf,
68 unsigned bit_size=32, unsigned components=1, unsigned wrmask=0xf);
263 unsigned bit_size, unsigned components, unsigned wrmask, unsigned access) in create_indirect_store()
296 nir_intrinsic_set_write_mask(store, wrmask & ((1 << components) - 1)); in create_indirect_store()
311 unsigned bit_size, unsigned components, unsigned wrmask, unsigned access) in create_store()
313 create_indirect_store(mode, binding, nir_imm_int(b, offset), id, bit_size, components, wrmask, access); in create_store()
327 unsigned bit_size, unsigned components, unsigned wrmask) in create_shared_store()
334 nir_store_deref(b, deref, value, wrmask & ((1 << components) - 1)); in create_shared_store()
261 create_indirect_store( nir_variable_mode mode, uint32_t binding, nir_ssa_def *offset, uint32_t id, unsigned bit_size, unsigned components, unsigned wrmask, unsigned access) create_indirect_store() argument
309 create_store( nir_variable_mode mode, uint32_t binding, uint32_t offset, uint32_t id, unsigned bit_size, unsigned components, unsigned wrmask, unsigned access) create_store() argument
325 create_shared_store( nir_deref_instr *deref, uint32_t id, unsigned bit_size, unsigned components, unsigned wrmask) create_shared_store() argument

Completed in 28 milliseconds

12