Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/nir/
Dnir_lower_wrmasks.c123 nir_intrinsic_instr *new_intr = in split_wrmask() local
126 nir_intrinsic_copy_const_indices(new_intr, intr); in split_wrmask()
127 nir_intrinsic_set_write_mask(new_intr, BITFIELD_MASK(length)); in split_wrmask()
139 nir_intrinsic_set_align(new_intr, align_mul, align_off); in split_wrmask()
148 nir_intrinsic_set_base(new_intr, in split_wrmask()
155 new_intr->num_components = length; in split_wrmask()
162 new_intr->src[i] = nir_src_for_ssa(value); in split_wrmask()
164 new_intr->src[i] = nir_src_for_ssa(offset); in split_wrmask()
166 new_intr->src[i] = intr->src[i]; in split_wrmask()
170 nir_builder_instr_insert(b, &new_intr->instr); in split_wrmask()
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_vectorize_vs_inputs.c149 nir_intrinsic_instr *new_intr = in r600_create_new_load() local
151 nir_ssa_dest_init(&new_intr->instr, &new_intr->dest, num_comps, in r600_create_new_load()
153 new_intr->num_components = num_comps; in r600_create_new_load()
158 new_intr->src[0] = nir_src_for_ssa(&deref->dest.ssa); in r600_create_new_load()
162 nir_src_copy(&new_intr->src[1], &intr->src[1], &new_intr->instr); in r600_create_new_load()
164 nir_builder_instr_insert(b, &new_intr->instr); in r600_create_new_load()
168 nir_ssa_def *load = nir_swizzle(b, &new_intr->dest.ssa, channels, old_num_comps); in r600_create_new_load()
Dsfn_nir_lower_fs_out_to_vector.cpp400 nir_intrinsic_instr *new_intr = in create_new_io() local
402 new_intr->num_components = num_comps; in create_new_io()
404 nir_intrinsic_set_write_mask(new_intr, (1 << num_comps) - 1); in create_new_io()
409 new_intr->src[0] = nir_src_for_ssa(&deref->dest.ssa); in create_new_io()
410 new_intr->src[1] = nir_src_for_ssa(create_combined_vector(b, srcs, first_comp, num_comps)); in create_new_io()
412 nir_builder_instr_insert(b, &new_intr->instr); in create_new_io()
/external/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_tess.c149 nir_intrinsic_instr *new_intr = in replace_intrinsic() local
152 new_intr->src[0] = nir_src_for_ssa(src0); in replace_intrinsic()
154 new_intr->src[1] = nir_src_for_ssa(src1); in replace_intrinsic()
156 new_intr->src[2] = nir_src_for_ssa(src2); in replace_intrinsic()
158 new_intr->num_components = intr->num_components; in replace_intrinsic()
161 nir_ssa_dest_init(&new_intr->instr, &new_intr->dest, in replace_intrinsic()
164 nir_builder_instr_insert(b, &new_intr->instr); in replace_intrinsic()
167 nir_ssa_def_rewrite_uses(&intr->dest.ssa, nir_src_for_ssa(&new_intr->dest.ssa)); in replace_intrinsic()
171 return new_intr; in replace_intrinsic()