Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_shader_dump.c489 uint num_src) in parse_op() argument
494 assert(num_src <= DUMP_MAX_OP_SRC); in parse_op()
514 for (i = 0; i < num_src; ++i) { in parse_op()
544 parse_op(di, assem, &dop, info->num_dst, info->num_src); in dump_inst()
550 for (i = 0; i < info->num_src; i++) { in dump_inst()
647 assert(info.num_src == 0); in svga_shader_dump()
649 info.num_src = 1; in svga_shader_dump()
662 assert(info.num_src == 0); in svga_shader_dump()
665 info.num_src = 2; in svga_shader_dump()
668 info.num_src = 1; in svga_shader_dump()
[all …]
Dsvga_shader_op.h40 unsigned num_src:8; member
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_swizzle.c742 unsigned num_src = src_type.length / 4; in lp_build_pack_aos_scalars() local
746 assert(num_src <= num_dst); in lp_build_pack_aos_scalars()
748 for (i = 0; i < num_src; i++) { in lp_build_pack_aos_scalars()
751 for (i = num_src; i < num_dst; i++) { in lp_build_pack_aos_scalars()
778 unsigned num_src = dst_type.length / 4; in lp_build_unpack_broadcast_aos_scalars() local
783 for (i = 0; i < num_src; i++) { in lp_build_unpack_broadcast_aos_scalars()
790 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/mesa3d/src/mesa/state_tracker/
Dst_mesa_to_tgsi.c512 unsigned num_src; in compile_instruction() local
515 num_src = _mesa_num_inst_src_regs( inst->Opcode ); in compile_instruction()
522 for (i = 0; i < num_src; i++) in compile_instruction()
533 src[num_src++] = t->samplers[inst->TexSrcUnit]; in compile_instruction()
540 src, num_src ); in compile_instruction()
548 src, num_src ); in compile_instruction()
556 src, num_src ); in compile_instruction()
575 src, num_src ); in compile_instruction()
Dst_glsl_to_tgsi.cpp640 op->info->num_src - 1 : op->info->num_src; in num_inst_src_regs()
5602 int num_src; in compile_tgsi_instruction() local
5606 num_src = num_inst_src_regs(inst); in compile_tgsi_instruction()
5613 for (i = 0; i < num_src; i++) in compile_tgsi_instruction()
5623 ureg_insn(ureg, inst->op, NULL, 0, src, num_src); in compile_tgsi_instruction()
5639 src[num_src] = t->samplers[inst->resource.index]; in compile_tgsi_instruction()
5640 assert(src[num_src].File != TGSI_FILE_NULL); in compile_tgsi_instruction()
5642 src[num_src] = in compile_tgsi_instruction()
5643 ureg_src_indirect(src[num_src], ureg_src(t->address[2])); in compile_tgsi_instruction()
5644 num_src++; in compile_tgsi_instruction()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_asm.c257 unsigned num_src = r600_bytecode_get_num_operands(bc, alu); in alu_uses_rel() local
264 for (src = 0; src < num_src; ++src) { in alu_uses_rel()
279 unsigned num_src = r600_bytecode_get_num_operands(bc, alu); in alu_uses_lds() local
282 for (src = 0; src < num_src; ++src) { in alu_uses_lds()
454 int r, src, num_src, sel, elem, cycle; in check_vector() local
456 num_src = r600_bytecode_get_num_operands(bc, alu); in check_vector()
457 for (src = 0; src < num_src; src++) { in check_vector()
484 int r, src, num_src, const_count, sel, elem, cycle; in check_scalar() local
486 num_src = r600_bytecode_get_num_operands(bc, alu); in check_scalar()
487 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
137 return op_table[opcode].num_src; in op_num_src()
299 int num_dst, num_src; in liveness_analysis() local
339 num_src = op_num_src(opcode); in liveness_analysis()
341 switch(num_src) in liveness_analysis()
355 debug_printf("Op %d has %d src regs\n", opcode, num_src); in liveness_analysis()
/external/mesa3d/src/gallium/drivers/ilo/shader/
Dtoy_tgsi.c39 int num_src; member
114 int num_src = tgsi_inst->Instruction.NumSrcRegs; in aos_simple() local
119 assert(num_src == aos_simple_opcode_map[tgsi_inst->Instruction.Opcode].num_src); in aos_simple()
151 num_src = 2; in aos_simple()
158 num_src = 2; in aos_simple()
187 assert(num_src <= ARRAY_SIZE(inst->src)); in aos_simple()
188 for (i = 0; i < num_src; i++) in aos_simple()
1771 int num_src = 0; in init_tgsi_reg() local
1774 inst->src[num_src++] = tsrc_imm_d(file); in init_tgsi_reg()
1777 inst->src[num_src++] = tsrc_imm_d((dimension) ? dimension->Index : 0); in init_tgsi_reg()
[all …]
/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()
333 …error( ctx, "%s: Invalid number of source operands, should be %u", info->mnemonic, info->num_src ); in iter_instruction()
Dtgsi_text.c1084 if (info->num_dst + info->num_src + info->is_tex == 0) { in parse_instruction()
1105 inst.Instruction.NumSrcRegs = info->num_src; in parse_instruction()
1124 assume(info->num_src <= TGSI_FULL_MAX_SRC_REGISTERS); in parse_instruction()
1128 for (i = 0; i < info->num_dst + info->num_src + info->is_tex; i++) { in parse_instruction()
1143 else if (i < info->num_dst + info->num_src) { in parse_instruction()
Dtgsi_two_side.c181 for (i = 0; i < info->num_src; i++) { in xform_inst()
Dtgsi_ureg.c1222 assert(nr_src == info->num_src); in validate()
1238 unsigned num_src ) in ureg_emit_insn() argument
1244 validate( opcode, num_dst, num_src ); in ureg_emit_insn()
1251 out[0].insn.NumSrcRegs = num_src; in ureg_emit_insn()
Dtgsi_ureg.h611 unsigned num_src );
/external/mesa3d/src/compiler/nir/
Dnir_lower_alu_to_scalar.c79 unsigned num_src = nir_op_infos[instr->op].num_inputs; in lower_alu_instr_scalar() local
217 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()
/external/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc_parser.cpp595 unsigned num_src = vtx ? ctx.vtx_src_num : 4; in prepare_fetch_clause() local
656 for(unsigned s = 0; s < num_src; ++s) { in prepare_fetch_clause()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler.c1060 assert(info->num_src <= ETNA_NUM_SRC); in trans_instr()
1062 for (unsigned i = 0; i < info->num_src; i++) { in trans_instr()
1833 for (int i = 0; i < tgsi->num_src && i < ETNA_NUM_SRC; i++) { in etna_compile_pass_generate_code()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_vgpu10.c5572 for (i = 0; i < op->num_src; i++) { in emit_simple()
5630 for (i = 0; i < op->num_src; i++) { in emit_simple_1dst()