Lines Matching refs:num_srcs

455    unsigned num_srcs = nir_op_infos[op].num_inputs;  in nir_alu_instr_create()  local
459 sizeof(nir_alu_instr) + num_srcs * sizeof(nir_alu_src)); in nir_alu_instr_create()
464 for (unsigned i = 0; i < num_srcs; i++) in nir_alu_instr_create()
494 unsigned num_srcs = nir_intrinsic_infos[op].num_srcs; in nir_intrinsic_instr_create() local
498 sizeof(nir_intrinsic_instr) + num_srcs * sizeof(nir_src)); in nir_intrinsic_instr_create()
506 for (unsigned i = 0; i < num_srcs; i++) in nir_intrinsic_instr_create()
527 nir_tex_instr_create(nir_shader *shader, unsigned num_srcs) in nir_tex_instr_create() argument
534 instr->num_srcs = num_srcs; in nir_tex_instr_create()
535 instr->src = ralloc_array(instr, nir_tex_src, num_srcs); in nir_tex_instr_create()
536 for (unsigned i = 0; i < num_srcs; i++) in nir_tex_instr_create()
554 tex->num_srcs + 1); in nir_tex_instr_add_src()
556 for (unsigned i = 0; i < tex->num_srcs; i++) { in nir_tex_instr_add_src()
565 tex->src[tex->num_srcs].src_type = src_type; in nir_tex_instr_add_src()
566 nir_instr_rewrite_src(&tex->instr, &tex->src[tex->num_srcs].src, src); in nir_tex_instr_add_src()
567 tex->num_srcs++; in nir_tex_instr_add_src()
573 assert(src_idx < tex->num_srcs); in nir_tex_instr_remove_src()
579 for (unsigned i = src_idx + 1; i < tex->num_srcs; i++) { in nir_tex_instr_remove_src()
583 tex->num_srcs--; in nir_tex_instr_remove_src()
1286 for (unsigned i = 0; i < instr->num_srcs; i++) { in visit_tex_src()
1308 unsigned num_srcs = nir_intrinsic_infos[instr->intrinsic].num_srcs; in visit_intrinsic_src() local
1309 for (unsigned i = 0; i < num_srcs; i++) { in visit_intrinsic_src()