Home
last modified time | relevance | path

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

123

/external/mesa3d/prebuilt-intermediates/nir/
Dnir_intrinsics.c28 .num_srcs = 1,
43 .num_srcs = 2,
58 .num_srcs = 2,
70 .num_srcs = 2,
85 .num_srcs = 2,
97 .num_srcs = 3,
112 .num_srcs = 3,
124 .num_srcs = 2,
139 .num_srcs = 2,
151 .num_srcs = 1,
[all …]
/external/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_tg4_to_tex.c41 int num_srcs = tg4->num_srcs + 1 /* lod */; in ir3_nir_lower_tg4_to_tex_instr() local
43 num_srcs++; in ir3_nir_lower_tg4_to_tex_instr()
45 nir_tex_instr *tex = nir_tex_instr_create(b->shader, num_srcs); in ir3_nir_lower_tg4_to_tex_instr()
56 for (int j = 0; j < tg4->num_srcs; j++) { in ir3_nir_lower_tg4_to_tex_instr()
65 tex->src[tg4->num_srcs].src = nir_src_for_ssa(offset); in ir3_nir_lower_tg4_to_tex_instr()
66 tex->src[tg4->num_srcs].src_type = nir_tex_src_offset; in ir3_nir_lower_tg4_to_tex_instr()
75 tex->src[num_srcs - 1].src = nir_src_for_ssa(nir_imm_float(b, 0)); in ir3_nir_lower_tg4_to_tex_instr()
76 tex->src[num_srcs - 1].src_type = nir_tex_src_lod; in ir3_nir_lower_tg4_to_tex_instr()
Dir3_nir_lower_io_offsets.c168 unsigned num_srcs = nir_intrinsic_infos[intrinsic->intrinsic].num_srcs; in lower_offset_for_ssbo() local
206 target_src = &new_intrinsic->src[num_srcs]; in lower_offset_for_ssbo()
217 for (unsigned i = 0; i < num_srcs; i++) in lower_offset_for_ssbo()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_conv.c462 unsigned num_srcs, in lp_build_conv_auto() argument
466 int num_dsts = num_srcs; in lp_build_conv_auto()
494 num_dsts = (num_srcs + 3) / 4; in lp_build_conv_auto()
495 dst_type->length = num_srcs * 4 >= 16 ? 16 : num_srcs * 4; in lp_build_conv_auto()
497 lp_build_conv(gallivm, src_type, *dst_type, src, num_srcs, dst, num_dsts); in lp_build_conv_auto()
505 num_dsts = (num_srcs + 1) / 2; in lp_build_conv_auto()
506 dst_type->length = num_srcs * 8 >= 16 ? 16 : num_srcs * 8; in lp_build_conv_auto()
508 lp_build_conv(gallivm, src_type, *dst_type, src, num_srcs, dst, num_dsts); in lp_build_conv_auto()
515 lp_build_conv(gallivm, src_type, *dst_type, src, num_srcs, dst, num_dsts); in lp_build_conv_auto()
528 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/compiler/nir/
Dnir_lower_cl_images_to_tex.c42 unsigned num_srcs; in lower_cl_images_to_tex_impl() local
47 num_srcs = 3; in lower_cl_images_to_tex_impl()
51 num_srcs = 2; in lower_cl_images_to_tex_impl()
72 nir_tex_instr *tex = nir_tex_instr_create(b.shader, num_srcs); in lower_cl_images_to_tex_impl()
102 assert(num_srcs == 3); in lower_cl_images_to_tex_impl()
115 assert(num_srcs == 2); in lower_cl_images_to_tex_impl()
Dnir_builtin_builder.c306 unsigned num_srcs = 1; /* One for the LOD */ in nir_get_texture_size() local
307 for (unsigned i = 0; i < tex->num_srcs; i++) { in nir_get_texture_size()
314 num_srcs++; in nir_get_texture_size()
317 txs = nir_tex_instr_create(b->shader, num_srcs); in nir_get_texture_size()
328 for (unsigned i = 0; i < tex->num_srcs; i++) { in nir_get_texture_size()
358 unsigned num_srcs = 0; in nir_get_texture_lod() local
359 for (unsigned i = 0; i < tex->num_srcs; i++) { in nir_get_texture_lod()
367 num_srcs++; in nir_get_texture_lod()
370 tql = nir_tex_instr_create(b->shader, num_srcs); in nir_get_texture_lod()
382 for (unsigned i = 0; i < tex->num_srcs; i++) { in nir_get_texture_lod()
Dnir_lower_wrmasks.c103 unsigned num_srcs = info->num_srcs; in split_wrmask() local
160 for (unsigned i = 0; i < num_srcs; i++) { in split_wrmask()
Dnir_serialize.c674 unsigned num_srcs:4; member
681 unsigned num_srcs:20; member
803 unsigned num_srcs = nir_op_infos[alu->op].num_inputs; in is_alu_src_ssa_16bit() local
805 for (unsigned i = 0; i < num_srcs; i++) { in is_alu_src_ssa_16bit()
830 unsigned num_srcs = nir_op_infos[alu->op].num_inputs; in write_alu() local
850 if (num_srcs > 1) in write_alu()
863 for (unsigned i = 0; i < num_srcs; i++) { in write_alu()
870 for (unsigned i = 0; i < num_srcs; i++) { in write_alu()
909 unsigned num_srcs = nir_op_infos[header.alu.op].num_inputs; in read_alu() local
930 for (unsigned i = 0; i < num_srcs; i++) { in read_alu()
[all …]
Dnir.c516 unsigned num_srcs = nir_op_infos[op].num_inputs; in nir_alu_instr_create() local
520 sizeof(nir_alu_instr) + num_srcs * sizeof(nir_alu_src)); in nir_alu_instr_create()
525 for (unsigned i = 0; i < num_srcs; i++) in nir_alu_instr_create()
580 unsigned num_srcs = nir_intrinsic_infos[op].num_srcs; in nir_intrinsic_instr_create() local
584 sizeof(nir_intrinsic_instr) + num_srcs * sizeof(nir_src)); in nir_intrinsic_instr_create()
592 for (unsigned i = 0; i < num_srcs; i++) in nir_intrinsic_instr_create()
624 nir_tex_instr_create(nir_shader *shader, unsigned num_srcs) in nir_tex_instr_create() argument
631 instr->num_srcs = num_srcs; in nir_tex_instr_create()
632 instr->src = ralloc_array(instr, nir_tex_src, num_srcs); in nir_tex_instr_create()
633 for (unsigned i = 0; i < num_srcs; i++) in nir_tex_instr_create()
[all …]
Dnir_instr_set.c253 for (unsigned i = 0; i < nir_intrinsic_infos[instr->intrinsic].num_srcs; i++) in hash_intrinsic()
263 hash = HASH(hash, instr->num_srcs); in hash_tex()
265 for (unsigned i = 0; i < instr->num_srcs; i++) { in hash_tex()
651 if (tex1->num_srcs != tex2->num_srcs) in nir_instrs_equal()
653 for (unsigned i = 0; i < tex1->num_srcs; i++) { in nir_instrs_equal()
737 for (unsigned i = 0; i < info->num_srcs; i++) { in nir_instrs_equal()
Dnir_lower_tex.c83 for (unsigned i = 0; i < tex->num_srcs; i++) { in project_src()
201 for (unsigned i = 0; i < tex->num_srcs; i++) { in lower_rect()
254 nir_tex_instr_create(b->shader, tex->num_srcs + 1); in sample_plane()
255 for (unsigned i = 0; i < tex->num_srcs; i++) { in sample_plane()
259 plane_tex->src[tex->num_srcs].src = nir_src_for_ssa(nir_imm_int(b, plane)); in sample_plane()
260 plane_tex->src[tex->num_srcs].src_type = nir_tex_src_plane; in sample_plane()
681 for (unsigned i = 0; i < tex->num_srcs; i++) { in saturate_src()
930 nir_tex_instr *tex_copy = nir_tex_instr_create(b->shader, tex->num_srcs + 1); in lower_tg4_offsets()
940 for (unsigned j = 0; j < tex->num_srcs; ++j) { in lower_tg4_offsets()
949 tex_copy->src[tex_copy->num_srcs - 1] = src; in lower_tg4_offsets()
Dnir_opt_copy_propagate.c211 for (unsigned i = 0; i < tex->num_srcs; i++) { in copy_prop_instr()
223 i < nir_intrinsic_infos[intrin->intrinsic].num_srcs; i++) { in copy_prop_instr()
Dnir_divergence_analysis.c283 unsigned num_srcs = nir_intrinsic_infos[instr->intrinsic].num_srcs; in visit_intrinsic() local
284 for (unsigned i = 0; i < num_srcs; i++) { in visit_intrinsic()
475 for (unsigned i = 0; i < instr->num_srcs; i++) { in visit_tex()
/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()
226 func = add_conv_test(gallivm, src_type, num_srcs, dst_type, num_dsts); in test_one()
245 for(j = 0; j < num_srcs; ++j) { in test_one()
[all …]
/external/mesa3d/src/compiler/spirv/
Dvtn_opencl.c35 unsigned num_srcs, nir_ssa_def **srcs,
136 uint32_t num_srcs, in mangle_and_find() argument
142 vtn_opencl_mangle(name, const_mask, num_srcs, src_types, &mname); in mangle_and_find()
177 uint32_t num_srcs, in call_mangled_function() argument
183 nir_function *found = mangle_and_find(b, name, const_mask, num_srcs, src_types); in call_mangled_function()
199 for (unsigned i = 0; i < num_srcs; i++) in call_mangled_function()
209 const uint32_t *w_src, unsigned num_srcs, const uint32_t *w_dest, nir_handler handler) in handle_instr() argument
215 vtn_assert(num_srcs <= ARRAY_SIZE(srcs)); in handle_instr()
216 for (unsigned i = 0; i < num_srcs; i++) { in handle_instr()
223 nir_ssa_def *result = handler(b, opcode, num_srcs, srcs, src_types, dest_type); in handle_instr()
[all …]
/external/mesa3d/src/mesa/program/
Dprog_to_nir.c247 unsigned num_srcs = nir_op_infos[op].num_inputs; in ptn_alu() local
251 for (i = 0; i < num_srcs; i++) in ptn_alu()
477 unsigned num_srcs; in ptn_tex() local
482 num_srcs = 1; in ptn_tex()
486 num_srcs = 2; in ptn_tex()
490 num_srcs = 3; in ptn_tex()
494 num_srcs = 2; in ptn_tex()
498 num_srcs = 2; in ptn_tex()
506 num_srcs += 2; in ptn_tex()
509 num_srcs++; in ptn_tex()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_nir_lower_ycbcr_textures.c112 nir_tex_instr *tex = nir_tex_instr_create(b->shader, old_tex->num_srcs+ 1); in create_plane_tex_instr_implicit()
113 for (uint32_t i = 0; i < old_tex->num_srcs; i++) { in create_plane_tex_instr_implicit()
132 tex->src[tex->num_srcs - 1].src = nir_src_for_ssa(nir_imm_int(b, plane)); in create_plane_tex_instr_implicit()
133 tex->src[tex->num_srcs - 1].src_type = nir_tex_src_plane; in create_plane_tex_instr_implicit()
/external/mesa3d/src/intel/vulkan/
Danv_nir_lower_ycbcr_textures.c121 nir_tex_instr *tex = nir_tex_instr_create(b->shader, old_tex->num_srcs + 1); in create_plane_tex_instr_implicit()
123 for (uint32_t i = 0; i < old_tex->num_srcs; i++) { in create_plane_tex_instr_implicit()
142 tex->src[tex->num_srcs - 1].src = nir_src_for_ssa(nir_imm_int(b, plane)); in create_plane_tex_instr_implicit()
143 tex->src[tex->num_srcs - 1].src_type = nir_tex_src_plane; in create_plane_tex_instr_implicit()
/external/mesa3d/src/freedreno/ir2/
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/compiler/glsl/
Dglsl_to_nir.cpp2355 unsigned num_srcs; in visit() local
2360 num_srcs = 1; /* coordinate */ in visit()
2366 num_srcs = 2; /* coordinate, bias/lod */ in visit()
2371 num_srcs = 3; in visit()
2377 num_srcs = 2; /* coordinate, lod */ in visit()
2379 num_srcs = 1; /* coordinate */ in visit()
2384 num_srcs = 2; /* coordinate, sample_index */ in visit()
2390 num_srcs = 1; /* lod */ in visit()
2392 num_srcs = 0; in visit()
2397 num_srcs = 1; /* coordinate */ in visit()
[all …]
/external/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c1337 unsigned num_srcs, samp = 1, sview, i; in ttn_tex() local
1342 num_srcs = 1; in ttn_tex()
1346 num_srcs = 1; in ttn_tex()
1351 num_srcs = 2; in ttn_tex()
1355 num_srcs = 2; in ttn_tex()
1359 num_srcs = 2; in ttn_tex()
1365 num_srcs = 2; in ttn_tex()
1369 num_srcs = 2; in ttn_tex()
1380 num_srcs = 2; in ttn_tex()
1384 num_srcs = 3; in ttn_tex()
[all …]

123