Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/auxiliary/util/
Du_cpu_detect.c87 struct util_cpu_caps util_cpu_caps; variable
125 util_cpu_caps.has_altivec = 1; in check_os_altivec_support()
157 util_cpu_caps.has_altivec = 1; in check_os_altivec_support()
159 util_cpu_caps.has_altivec = 0; in check_os_altivec_support()
336 util_cpu_caps.has_neon = 1; in check_os_arm_support()
348 util_cpu_caps.has_neon = (hwcap >> 12) & 1; in check_os_arm_support()
366 memset(&util_cpu_caps, 0, sizeof util_cpu_caps); in util_cpu_detect()
373 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect()
376 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect()
377 if (util_cpu_caps.nr_cpus == ~0u) 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
88 extern struct util_cpu_caps argument
89 util_cpu_caps;
/external/virglrenderer/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()
306 memset(&util_cpu_caps, 0, sizeof util_cpu_caps); in util_cpu_detect()
313 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect()
316 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect()
317 if (util_cpu_caps.nr_cpus == -1) in util_cpu_detect()
318 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
329 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
332 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
76 extern struct util_cpu_caps argument
77 util_cpu_caps;
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_init.c414 assert(util_cpu_caps.has_sse2); in lp_build_init()
415 util_cpu_caps.has_sse3 = 0; in lp_build_init()
416 util_cpu_caps.has_ssse3 = 0; in lp_build_init()
417 util_cpu_caps.has_sse4_1 = 0; in lp_build_init()
418 util_cpu_caps.has_sse4_2 = 0; in lp_build_init()
419 util_cpu_caps.has_avx = 0; in lp_build_init()
420 util_cpu_caps.has_avx2 = 0; in lp_build_init()
421 util_cpu_caps.has_f16c = 0; in lp_build_init()
422 util_cpu_caps.has_fma = 0; in lp_build_init()
433 if (util_cpu_caps.has_avx && in lp_build_init()
[all …]
Dlp_bld_misc.cpp583 MAttrs.push_back(util_cpu_caps.has_sse ? "+sse" : "-sse" ); in lp_build_create_jit_compiler_for_module()
584 MAttrs.push_back(util_cpu_caps.has_sse2 ? "+sse2" : "-sse2" ); in lp_build_create_jit_compiler_for_module()
585 MAttrs.push_back(util_cpu_caps.has_sse3 ? "+sse3" : "-sse3" ); in lp_build_create_jit_compiler_for_module()
586 MAttrs.push_back(util_cpu_caps.has_ssse3 ? "+ssse3" : "-ssse3" ); in lp_build_create_jit_compiler_for_module()
588 MAttrs.push_back(util_cpu_caps.has_sse4_1 ? "+sse4.1" : "-sse4.1"); in lp_build_create_jit_compiler_for_module()
590 MAttrs.push_back(util_cpu_caps.has_sse4_1 ? "+sse41" : "-sse41" ); in lp_build_create_jit_compiler_for_module()
593 MAttrs.push_back(util_cpu_caps.has_sse4_2 ? "+sse4.2" : "-sse4.2"); in lp_build_create_jit_compiler_for_module()
595 MAttrs.push_back(util_cpu_caps.has_sse4_2 ? "+sse42" : "-sse42" ); in lp_build_create_jit_compiler_for_module()
603 MAttrs.push_back(util_cpu_caps.has_avx ? "+avx" : "-avx"); in lp_build_create_jit_compiler_for_module()
604 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.c325 if (type.length == 2 && type.width == 128 && util_cpu_caps.has_avx) { in lp_build_interleave2()
487 if (src_type.length * src_type.width == 256 && util_cpu_caps.has_avx2) { in lp_build_unpack2_native()
588 if ((util_cpu_caps.has_sse2 || util_cpu_caps.has_altivec) && in lp_build_pack2()
595 if (util_cpu_caps.has_sse2) { in lp_build_pack2()
599 if (util_cpu_caps.has_sse4_1) { in lp_build_pack2()
603 } else if (util_cpu_caps.has_altivec) { in lp_build_pack2()
616 if (util_cpu_caps.has_sse2) { in lp_build_pack2()
618 } else if (util_cpu_caps.has_altivec) { in lp_build_pack2()
625 if (util_cpu_caps.has_sse2) { in lp_build_pack2()
627 } 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.c491 } else if (util_cpu_caps.has_avx2 && !need_expansion && in lp_build_gather()
503 } 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.c1118 (util_cpu_caps.has_avx2 || !util_cpu_caps.has_sse)) { in lp_build_minify()
/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/drivers/swr/
Dswr_loader.cpp78 if (util_cpu_caps.has_avx512f && util_cpu_caps.has_avx512er) { in swr_create_screen()
90 if (util_cpu_caps.has_avx512f && util_cpu_caps.has_avx512bw) { in swr_create_screen()
100 if (util_cpu_caps.has_avx2) { in swr_create_screen()
110 if (util_cpu_caps.has_avx) { in swr_create_screen()
/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/vc4/
Dvc4_tiling.h93 if (util_cpu_caps.has_neon) { in vc4_load_lt_image()
109 if (util_cpu_caps.has_neon) { in vc4_store_lt_image()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c669 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()

12