Lines Matching refs:intr

35 lower_load_base_global_invocation_id(nir_builder *b, nir_intrinsic_instr *intr,
38 b->cursor = nir_after_instr(&intr->instr);
45 nir_dest_num_components(intr->dest),
46 nir_dest_bit_size(intr->dest));
47 nir_ssa_def_rewrite_uses(&intr->dest.ssa, offset);
48 nir_instr_remove(&intr->instr);
53 lower_load_work_dim(nir_builder *b, nir_intrinsic_instr *intr,
56 b->cursor = nir_after_instr(&intr->instr);
63 nir_dest_num_components(intr->dest),
64 nir_dest_bit_size(intr->dest));
65 nir_ssa_def_rewrite_uses(&intr->dest.ssa, dim);
66 nir_instr_remove(&intr->instr);
71 lower_load_local_group_size(nir_builder *b, nir_intrinsic_instr *intr)
73 b->cursor = nir_after_instr(&intr->instr);
81 nir_ssa_def_rewrite_uses(&intr->dest.ssa, size);
82 nir_instr_remove(&intr->instr);
87 lower_load_num_workgroups(nir_builder *b, nir_intrinsic_instr *intr,
90 b->cursor = nir_after_instr(&intr->instr);
97 nir_dest_num_components(intr->dest),
98 nir_dest_bit_size(intr->dest));
99 nir_ssa_def_rewrite_uses(&intr->dest.ssa, count);
100 nir_instr_remove(&intr->instr);
105 lower_load_base_workgroup_id(nir_builder *b, nir_intrinsic_instr *intr,
108 b->cursor = nir_after_instr(&intr->instr);
115 nir_dest_num_components(intr->dest),
116 nir_dest_bit_size(intr->dest));
117 nir_ssa_def_rewrite_uses(&intr->dest.ssa, offset);
118 nir_instr_remove(&intr->instr);
140 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
142 switch (intr->intrinsic) {
144 progress |= lower_load_base_global_invocation_id(&b, intr, var);
147 progress |= lower_load_work_dim(&b, intr, var);
150 lower_load_local_group_size(&b, intr);
153 lower_load_num_workgroups(&b, intr, var);
156 lower_load_base_workgroup_id(&b, intr, var);
168 lower_load_kernel_input(nir_builder *b, nir_intrinsic_instr *intr,
171 b->cursor = nir_before_instr(&intr->instr);
173 unsigned bit_size = nir_dest_bit_size(intr->dest);
192 glsl_vector_type(base_type, nir_dest_num_components(intr->dest));
194 nir_u2u(b, intr->src[0].ssa, 32));
197 deref->cast.align_mul = nir_intrinsic_align_mul(intr);
198 deref->cast.align_offset = nir_intrinsic_align_offset(intr);
202 nir_ssa_def_rewrite_uses(&intr->dest.ssa, result);
203 nir_instr_remove(&intr->instr);
225 nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
227 if (intr->intrinsic == nir_intrinsic_load_kernel_input)
228 progress |= lower_load_kernel_input(&b, intr, var);