Home
last modified time | relevance | path

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

12

/external/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
/external/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()
330 if (branch->num_src == 0) in ppir_lower_branch()
359 branch->num_src = 2; in ppir_lower_branch()
Dppir.h240 int num_src; member
261 int num_src; member
275 int num_src; member
363 int num_src; member
489 return ppir_node_to_alu(node)->num_src; in ppir_node_get_src_num()
491 return ppir_node_to_branch(node)->num_src; in ppir_node_get_src_num()
493 return ppir_node_to_load(node)->num_src; in ppir_node_get_src_num()
495 return ppir_node_to_load_texture(node)->num_src; in ppir_node_get_src_num()
Dnir.c194 node->num_src = num_child; in ppir_emit_alu()
249 branch->num_src = 1; in ppir_emit_discard_if()
284 lnode->num_src = 1; in ppir_emit_intrinsic()
333 lnode->num_src = 1; in ppir_emit_intrinsic()
371 alu_node->num_src = 1; in ppir_emit_intrinsic()
494 node->num_src++; in ppir_emit_tex()
502 node->num_src++; in ppir_emit_tex()
528 load->num_src = 1; in ppir_emit_tex()
590 branch->num_src = 0; in ppir_emit_jump()
655 else_branch->num_src = 1; in ppir_emit_if()
[all …]
Dcodegen.c69 if (load->num_src) { in ppir_codegen_encode_varying()
105 if (load->num_src) { in ppir_codegen_encode_varying()
172 if (load->num_src) { in ppir_codegen_encode_uniform()
247 if (alu->num_src == 2) { in ppir_codegen_encode_vec_mul()
318 if (alu->num_src == 2) { in ppir_codegen_encode_scl_mul()
406 if (++src < alu->src + alu->num_src) { in ppir_codegen_encode_vec_add()
484 if (++src < alu->src + alu->num_src) { in ppir_codegen_encode_scl_add()
601 if (branch->num_src == 2) { in ppir_codegen_encode_branch()
607 } 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.c431 for (int i = 0; i < alu->num_src; i++) in ppir_node_replace_child()
451 for (int i = 0; i < load_texture->num_src; i++) in ppir_node_replace_child()
611 alu->num_src = 1; in ppir_node_insert_mov_local()
/external/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()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_swizzle.c770 unsigned num_src = src_type.length / 4; in lp_build_pack_aos_scalars() local
774 assert(num_src <= num_dst); in lp_build_pack_aos_scalars()
776 for (i = 0; i < num_src; i++) { in lp_build_pack_aos_scalars()
779 for (i = num_src; i < num_dst; i++) { in lp_build_pack_aos_scalars()
806 unsigned num_src = dst_type.length / 4; in lp_build_unpack_broadcast_aos_scalars() local
811 for (i = 0; i < num_src; i++) { in lp_build_unpack_broadcast_aos_scalars()
818 if (num_src == 1) { in lp_build_unpack_broadcast_aos_scalars()
Dlp_bld_tgsi.c179 for (src = 0; src < emit_data->info->num_src; src++) { in lp_build_fetch_args()
183 emit_data->arg_count = emit_data->info->num_src; in lp_build_fetch_args()
/external/igt-gpu-tools/tests/i915/
Dgem_render_copy.c578 int num_src = ARRAY_SIZE(src); in test() local
582 num_src--; in test()
587 for (int i = 0; i < num_src; i++) in test()
594 for (int i = 0; i < num_src; i++) in test()
605 for (int i = 0; i < num_src; i++) in test()
611 for (int i = 0; i < num_src; i++) in test()
636 for (int i = 0; i < num_src; i++) in test()
675 for (int i = 0; i < num_src; i++) in test()
/external/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c514 int num_src; in ntt_emit_scalar() local
518 num_src = 2; in ntt_emit_scalar()
520 num_src = 1; in ntt_emit_scalar()
533 ureg_insn(c->ureg, tgsi_op, &this_dst, 1, srcs, num_src, false); in ntt_emit_scalar()
1076 int num_src = 0; in ntt_emit_mem() local
1098 src[num_src++] = ntt_get_src(c, instr->src[nir_src + 1]); /* offset */ in ntt_emit_mem()
1099 src[num_src++] = ntt_get_src(c, instr->src[0]); /* value */ in ntt_emit_mem()
1101 src[num_src++] = memory; in ntt_emit_mem()
1103 src[num_src++] = ntt_get_src(c, instr->src[nir_src++]); /* offset */ in ntt_emit_mem()
1105 src[num_src++] = ntt_get_src(c, instr->src[nir_src++]); /* value */ in ntt_emit_mem()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi_private.h205 op->info->num_src - 1 : op->info->num_src; in num_inst_src_regs()
Dst_mesa_to_tgsi.c532 unsigned num_src; in compile_instruction() local
535 num_src = _mesa_num_inst_src_regs(inst->Opcode); in compile_instruction()
540 for (i = 0; i < num_src; i++) in compile_instruction()
551 src[num_src++] = t->samplers[inst->TexSrcUnit]; in compile_instruction()
559 src, num_src); in compile_instruction()
613 src, num_src, 0); in compile_instruction()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_asm.c272 unsigned num_src = r600_bytecode_get_num_operands(alu); in alu_uses_rel() local
279 for (src = 0; src < num_src; ++src) { in alu_uses_rel()
294 unsigned num_src = r600_bytecode_get_num_operands(alu); in alu_uses_lds() local
297 for (src = 0; src < num_src; ++src) { in alu_uses_lds()
470 int r, src, num_src, sel, elem, cycle; in check_vector() local
472 num_src = r600_bytecode_get_num_operands(alu); in check_vector()
473 for (src = 0; src < num_src; src++) { in check_vector()
500 int r, src, num_src, const_count, sel, elem, cycle; in check_scalar() local
502 num_src = r600_bytecode_get_num_operands(alu); in check_scalar()
503 for (const_count = 0, src = 0; src < num_src; ++src) { in check_scalar()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_fpc_optimize.c77 unsigned num_src; member
134 return op_table[opcode].num_src; in op_num_src()
296 int num_dst, num_src; in liveness_analysis() local
336 num_src = op_num_src(opcode); in liveness_analysis()
338 switch(num_src) in liveness_analysis()
352 debug_printf("Op %d has %d src regs\n", opcode, num_src); in liveness_analysis()
/external/virglrenderer/src/gallium/auxiliary/tgsi/
Dtgsi_info.h75 unsigned num_src:3; member
Dtgsi_sanity.c331 if (info->num_src != inst->Instruction.NumSrcRegs) { in iter_instruction()
332 …error( ctx, "%s: Invalid number of source operands, should be %u", info->mnemonic, info->num_src ); in iter_instruction()
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_info.h75 unsigned num_src:3; member
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_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_info.c40 .output_mode = _output_mode, .num_dst = _num_dst, .num_src = _num_src, \
/external/mesa3d/src/compiler/nir/
Dnir_lower_alu_to_scalar.c101 unsigned num_src = nir_op_infos[alu->op].num_inputs; in lower_alu_instr_scalar() local
280 for (i = 0; i < num_src; i++) { in lower_alu_instr_scalar()
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_pair_schedule.c713 int prev_rgb_index, prev_alpha_index, i, num_src; in presub_nop() local
730 num_src = rc_presubtract_src_reg_count( in presub_nop()
732 for (i = 0; i < num_src; i++) { in presub_nop()
747 num_src = rc_presubtract_src_reg_count( in presub_nop()
749 for (i = 0; i < num_src; i++) { in presub_nop()

12