Home
last modified time | relevance | path

Searched refs:util_cpu_caps (Results 1 – 22 of 22) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/util/
Du_cpu_detect.c81 struct util_cpu_caps util_cpu_caps; variable
119 util_cpu_caps.has_altivec = 1; in check_os_altivec_support()
138 util_cpu_caps.has_altivec = 1; in check_os_altivec_support()
305 memset(&util_cpu_caps, 0, sizeof util_cpu_caps); in util_cpu_detect()
312 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect()
315 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect()
316 if (util_cpu_caps.nr_cpus == ~0u) in util_cpu_detect()
317 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
328 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
331 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
[all …]
Du_math.c93 if (util_cpu_caps.has_sse) { in util_fpstate_get()
111 if (util_cpu_caps.has_sse) { in util_fpstate_set_denorms_to_zero()
114 if (util_cpu_caps.has_daz) { in util_fpstate_set_denorms_to_zero()
133 if (util_cpu_caps.has_sse) { in util_fpstate_set()
Du_cpu_detect.h48 struct util_cpu_caps { struct
87 extern struct util_cpu_caps argument
88 util_cpu_caps;
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_init.c430 assert(util_cpu_caps.has_sse2); in lp_build_init()
431 util_cpu_caps.has_sse3 = 0; in lp_build_init()
432 util_cpu_caps.has_ssse3 = 0; in lp_build_init()
433 util_cpu_caps.has_sse4_1 = 0; in lp_build_init()
434 util_cpu_caps.has_sse4_2 = 0; in lp_build_init()
435 util_cpu_caps.has_avx = 0; in lp_build_init()
436 util_cpu_caps.has_avx2 = 0; in lp_build_init()
437 util_cpu_caps.has_f16c = 0; in lp_build_init()
438 util_cpu_caps.has_fma = 0; in lp_build_init()
449 if (util_cpu_caps.has_avx && in lp_build_init()
[all …]
Dlp_bld_misc.cpp569 MAttrs.push_back(util_cpu_caps.has_sse ? "+sse" : "-sse" ); in lp_build_create_jit_compiler_for_module()
570 MAttrs.push_back(util_cpu_caps.has_sse2 ? "+sse2" : "-sse2" ); in lp_build_create_jit_compiler_for_module()
571 MAttrs.push_back(util_cpu_caps.has_sse3 ? "+sse3" : "-sse3" ); in lp_build_create_jit_compiler_for_module()
572 MAttrs.push_back(util_cpu_caps.has_ssse3 ? "+ssse3" : "-ssse3" ); in lp_build_create_jit_compiler_for_module()
574 MAttrs.push_back(util_cpu_caps.has_sse4_1 ? "+sse4.1" : "-sse4.1"); in lp_build_create_jit_compiler_for_module()
576 MAttrs.push_back(util_cpu_caps.has_sse4_1 ? "+sse41" : "-sse41" ); in lp_build_create_jit_compiler_for_module()
579 MAttrs.push_back(util_cpu_caps.has_sse4_2 ? "+sse4.2" : "-sse4.2"); in lp_build_create_jit_compiler_for_module()
581 MAttrs.push_back(util_cpu_caps.has_sse4_2 ? "+sse42" : "-sse42" ); in lp_build_create_jit_compiler_for_module()
589 MAttrs.push_back(util_cpu_caps.has_avx ? "+avx" : "-avx"); in lp_build_create_jit_compiler_for_module()
590 MAttrs.push_back(util_cpu_caps.has_f16c ? "+f16c" : "-f16c"); in lp_build_create_jit_compiler_for_module()
[all …]
Dlp_bld_arit.c105 if (type.floating && util_cpu_caps.has_sse) { in lp_build_min_simple()
111 else if (type.length <= 4 || !util_cpu_caps.has_avx) { in lp_build_min_simple()
120 if (type.width == 64 && util_cpu_caps.has_sse2) { in lp_build_min_simple()
125 else if (type.length == 2 || !util_cpu_caps.has_avx) { in lp_build_min_simple()
135 else if (type.floating && util_cpu_caps.has_altivec) { in lp_build_min_simple()
146 util_cpu_caps.has_avx2 && type.length > 4) { in lp_build_min_simple()
160 util_cpu_caps.has_sse2 && type.length >= 2) { in lp_build_min_simple()
174 if (util_cpu_caps.has_sse4_1) { in lp_build_min_simple()
188 } else if (util_cpu_caps.has_altivec) { in lp_build_min_simple()
218 if (util_cpu_caps.has_sse && type.floating && in lp_build_min_simple()
[all …]
Dlp_bld_pack.c300 if (type.length == 2 && type.width == 128 && util_cpu_caps.has_avx) { in lp_build_interleave2()
451 if (src_type.length * src_type.width == 256 && util_cpu_caps.has_avx2) { in lp_build_unpack2_native()
552 if ((util_cpu_caps.has_sse2 || util_cpu_caps.has_altivec) && in lp_build_pack2()
559 if (util_cpu_caps.has_sse2) { in lp_build_pack2()
563 if (util_cpu_caps.has_sse4_1) { in lp_build_pack2()
567 } else if (util_cpu_caps.has_altivec) { in lp_build_pack2()
580 if (util_cpu_caps.has_sse2) { in lp_build_pack2()
582 } else if (util_cpu_caps.has_altivec) { in lp_build_pack2()
589 if (util_cpu_caps.has_sse2) { in lp_build_pack2()
591 } else if (util_cpu_caps.has_altivec) { in lp_build_pack2()
[all …]
Dlp_bld_logic.c198 util_cpu_caps.has_sse2 && in lp_build_compare()
350 else if (((util_cpu_caps.has_sse4_1 && in lp_build_select()
352 (util_cpu_caps.has_avx && in lp_build_select()
354 (util_cpu_caps.has_avx2 && in lp_build_select()
376 assert(util_cpu_caps.has_avx2); in lp_build_select()
Dlp_bld_conv.c104 if (util_cpu_caps.has_f16c && in lp_build_half_to_float()
156 if (util_cpu_caps.has_f16c && in lp_build_float_to_half()
475 (util_cpu_caps.has_sse2 || util_cpu_caps.has_altivec)) in lp_build_conv_auto()
486 util_cpu_caps.has_avx) in lp_build_conv_auto()
583 (util_cpu_caps.has_sse2 || util_cpu_caps.has_altivec)) in lp_build_conv()
694 util_cpu_caps.has_avx) { in lp_build_conv()
Dlp_bld_gather.c465 } else if (util_cpu_caps.has_avx2 && !need_expansion && in lp_build_gather()
477 } else if (0 && util_cpu_caps.has_avx2 && !need_expansion && in lp_build_gather()
Dlp_bld_format_yuv.c93 if (util_cpu_caps.has_sse2 && n > 1) { in uyvy_to_yuv_soa()
177 if (util_cpu_caps.has_sse2 && n > 1) { in yuyv_to_yuv_soa()
Dlp_bld_sample_aos.c1416 boolean use_floats = util_cpu_caps.has_avx && in lp_build_sample_mipmap()
1417 !util_cpu_caps.has_avx2 && in lp_build_sample_mipmap()
Dlp_bld_sample.c1108 (util_cpu_caps.has_avx2 || !util_cpu_caps.has_sse)) { in lp_build_minify()
Dlp_bld_sample_soa.c2868 (util_cpu_caps.has_avx2 && in lp_build_sample_soa_code()
/external/mesa3d/src/gallium/tests/unit/
Dtranslate_test.c82 util_cpu_caps.has_sse = 0; in main()
83 util_cpu_caps.has_sse2 = 0; in main()
84 util_cpu_caps.has_sse3 = 0; in main()
85 util_cpu_caps.has_sse4_1 = 0; in main()
90 if(!util_cpu_caps.has_sse || !rtasm_cpu_has_sse()) in main()
95 util_cpu_caps.has_sse2 = 0; in main()
96 util_cpu_caps.has_sse3 = 0; in main()
97 util_cpu_caps.has_sse4_1 = 0; in main()
102 if(!util_cpu_caps.has_sse2 || !rtasm_cpu_has_sse()) in main()
107 util_cpu_caps.has_sse3 = 0; in main()
[all …]
/external/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_cpu.c38 static struct util_cpu_caps *get_cpu_caps(void) in get_cpu_caps()
41 return &util_cpu_caps; in get_cpu_caps()
Drtasm_x86sse.c2155 if(util_cpu_caps.has_mmx) in x86_init_func_common()
2157 if(util_cpu_caps.has_mmx2) in x86_init_func_common()
2159 if(util_cpu_caps.has_sse) in x86_init_func_common()
2161 if(util_cpu_caps.has_sse2) in x86_init_func_common()
2163 if(util_cpu_caps.has_sse3) in x86_init_func_common()
2165 if(util_cpu_caps.has_sse4_1) in x86_init_func_common()
/external/mesa3d/src/gallium/drivers/swr/
Dswr_loader.cpp43 if (util_cpu_caps.has_avx2) { in swr_create_screen()
46 } else if (util_cpu_caps.has_avx) { in swr_create_screen()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c654 screen->num_threads = util_cpu_caps.nr_cpus > 1 ? util_cpu_caps.nr_cpus : 0; in llvmpipe_create_screen()
Dlp_texture.c86 unsigned mip_align = MAX2(64, util_cpu_caps.cacheline); in llvmpipe_texture_layout()
124 lpr->row_stride[level] = align(nblocksx * block_size, util_cpu_caps.cacheline); in llvmpipe_texture_layout()
Dlp_test_arit.c385 if (util_cpu_caps.has_sse) { in flush_denorm_to_zero()
Dlp_bld_depth.c438 if(util_cpu_caps.has_sse && type.length == 4) { in lp_build_occlusion_count()
449 else if(util_cpu_caps.has_avx && type.length == 8) { in lp_build_occlusion_count()