Home
last modified time | relevance | path

Searched refs:num_src (Results 1 – 25 of 38) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/
Dlower.c90 assert(alu->num_src == 2); in ppir_lower_swap_args()
156 alu->num_src = 2; in ppir_lower_ddxy()
245 move_alu->num_src = 1; in ppir_lower_select()
289 assert(alu->num_src == 1); in ppir_lower_abs()
303 assert(alu->num_src == 1); in ppir_lower_neg()
316 assert(alu->num_src == 1); in ppir_lower_sat()
398 assert(cond->num_src == 2); in ppir_lower_branch_merge_condition()
400 branch->num_src = 2; in ppir_lower_branch_merge_condition()
422 if (branch->num_src == 0) in ppir_lower_branch()
452 branch->num_src = 2; in ppir_lower_branch()
[all …]
Dppir.h278 int num_src; member
305 int num_src; member
321 int num_src; member
396 int num_src; member
527 return ppir_node_to_alu(node)->num_src; in ppir_node_get_src_num()
529 return ppir_node_to_branch(node)->num_src; in ppir_node_get_src_num()
531 return ppir_node_to_load(node)->num_src; in ppir_node_get_src_num()
533 return ppir_node_to_load_texture(node)->num_src; in ppir_node_get_src_num()
Dnir.c192 node->num_src = num_child; in ppir_emit_alu()
247 branch->num_src = 1; in ppir_emit_discard_if()
282 lnode->num_src = 1; in ppir_emit_intrinsic()
331 lnode->num_src = 1; in ppir_emit_intrinsic()
386 alu_node->num_src = 1; in ppir_emit_intrinsic()
517 node->num_src++; in ppir_emit_tex()
525 node->num_src++; in ppir_emit_tex()
551 load->num_src = 1; in ppir_emit_tex()
619 branch->num_src = 0; in ppir_emit_jump()
684 else_branch->num_src = 1; in ppir_emit_if()
[all …]
Dcodegen.c69 if (load->num_src) { in ppir_codegen_encode_varying()
117 if (load->num_src) { in ppir_codegen_encode_varying()
195 if (load->num_src) { in ppir_codegen_encode_uniform()
286 if (alu->num_src == 2) { in ppir_codegen_encode_vec_mul()
357 if (alu->num_src == 2) { in ppir_codegen_encode_scl_mul()
445 if (++src < alu->src + alu->num_src) { in ppir_codegen_encode_vec_add()
523 if (++src < alu->src + alu->num_src) { in ppir_codegen_encode_scl_add()
641 if (branch->num_src == 2) { in ppir_codegen_encode_branch()
647 } else if (branch->num_src == 0) { in ppir_codegen_encode_branch()
Dinstr.c77 if (add_alu->num_src > 1) { in ppir_instr_insert_mul_node()
78 ppir_src *last_src = add_alu->src + add_alu->num_src - 1; in ppir_instr_insert_mul_node()
85 if (add_alu->num_src == 3) { in ppir_instr_insert_mul_node()
161 for (int j = 0; j < alu->num_src; j++) { in ppir_instr_update_src_pipeline()
Dnode.c436 for (int i = 0; i < alu->num_src; i++) in ppir_node_replace_child()
456 for (int i = 0; i < load_texture->num_src; i++) in ppir_node_replace_child()
616 alu->num_src = 1; in ppir_node_insert_mov_local()
/third_party/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_shader_dump.c492 uint num_src) in parse_op() argument
497 assert(num_src <= DUMP_MAX_OP_SRC); in parse_op()
517 for (i = 0; i < num_src; ++i) { in parse_op()
547 parse_op(di, assem, &dop, info->num_dst, info->num_src); in dump_inst()
553 for (i = 0; i < info->num_src; i++) { in dump_inst()
650 assert(info.num_src == 0); in svga_shader_dump()
652 info.num_src = 1; in svga_shader_dump()
665 assert(info.num_src == 0); in svga_shader_dump()
668 info.num_src = 2; in svga_shader_dump()
671 info.num_src = 1; in svga_shader_dump()
[all …]
Dsvga_shader_op.h40 unsigned num_src:8; member
/third_party/mesa3d/src/broadcom/qpu/
Dqpu_disasm.c105 int num_src = v3d_qpu_add_op_num_src(instr->alu.add.op); in v3d_qpu_disasm_add() local
121 if (num_src >= 1) { in v3d_qpu_disasm_add()
129 if (num_src >= 2) { in v3d_qpu_disasm_add()
142 int num_src = v3d_qpu_mul_op_num_src(instr->alu.mul.op); in v3d_qpu_disasm_mul() local
164 if (num_src >= 1) { in v3d_qpu_disasm_mul()
172 if (num_src >= 2) { in v3d_qpu_disasm_mul()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_swizzle.c748 unsigned num_src = src_type.length / 4; in lp_build_pack_aos_scalars() local
751 assert(num_src <= num_dst); in lp_build_pack_aos_scalars()
753 for (unsigned i = 0; i < num_src; i++) { in lp_build_pack_aos_scalars()
756 for (unsigned i = num_src; i < num_dst; i++) { in lp_build_pack_aos_scalars()
783 unsigned num_src = dst_type.length / 4; in lp_build_unpack_broadcast_aos_scalars() local
787 for (unsigned i = 0; i < num_src; i++) { in lp_build_unpack_broadcast_aos_scalars()
794 if (num_src == 1) { in lp_build_unpack_broadcast_aos_scalars()
Dlp_bld_tgsi.c184 for (unsigned src = 0; src < emit_data->info->num_src; src++) { in lp_build_fetch_args()
188 emit_data->arg_count = emit_data->info->num_src; in lp_build_fetch_args()
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_global_access.c158 unsigned num_src = nir_intrinsic_infos[intrin->intrinsic].num_srcs; in process_instr() local
159 for (unsigned i = 0; i < num_src; i++) in process_instr()
161 new_intrin->src[num_src] = nir_src_for_ssa(offset ? offset : nir_imm_zero(b, 1, 32)); in process_instr()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_fpc_optimize.c82 unsigned num_src; member
142 return op_table[opcode].num_src; in op_num_src()
295 int num_dst, num_src; in liveness_analysis() local
332 num_src = op_num_src(opcode); in liveness_analysis()
334 switch (num_src) { in liveness_analysis()
350 debug_printf("Op %d has %d src regs\n", opcode, num_src); in liveness_analysis()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DShaderParse.c64 unsigned num_src; member
419 opcode->num_src = 0; in Shader_parse_opcode()
424 opcode->num_src = info->num_src; in Shader_parse_opcode()
452 for (i = 0; i < info->num_src; i++) { in Shader_parse_opcode()
DShaderParse.h117 unsigned num_src; member
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_asm.c317 unsigned num_src = r600_bytecode_get_num_operands(alu); in alu_uses_rel() local
324 for (src = 0; src < num_src; ++src) { in alu_uses_rel()
339 unsigned num_src = r600_bytecode_get_num_operands(alu); in alu_uses_lds() local
342 for (src = 0; src < num_src; ++src) { in alu_uses_lds()
515 int r, src, num_src, sel, elem, cycle; in check_vector() local
517 num_src = r600_bytecode_get_num_operands(alu); in check_vector()
518 for (src = 0; src < num_src; src++) { in check_vector()
545 int r, src, num_src, const_count, sel, elem, cycle; in check_scalar() local
547 num_src = r600_bytecode_get_num_operands(alu); in check_scalar()
548 for (const_count = 0, src = 0; src < num_src; ++src) { in check_scalar()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c310 for (int i = 0; i < opcode_info->num_src; i++) { in ntt_live_reg_setup_def_use()
501 for (int i = 0; i < opcode_info->num_src; i++) { in ntt_allocate_regs()
1882 int num_src = 0; in ntt_emit_mem() local
1919 src[num_src++] = ntt_get_src(c, instr->src[next_src + 1]); /* offset */ in ntt_emit_mem()
1920 src[num_src++] = ntt_get_src(c, instr->src[0]); /* value */ in ntt_emit_mem()
1922 src[num_src++] = memory; in ntt_emit_mem()
1924 src[num_src++] = ntt_get_src(c, instr->src[next_src++]); /* offset */ in ntt_emit_mem()
1927 src[num_src++] = ureg_imm1i(c->ureg, 1); in ntt_emit_mem()
1930 src[num_src++] = ureg_imm1i(c->ureg, -1); in ntt_emit_mem()
1934 src[num_src++] = ntt_get_src(c, instr->src[next_src++]); /* value */ in ntt_emit_mem()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_info.h75 unsigned num_src:3; member
Dtgsi_text.c1058 if (info->num_dst + info->num_src + info->is_tex == 0) { in parse_instruction()
1080 inst.Instruction.NumSrcRegs = info->num_src; in parse_instruction()
1099 assume(info->num_src <= TGSI_FULL_MAX_SRC_REGISTERS); in parse_instruction()
1103 for (i = 0; i < info->num_dst + info->num_src + info->is_tex; i++) { in parse_instruction()
1118 else if (i < info->num_dst + info->num_src) { in parse_instruction()
Dtgsi_sanity.c332 if (info->num_src != inst->Instruction.NumSrcRegs) { in iter_instruction()
334 tgsi_get_opcode_name(inst->Instruction.Opcode), info->num_src ); in iter_instruction()
Dtgsi_info.c40 .output_mode = _output_mode, .num_dst = _num_dst, .num_src = _num_src, \
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs_analysis.c379 unsigned num_src = nir_op_infos[alu->op].num_inputs;; in llvmpipe_nir_fn_is_linear_compat() local
380 for (unsigned s = 0; s < num_src; s++) { in llvmpipe_nir_fn_is_linear_compat()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_pair_schedule.c709 int prev_rgb_index, prev_alpha_index, i, num_src; in presub_nop() local
726 num_src = rc_presubtract_src_reg_count( in presub_nop()
728 for (i = 0; i < num_src; i++) { in presub_nop()
743 num_src = rc_presubtract_src_reg_count( in presub_nop()
745 for (i = 0; i < num_src; i++) { in presub_nop()
/third_party/mesa3d/src/mesa/program/
Dprogram.c450 unsigned num_src = _mesa_num_inst_src_regs(inst->Opcode); in _mesa_add_separate_state_parameters() local
452 for (unsigned j = 0; j < num_src; j++) { in _mesa_add_separate_state_parameters()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_alu_width.c182 unsigned num_src = nir_op_infos[alu->op].num_inputs; in lower_alu_instr_width() local
383 for (i = 0; i < num_src; i++) { in lower_alu_instr_width()

12