Home
last modified time | relevance | path

Searched refs:num_srcs (Results 1 – 25 of 42) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_conv.c445 unsigned num_srcs, in lp_build_conv_auto() argument
449 int num_dsts = num_srcs; in lp_build_conv_auto()
477 num_dsts = (num_srcs + 3) / 4; in lp_build_conv_auto()
478 dst_type->length = num_srcs * 4 >= 16 ? 16 : num_srcs * 4; in lp_build_conv_auto()
480 lp_build_conv(gallivm, src_type, *dst_type, src, num_srcs, dst, num_dsts); in lp_build_conv_auto()
488 num_dsts = (num_srcs + 1) / 2; in lp_build_conv_auto()
489 dst_type->length = num_srcs * 8 >= 16 ? 16 : num_srcs * 8; in lp_build_conv_auto()
491 lp_build_conv(gallivm, src_type, *dst_type, src, num_srcs, dst, num_dsts); in lp_build_conv_auto()
498 lp_build_conv(gallivm, src_type, *dst_type, src, num_srcs, dst, num_dsts); in lp_build_conv_auto()
511 dst_type->floating == 0 && (num_srcs % 2 == 0) && in lp_build_conv_auto()
[all …]
Dlp_bld_pack.c259 unsigned num_srcs, in lp_build_concat_n() argument
263 int size = num_srcs / num_dsts; in lp_build_concat_n()
266 assert(num_srcs >= num_dsts); in lp_build_concat_n()
267 assert((num_srcs % size) == 0); in lp_build_concat_n()
269 if (num_srcs == num_dsts) { in lp_build_concat_n()
827 const LLVMValueRef *src, unsigned num_srcs) in lp_build_pack() argument
841 assert(src_type.length * num_srcs == dst_type.length); in lp_build_pack()
848 for(i = 0; i < num_srcs; ++i) in lp_build_pack()
861 num_srcs /= 2; in lp_build_pack()
863 for(i = 0; i < num_srcs; ++i) in lp_build_pack()
[all …]
Dlp_bld_conv.h70 const LLVMValueRef *srcs, unsigned num_srcs,
79 unsigned num_srcs,
87 const LLVMValueRef *src, unsigned num_srcs,
Dlp_bld_pack.h107 unsigned num_srcs,
141 const LLVMValueRef *src, unsigned num_srcs);
148 const LLVMValueRef *src, unsigned num_srcs,
Dlp_bld_swizzle.h129 unsigned num_srcs,
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_nir_lower_tg4_to_tex.c53 int num_srcs = tg4->num_srcs + 1 /* lod */; in lower_tg4() local
55 num_srcs++; in lower_tg4()
57 nir_tex_instr *tex = nir_tex_instr_create(b->shader, num_srcs); in lower_tg4()
70 for (int j = 0; j < tg4->num_srcs; j++) { in lower_tg4()
79 tex->src[tg4->num_srcs].src = nir_src_for_ssa(offset); in lower_tg4()
80 tex->src[tg4->num_srcs].src_type = nir_tex_src_offset; in lower_tg4()
89 tex->src[num_srcs - 1].src = nir_src_for_ssa(nir_imm_float(b, 0)); in lower_tg4()
90 tex->src[num_srcs - 1].src_type = nir_tex_src_lod; in lower_tg4()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_conv.c101 struct lp_type src_type, unsigned num_srcs, in add_conv_test() argument
129 for(i = 0; i < num_srcs; ++i) { in add_conv_test()
135 lp_build_conv(gallivm, src_type, dst_type, src, num_srcs, dst, num_dsts); in add_conv_test()
166 unsigned num_srcs; in test_one() local
198 num_srcs = 1; in test_one()
203 num_srcs = dst_type.length/src_type.length; in test_one()
207 num_srcs = 1; in test_one()
211 assert(src_type.length * num_srcs == dst_type.length * num_dsts); in test_one()
218 func = add_conv_test(gallivm, src_type, num_srcs, dst_type, num_dsts); in test_one()
237 for(j = 0; j < num_srcs; ++j) { in test_one()
[all …]
Dlp_state_fs.c1266 unsigned num_srcs) in convert_to_blend_type() argument
1273 unsigned pixels = block_size / num_srcs; in convert_to_blend_type()
1292 assert(num_srcs % 4 == 0); in convert_to_blend_type()
1298 unsigned num_fetch = dst_type.length == 8 ? num_srcs / 2 : num_srcs / 4; in convert_to_blend_type()
1309 for (i = 0; i < num_srcs / 4; i++) { in convert_to_blend_type()
1348 for (i = 0; i < num_srcs; ++i) { in convert_to_blend_type()
1358 lp_build_conv_auto(gallivm, src_type, &dst_type, dst, num_srcs, dst); in convert_to_blend_type()
1370 for (i = 0; i < num_srcs; ++i) { in convert_to_blend_type()
1434 unsigned num_srcs) in convert_from_blend_type() argument
1441 unsigned pixels = block_size / num_srcs; in convert_from_blend_type()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir.c455 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()
[all …]
Dnir_search.c321 unsigned num_srcs; member
342 tree->num_srcs = info.num_inputs; in build_bitsize_tree()
358 tree->num_srcs = 0; in build_bitsize_tree()
365 tree->num_srcs = 0; in build_bitsize_tree()
383 for (unsigned i = 0; i < tree->num_srcs; i++) { in bitsize_tree_filter_up()
399 if (tree->num_srcs && tree->common_size) { in bitsize_tree_filter_up()
405 for (unsigned i = 0; i < tree->num_srcs; i++) { in bitsize_tree_filter_up()
429 for (unsigned i = 0; i < tree->num_srcs; i++) { in bitsize_tree_filter_down()
Dnir_instr_set.c146 hash = HASH(hash, instr->num_srcs); in hash_tex()
148 for (unsigned i = 0; i < instr->num_srcs; i++) { in hash_tex()
299 if (tex1->num_srcs != tex2->num_srcs) in nir_instrs_equal()
301 for (unsigned i = 0; i < tex1->num_srcs; i++) { in nir_instrs_equal()
377 for (unsigned i = 0; i < info->num_srcs; i++) { in nir_instrs_equal()
Dnir_serialize.c486 unsigned num_srcs = nir_intrinsic_infos[intrin->intrinsic].num_srcs; in write_intrinsic() local
497 for (unsigned i = 0; i < num_srcs; i++) in write_intrinsic()
512 unsigned num_srcs = nir_intrinsic_infos[op].num_srcs; in read_intrinsic() local
523 for (unsigned i = 0; i < num_srcs; i++) in read_intrinsic()
595 blob_write_uint32(ctx->blob, tex->num_srcs); in write_tex()
616 for (unsigned i = 0; i < tex->num_srcs; i++) { in write_tex()
630 unsigned num_srcs = blob_read_uint32(ctx->blob); in read_tex() local
631 nir_tex_instr *tex = nir_tex_instr_create(ctx->nir, num_srcs); in read_tex()
649 for (unsigned i = 0; i < tex->num_srcs; i++) { in read_tex()
707 unsigned num_srcs = blob_read_uint32(ctx->blob); in read_phi() local
[all …]
Dnir_lower_tex.c55 for (unsigned i = 0; i < tex->num_srcs; i++) { in project_src()
197 for (unsigned i = 0; i < tex->num_srcs; i++) { in lower_rect()
336 int num_srcs = tex->num_srcs - 1; in replace_gradient_with_lod() local
337 nir_tex_instr *txl = nir_tex_instr_create(b->shader, num_srcs); in replace_gradient_with_lod()
354 for (int i = 0; i < tex->num_srcs; i++) { in replace_gradient_with_lod()
367 assert(src_num == num_srcs); in replace_gradient_with_lod()
584 for (unsigned i = 0; i < tex->num_srcs; i++) { in saturate_src()
Dnir_intrinsics.c37 .num_srcs = _num_srcs, \
Dnir_clone.c356 unsigned num_srcs = nir_intrinsic_infos[itr->intrinsic].num_srcs; in clone_intrinsic() local
369 for (unsigned i = 0; i < num_srcs; i++) in clone_intrinsic()
404 nir_tex_instr *ntex = nir_tex_instr_create(state->ns, tex->num_srcs); in clone_tex()
410 for (unsigned i = 0; i < ntex->num_srcs; i++) { in clone_tex()
Dnir_opt_copy_propagate.c239 for (unsigned i = 0; i < tex->num_srcs; i++) { in copy_prop_instr()
259 i < nir_intrinsic_infos[intrin->intrinsic].num_srcs; i++) { in copy_prop_instr()
Dnir_normalize_cubemap_coords.c51 for (unsigned i = 0; i < tex->num_srcs; i++) { in normalize_cubemap_coords_block()
Dnir_print.c575 unsigned num_srcs = info->num_srcs; in print_intrinsic_instr() local
585 for (unsigned i = 0; i < num_srcs; i++) { in print_intrinsic_instr()
729 for (unsigned i = 0; i < instr->num_srcs; i++) { in print_tex_instr()
/external/mesa3d/src/mesa/program/
Dprog_to_nir.c270 unsigned num_srcs = nir_op_infos[op].num_inputs; in ptn_alu() local
274 for (i = 0; i < num_srcs; i++) in ptn_alu()
526 unsigned num_srcs; in ptn_tex() local
531 num_srcs = 1; in ptn_tex()
535 num_srcs = 2; in ptn_tex()
539 num_srcs = 3; in ptn_tex()
543 num_srcs = 2; in ptn_tex()
547 num_srcs = 2; in ptn_tex()
555 num_srcs++; in ptn_tex()
557 instr = nir_tex_instr_create(b->shader, num_srcs); in ptn_tex()
[all …]
Dprog_opt_constant_fold.c34 src_regs_are_constant(const struct prog_instruction *inst, unsigned num_srcs) in src_regs_are_constant() argument
38 for (i = 0; i < num_srcs; i++) { in src_regs_are_constant()
/external/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c835 unsigned num_srcs = nir_op_infos[op].num_inputs; in ttn_alu() local
839 for (i = 0; i < num_srcs; i++) in ttn_alu()
1204 unsigned num_srcs, samp = 1, sview, i; in ttn_tex() local
1209 num_srcs = 1; in ttn_tex()
1213 num_srcs = 1; in ttn_tex()
1218 num_srcs = 2; in ttn_tex()
1222 num_srcs = 2; in ttn_tex()
1226 num_srcs = 2; in ttn_tex()
1231 num_srcs = 2; in ttn_tex()
1235 num_srcs = 2; in ttn_tex()
[all …]
/external/mesa3d/src/compiler/glsl/
Dglsl_to_nir.cpp1958 unsigned num_srcs; in visit() local
1963 num_srcs = 1; /* coordinate */ in visit()
1969 num_srcs = 2; /* coordinate, bias/lod */ in visit()
1974 num_srcs = 3; in visit()
1980 num_srcs = 2; /* coordinate, lod */ in visit()
1982 num_srcs = 1; /* coordinate */ in visit()
1987 num_srcs = 2; /* coordinate, sample_index */ in visit()
1993 num_srcs = 1; /* lod */ in visit()
1995 num_srcs = 0; in visit()
2000 num_srcs = 1; /* coordinate */ in visit()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Ddisasm-a2xx.c126 uint32_t num_srcs; member
129 #define INSTR(opc, num_srcs) [opc] = { num_srcs, #opc } argument
240 if (vector_instructions[alu->vector_opc].num_srcs == 3) { in disasm_alu()
247 if (vector_instructions[alu->vector_opc].num_srcs > 1) { in disasm_alu()
/external/mesa3d/src/intel/vulkan/
Danv_nir_lower_ycbcr_textures.c235 nir_tex_instr *tex = nir_tex_instr_create(b->shader, old_tex->num_srcs + 1); in create_plane_tex_instr_implicit()
237 for (uint32_t i = 0; i < old_tex->num_srcs; i++) { in create_plane_tex_instr_implicit()
256 tex->src[tex->num_srcs - 1].src = nir_src_for_ssa(nir_imm_int(b, plane)); in create_plane_tex_instr_implicit()
257 tex->src[tex->num_srcs - 1].src_type = nir_tex_src_plane; in create_plane_tex_instr_implicit()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_txf_ms.c56 for (int i = 0; i < txf_ms->num_srcs; i++) { in vc4_nir_lower_txf_ms_instr()

12