Lines Matching refs:srcs

36                                     unsigned num_srcs, nir_ssa_def **srcs,
181 nir_ssa_def **srcs,
201 call->params[param_idx++] = nir_src_for_ssa(srcs[i]);
214 nir_ssa_def *srcs[5] = { NULL };
216 vtn_assert(num_srcs <= ARRAY_SIZE(srcs));
220 srcs[i] = ssa->def;
224 nir_ssa_def *result = handler(b, opcode, num_srcs, srcs, src_types, dest_type);
284 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types,
288 srcs[0], srcs[1], srcs[2], NULL);
432 nir_ssa_def **srcs,
471 dest_type, srcs, &ret_deref))
479 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types,
488 return nir_iabs_diff(nb, srcs[0], srcs[1]);
490 return nir_uabs_diff(nb, srcs[0], srcs[1]);
492 return nir_bitselect(nb, srcs[0], srcs[1], srcs[2]);
494 return nir_imad_hi(nb, srcs[0], srcs[1], srcs[2]);
496 return nir_umad_hi(nb, srcs[0], srcs[1], srcs[2]);
498 return nir_imul24_relaxed(nb, srcs[0], srcs[1]);
500 return nir_umul24_relaxed(nb, srcs[0], srcs[1]);
502 return nir_iadd(nb, nir_imul24_relaxed(nb, srcs[0], srcs[1]), srcs[2]);
504 return nir_umad24_relaxed(nb, srcs[0], srcs[1], srcs[2]);
506 return nir_fclamp(nb, srcs[0], srcs[1], srcs[2]);
508 return nir_iclamp(nb, srcs[0], srcs[1], srcs[2]);
510 return nir_uclamp(nb, srcs[0], srcs[1], srcs[2]);
512 return nir_copysign(nb, srcs[0], srcs[1]);
515 return nir_cross4(nb, srcs[0], srcs[1]);
516 return nir_cross3(nb, srcs[0], srcs[1]);
518 return nir_fdim(nb, srcs[0], srcs[1]);
522 return nir_fmod(nb, srcs[0], srcs[1]);
524 return nir_fmad(nb, srcs[0], srcs[1], srcs[2]);
526 return nir_maxmag(nb, srcs[0], srcs[1]);
528 return nir_minmag(nb, srcs[0], srcs[1]);
530 return nir_nan(nb, srcs[0]);
532 return nir_nextafter(nb, srcs[0], srcs[1]);
534 return nir_normalize(nb, srcs[0]);
536 return nir_clz_u(nb, srcs[0]);
538 return nir_ctz_u(nb, srcs[0]);
540 return nir_select(nb, srcs[0], srcs[1], srcs[2]);
544 return nir_upsample(nb, srcs[0], srcs[1]);
546 return nir_fexp(nb, srcs[0]);
548 return nir_fexp2(nb, nir_fmul_imm(nb, srcs[0], log(10) / log(2)));
550 return nir_flog(nb, srcs[0]);
552 return nir_fmul_imm(nb, nir_flog2(nb, srcs[0]), log(2) / log(10));
554 return nir_ftan(nb, srcs[0]);
558 return nir_ldexp(nb, srcs[0], srcs[1]);
561 if (nb->shader->options->lower_ffma32 && srcs[0]->bit_size == 32)
563 return nir_ffma(nb, srcs[0], srcs[1], srcs[2]);
568 nir_ssa_def *ret = handle_clc_fn(b, opcode, num_srcs, srcs, src_types, dest_type);
577 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types,
600 if (!call_mangled_function(b, "async_work_group_strided_copy", (1 << 1), num_srcs, src_types, dest_type, srcs, &ret_deref))
606 if (!call_mangled_function(b, "wait_group_events", 0, num_srcs, src_types, dest_type, srcs, &ret_deref))
841 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types,
844 nir_ssa_def *src = srcs[0];
856 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types,
859 struct nir_ssa_def *input = srcs[0];
860 struct nir_ssa_def *mask = srcs[1];
876 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types,
879 struct nir_ssa_def *input0 = srcs[0];
880 struct nir_ssa_def *input1 = srcs[1];
881 struct nir_ssa_def *mask = srcs[2];