/external/mesa3d/prebuilt-intermediates/nir/ |
D | nir_constant_expressions.c | 254 evaluate_b2f(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_b2f() argument 264 for (unsigned _i = 0; _i < num_components; _i++) { in evaluate_b2f() 278 for (unsigned _i = 0; _i < num_components; _i++) { in evaluate_b2f() 296 evaluate_b2i(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_b2i() argument 306 for (unsigned _i = 0; _i < num_components; _i++) { in evaluate_b2i() 320 for (unsigned _i = 0; _i < num_components; _i++) { in evaluate_b2i() 338 evaluate_ball_fequal2(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_fequal2() argument 404 evaluate_ball_fequal3(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_fequal3() argument 470 evaluate_ball_fequal4(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_fequal4() argument 536 evaluate_ball_iequal2(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_iequal2() argument [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_builder.h | 85 nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_ssa_undef() argument 88 nir_ssa_undef_instr_create(build->shader, num_components, bit_size); in nir_ssa_undef() 98 nir_build_imm(nir_builder *build, unsigned num_components, in nir_build_imm() argument 102 nir_load_const_instr_create(build->shader, num_components, bit_size); in nir_build_imm() 196 unsigned num_components = op_info->output_size; in nir_build_alu() local 197 if (num_components == 0) { in nir_build_alu() 200 num_components = MAX2(num_components, in nir_build_alu() 201 instr->src[i].src.ssa->num_components); in nir_build_alu() 204 assert(num_components != 0); in nir_build_alu() 229 for (unsigned j = instr->src[i].src.ssa->num_components; j < 4; j++) { in nir_build_alu() [all …]
|
D | nir_search.c | 40 unsigned num_components, const uint8_t *swizzle, 96 unsigned num_components, const uint8_t *swizzle, in match_value() argument 115 num_components = nir_op_infos[instr->op].input_sizes[src]; in match_value() 119 for (unsigned i = 0; i < num_components; ++i) in match_value() 134 num_components, new_swizzle, state); in match_value() 146 for (unsigned i = 0; i < num_components; ++i) { in match_value() 157 if (var->cond && !var->cond(instr, src, num_components, new_swizzle)) in match_value() 170 if (i < num_components) in match_value() 194 for (unsigned i = 0; i < num_components; ++i) { in match_value() 217 for (unsigned i = 0; i < num_components; ++i) { in match_value() [all …]
|
D | nir_lower_regs_to_ssa.c | 98 nir_ssa_dest_init(instr, dest, reg->num_components, in rewrite_dest() 120 if (write_mask == (1 << reg->num_components) - 1) { in rewrite_alu_instr() 133 unsigned num_components; in rewrite_alu_instr() local 139 num_components = 0; in rewrite_alu_instr() 142 vec_swizzle[index] = num_components++; in rewrite_alu_instr() 169 assert(ssa_index == num_components); in rewrite_alu_instr() 172 num_components = nir_op_infos[alu->op].output_size; in rewrite_alu_instr() 174 assert(num_components <= 4); in rewrite_alu_instr() 176 alu->dest.write_mask = (1 << num_components) - 1; in rewrite_alu_instr() 178 nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, in rewrite_alu_instr() [all …]
|
D | nir_lower_io_to_scalar.c | 42 for (unsigned i = 0; i < intr->num_components; i++) { in lower_load_input_to_scalar() 47 chan_intr->num_components = 1; in lower_load_input_to_scalar() 61 intr->num_components))); in lower_load_input_to_scalar() 70 nir_ssa_def *value = nir_ssa_for_src(b, intr->src[0], intr->num_components); in lower_store_output_to_scalar() 72 for (unsigned i = 0; i < intr->num_components; i++) { in lower_store_output_to_scalar() 78 chan_intr->num_components = 1; in lower_store_output_to_scalar() 110 if (intr->num_components == 1) in nir_lower_io_to_scalar()
|
D | nir_lower_var_copies.c | 119 unsigned num_components = glsl_get_vector_elements(src_tail->type); in emit_copy_load_store() local 124 load->num_components = num_components; in emit_copy_load_store() 126 nir_ssa_dest_init(&load->instr, &load->dest, num_components, bit_size, in emit_copy_load_store() 133 store->num_components = num_components; in emit_copy_load_store() 134 nir_intrinsic_set_write_mask(store, (1 << num_components) - 1); in emit_copy_load_store()
|
D | nir_instr_set.c | 38 hash_alu_src(uint32_t hash, const nir_alu_src *src, unsigned num_components) in hash_alu_src() argument 43 for (unsigned i = 0; i < num_components; i++) in hash_alu_src() 54 hash = HASH(hash, instr->dest.dest.ssa.num_components); in hash_alu() 84 hash = HASH(hash, instr->def.num_components); in hash_load_const() 86 unsigned size = instr->def.num_components * (instr->def.bit_size / 8); in hash_load_const() 130 hash = HASH(hash, instr->dest.ssa.num_components); in hash_intrinsic() 270 if (alu1->dest.dest.ssa.num_components != alu2->dest.dest.ssa.num_components) in nir_instrs_equal() 330 if (load1->def.num_components != load2->def.num_components) in nir_instrs_equal() 337 load1->def.num_components * (load1->def.bit_size / 8u)) == 0; in nir_instrs_equal() 366 intrinsic1->num_components != intrinsic2->num_components) in nir_instrs_equal() [all …]
|
D | nir_search_helpers.h | 39 is_pos_power_of_two(nir_alu_instr *instr, unsigned src, unsigned num_components, in is_pos_power_of_two() argument 48 for (unsigned i = 0; i < num_components; i++) { in is_pos_power_of_two() 69 is_neg_power_of_two(nir_alu_instr *instr, unsigned src, unsigned num_components, in is_neg_power_of_two() argument 78 for (unsigned i = 0; i < num_components; i++) { in is_neg_power_of_two() 95 is_zero_to_one(nir_alu_instr *instr, unsigned src, unsigned num_components, in is_zero_to_one() argument 103 for (unsigned i = 0; i < num_components; i++) { in is_zero_to_one()
|
D | nir_from_ssa.c | 342 phi->dest.ssa.num_components, in isolate_phi_nodes_block() 356 phi->dest.ssa.num_components, phi->dest.ssa.bit_size, in isolate_phi_nodes_block() 409 if (entry->dest.ssa.num_components != entry->src.ssa->num_components) in aggressive_coalesce_parallel_copy() 456 reg->num_components = def->num_components; in create_reg_for_ssa_def() 549 assert(src.ssa->num_components >= dest_src.reg.reg->num_components); in emit_copy() 551 assert(src.reg.reg->num_components >= dest_src.reg.reg->num_components); in emit_copy() 556 mov->dest.write_mask = (1 << dest_src.reg.reg->num_components) - 1; in emit_copy() 710 reg->num_components = values[b].ssa->num_components; in resolve_parallel_copy() 712 reg->num_components = values[b].reg.reg->num_components; in resolve_parallel_copy() 850 mov->dest.write_mask = (1 << reg->num_components) - 1; in place_phi_read() [all …]
|
D | nir_lower_alu_to_scalar.c | 34 nir_alu_ssa_dest_init(nir_alu_instr *instr, unsigned num_components, in nir_alu_ssa_dest_init() argument 37 nir_ssa_dest_init(&instr->instr, &instr->dest.dest, num_components, in nir_alu_ssa_dest_init() 39 instr->dest.write_mask = (1 << num_components) - 1; in nir_alu_ssa_dest_init() 46 unsigned num_components = nir_op_infos[instr->op].input_sizes[0]; in lower_reduction() local 49 for (unsigned i = 0; i < num_components; i++) { in lower_reduction() 206 if (instr->dest.dest.ssa.num_components == 1) in lower_alu_instr_scalar() 209 unsigned num_components = instr->dest.dest.ssa.num_components; in lower_alu_instr_scalar() local 238 nir_ssa_def *vec = nir_vec(b, comps, num_components); in lower_alu_instr_scalar()
|
D | nir_lower_vars_to_ssa.c | 507 intrin->num_components, in rename_variables() 525 for (unsigned i = intrin->num_components; i < 4; i++) in rename_variables() 530 mov->dest.write_mask = (1 << intrin->num_components) - 1; in rename_variables() 532 intrin->num_components, in rename_variables() 557 assert(intrin->num_components == in rename_variables() 566 if (wrmask == (1 << intrin->num_components) - 1) { in rename_variables() 573 swiz[i] = i < intrin->num_components ? i : 0; in rename_variables() 576 intrin->num_components, false); in rename_variables() 585 for (unsigned i = 0; i < intrin->num_components; i++) { in rename_variables() 592 new_def = nir_vec(&b, srcs, intrin->num_components); in rename_variables() [all …]
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
D | mixture_test.py | 110 def make_univariate_mixture(batch_shape, num_components, use_static_graph): argument 113 array_ops.concat((batch_shape, [num_components]), axis=0), 119 for _ in range(num_components) 125 def make_multivariate_mixture(batch_shape, num_components, event_shape, argument 131 array_ops.concat((batch_shape_tensor, [num_components]), 0), 134 tensor_shape.TensorShape(batch_shape).concatenate(num_components)) 146 components = [create_component() for _ in range(num_components)] 157 dist = make_univariate_mixture(batch_shape, num_components=10, 166 batch_shape, num_components=10, event_shape=event_shape, 252 batch_shape=batch_shape, num_components=2, [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | opt_swizzle_swizzle.cpp | 61 if (swiz2->mask.num_components >= 1) in visit_enter() 63 if (swiz2->mask.num_components >= 2) in visit_enter() 65 if (swiz2->mask.num_components >= 3) in visit_enter() 67 if (swiz2->mask.num_components >= 4) in visit_enter() 70 if (ir->mask.num_components >= 1) in visit_enter() 72 if (ir->mask.num_components >= 2) in visit_enter() 74 if (ir->mask.num_components >= 3) in visit_enter() 76 if (ir->mask.num_components >= 4) in visit_enter()
|
/external/tensorflow/tensorflow/core/grappler/utils/ |
D | scc.cc | 128 int* num_components) { in StronglyConnectedComponents() argument 152 *num_components = 0; in StronglyConnectedComponents() 157 StrongConnect(&v, &stack, &index, components, num_components); in StronglyConnectedComponents() 161 std::vector<int> counts_per_component(*num_components, 0); in StronglyConnectedComponents() 164 DCHECK(component.second < *num_components); in StronglyConnectedComponents() 171 (*num_components)--; in StronglyConnectedComponents() 176 (*num_components) += 1; in StronglyConnectedComponents() 182 int num_components = 0; in IdentifyLoops() local 184 StronglyConnectedComponents(graph, &components, &num_components); in IdentifyLoops() 185 if (num_components <= 1) { in IdentifyLoops() [all …]
|
D | scc_test.cc | 62 int num_components; in TEST_F() local 63 StronglyConnectedComponents(item.graph, &components, &num_components); in TEST_F() 65 EXPECT_EQ(num_components, 1); in TEST_F() 92 int num_components; in TEST_F() local 94 StronglyConnectedComponents(graph, &components, &num_components); in TEST_F() 96 EXPECT_EQ(num_components, 2); in TEST_F() 155 int num_components; in TEST_F() local 157 StronglyConnectedComponents(graph, &components, &num_components); in TEST_F() 159 EXPECT_EQ(num_components, 4); in TEST_F() 391 int num_components; in TEST_F() local [all …]
|
/external/libjpeg-turbo/ |
D | jcparam.c | 353 cinfo->num_components = 1; in jpeg_set_colorspace() 359 cinfo->num_components = 3; in jpeg_set_colorspace() 366 cinfo->num_components = 3; in jpeg_set_colorspace() 375 cinfo->num_components = 4; in jpeg_set_colorspace() 383 cinfo->num_components = 4; in jpeg_set_colorspace() 390 cinfo->num_components = cinfo->input_components; in jpeg_set_colorspace() 391 if (cinfo->num_components < 1 || cinfo->num_components > MAX_COMPONENTS) in jpeg_set_colorspace() 392 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in jpeg_set_colorspace() 394 for (ci = 0; ci < cinfo->num_components; ci++) { in jpeg_set_colorspace() 471 int ncomps = cinfo->num_components; in jpeg_simple_progression()
|
D | jcmaster.c | 99 || cinfo->num_components <= 0 || cinfo->input_components <= 0) in initial_setup() 118 if (cinfo->num_components > MAX_COMPONENTS) in initial_setup() 119 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in initial_setup() 125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 137 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 203 for (ci = 0; ci < cinfo->num_components; ci++) in validate_script() 211 for (ci = 0; ci < cinfo->num_components; ci++) in validate_script() 222 if (thisi < 0 || thisi >= cinfo->num_components) in validate_script() 297 for (ci = 0; ci < cinfo->num_components; ci++) { in validate_script() 303 for (ci = 0; ci < cinfo->num_components; ci++) { in validate_script() [all …]
|
D | jcprepct.c | 158 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_data() 177 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in pre_process_data() 221 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_context() 239 for (ci = 0; ci < cinfo->num_components; ci++) { in pre_process_context() 283 (cinfo->num_components * 5 * rgroup_height) * in create_context_buffer() 286 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer() 348 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_prep_controller()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_nir_opt_peephole_ffma.c | 71 get_mul_for_src(nir_alu_src *src, int num_components, in get_mul_for_src() argument 96 alu = get_mul_for_src(&alu->src[0], num_components, swizzle, negate, abs); in get_mul_for_src() 100 alu = get_mul_for_src(&alu->src[0], num_components, swizzle, negate, abs); in get_mul_for_src() 105 alu = get_mul_for_src(&alu->src[0], num_components, swizzle, negate, abs); in get_mul_for_src() 136 for (int i = 0; i < num_components; i++) in get_mul_for_src() 202 add->dest.dest.ssa.num_components, in brw_nir_opt_peephole_ffma_block() 243 for (unsigned j = 0; j < add->dest.dest.ssa.num_components; j++) in brw_nir_opt_peephole_ffma_block() 251 add->dest.dest.ssa.num_components, in brw_nir_opt_peephole_ffma_block()
|
D | brw_fs_nir.cpp | 257 unsigned size = array_elems * reg->num_components; in nir_emit_impl() 1366 fs_reg reg = bld.vgrf(reg_type, instr->def.num_components); in nir_emit_load_const() 1370 for (unsigned i = 0; i < instr->def.num_components; i++) in nir_emit_load_const() 1375 for (unsigned i = 0; i < instr->def.num_components; i++) in nir_emit_load_const() 1395 reg = bld.vgrf(reg_type, src.ssa->num_components); in get_nir_src() 1403 src.reg.base_offset * src.reg.reg->num_components); in get_nir_src() 1430 bld.vgrf(reg_type, dest.ssa.num_components); in get_nir_dest() 1436 dest.reg.base_offset * dest.reg.reg->num_components); in get_nir_dest() 1932 unsigned num_components, in emit_gs_input_load() argument 1958 for (unsigned i = 0; i < num_components; i++) { in emit_gs_input_load() [all …]
|
D | brw_nir_tcs_workarounds.c | 76 load_output(nir_builder *b, int num_components, int offset, int component) in load_output() argument 80 nir_ssa_dest_init(&load->instr, &load->dest, num_components, 32, NULL); in load_output() 81 load->num_components = num_components; in load_output() 115 store->num_components = 2; in emit_quads_workaround()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | fifo_queue.cc | 43 (*tuple).reserve(num_components()); in DequeueLocked() 44 for (int i = 0; i < num_components(); ++i) { in DequeueLocked() 69 for (int i = 0; i < num_components(); ++i) { in TryEnqueue() 131 for (int i = 0; i < num_components(); ++i) { in TryEnqueueMany() 207 tuple.reserve(num_components()); in TryDequeueMany() 208 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany() 271 for (int j = 0; j < num_components(); ++j) { in TryDequeueMany() 315 attempt->tuple.reserve(num_components()); in TryDequeueMany() 316 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany() 331 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany()
|
D | random_shuffle_queue_op.cc | 110 for (int i = 0; i < num_components(); ++i) { in Initialize() 119 (*tuple).reserve(num_components()); in DequeueLocked() 120 for (int i = 0; i < num_components(); ++i) { in DequeueLocked() 146 for (int i = 0; i < num_components(); ++i) { in TryEnqueue() 208 for (int i = 0; i < num_components(); ++i) { in TryEnqueueMany() 286 tuple.reserve(num_components()); in TryDequeueMany() 287 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany() 348 for (int j = 0; j < num_components(); ++j) { in TryDequeueMany() 393 attempt->tuple.reserve(num_components()); in TryDequeueMany() 394 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany() [all …]
|
D | priority_queue.cc | 64 (*tuple).reserve(num_components()); in DequeueLocked() 65 for (int i = 0; i < num_components(); ++i) { in DequeueLocked() 98 for (int i = 0; i < num_components(); ++i) { in TryEnqueue() 173 for (int i = 0; i < num_components(); ++i) { in TryEnqueueMany() 250 tuple.reserve(num_components()); in TryDequeueMany() 251 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany() 345 attempt->tuple.reserve(num_components()); in TryDequeueMany() 346 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany() 361 for (int i = 0; i < num_components(); ++i) { in TryDequeueMany()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_shader.c | 76 link.varyings[idx].num_components, "xyzw", in etna_link_shaders() 84 if (link.num_varyings > 0 && link.varyings[link.num_varyings - 1].num_components <= 2) in etna_link_shaders() 145 DEFINE_ETNA_BITARRAY(num_components, ETNA_NUM_VARYINGS, 4) = {0}; in etna_link_shaders() 150 etna_bitarray_set(num_components, 4, idx, varying->num_components); in etna_link_shaders() 151 for (int comp = 0; comp < varying->num_components; ++comp) { in etna_link_shaders() 159 cs->GL_VARYING_NUM_COMPONENTS = num_components[0]; in etna_link_shaders()
|