Home
last modified time | relevance | path

Searched refs:util_get_cpu_caps (Results 1 – 25 of 45) sorted by relevance

12

/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_misc.cpp406 MAttrs.push_back(util_get_cpu_caps()->has_sse ? "+sse" : "-sse" ); in lp_build_create_jit_compiler_for_module()
407 MAttrs.push_back(util_get_cpu_caps()->has_sse2 ? "+sse2" : "-sse2" ); in lp_build_create_jit_compiler_for_module()
408 MAttrs.push_back(util_get_cpu_caps()->has_sse3 ? "+sse3" : "-sse3" ); in lp_build_create_jit_compiler_for_module()
409 MAttrs.push_back(util_get_cpu_caps()->has_ssse3 ? "+ssse3" : "-ssse3" ); in lp_build_create_jit_compiler_for_module()
410 MAttrs.push_back(util_get_cpu_caps()->has_sse4_1 ? "+sse4.1" : "-sse4.1"); in lp_build_create_jit_compiler_for_module()
411 MAttrs.push_back(util_get_cpu_caps()->has_sse4_2 ? "+sse4.2" : "-sse4.2"); in lp_build_create_jit_compiler_for_module()
418 MAttrs.push_back(util_get_cpu_caps()->has_avx ? "+avx" : "-avx"); in lp_build_create_jit_compiler_for_module()
419 MAttrs.push_back(util_get_cpu_caps()->has_f16c ? "+f16c" : "-f16c"); in lp_build_create_jit_compiler_for_module()
420 MAttrs.push_back(util_get_cpu_caps()->has_fma ? "+fma" : "-fma"); in lp_build_create_jit_compiler_for_module()
421 MAttrs.push_back(util_get_cpu_caps()->has_avx2 ? "+avx2" : "-avx2"); in lp_build_create_jit_compiler_for_module()
[all …]
Dlp_bld_arit.c107 if (type.floating && util_get_cpu_caps()->has_sse) { in lp_build_min_simple()
113 else if (type.length <= 4 || !util_get_cpu_caps()->has_avx) { in lp_build_min_simple()
122 if (type.width == 64 && util_get_cpu_caps()->has_sse2) { in lp_build_min_simple()
127 else if (type.length == 2 || !util_get_cpu_caps()->has_avx) { in lp_build_min_simple()
137 else if (type.floating && util_get_cpu_caps()->has_altivec) { in lp_build_min_simple()
146 } else if (util_get_cpu_caps()->has_altivec) { in lp_build_min_simple()
176 if (util_get_cpu_caps()->has_sse && type.floating && in lp_build_min_simple()
261 if (type.floating && util_get_cpu_caps()->has_sse) { in lp_build_max_simple()
267 else if (type.length <= 4 || !util_get_cpu_caps()->has_avx) { in lp_build_max_simple()
276 if (type.width == 64 && util_get_cpu_caps()->has_sse2) { in lp_build_max_simple()
[all …]
Dlp_bld_pack.c325 if (type.length == 2 && type.width == 128 && util_get_cpu_caps()->has_avx) { in lp_build_interleave2()
487 if (src_type.length * src_type.width == 256 && util_get_cpu_caps()->has_avx2) { in lp_build_unpack2_native()
588 if ((util_get_cpu_caps()->has_sse2 || util_get_cpu_caps()->has_altivec) && in lp_build_pack2()
595 if (util_get_cpu_caps()->has_sse2) { in lp_build_pack2()
599 if (util_get_cpu_caps()->has_sse4_1) { in lp_build_pack2()
603 } else if (util_get_cpu_caps()->has_altivec) { in lp_build_pack2()
616 if (util_get_cpu_caps()->has_sse2) { in lp_build_pack2()
618 } else if (util_get_cpu_caps()->has_altivec) { in lp_build_pack2()
625 if (util_get_cpu_caps()->has_sse2) { in lp_build_pack2()
627 } else if (util_get_cpu_caps()->has_altivec) { in lp_build_pack2()
[all …]
Dlp_bld_init.c459 if (util_get_cpu_caps()->has_avx2 || util_get_cpu_caps()->has_avx) { in lp_build_init()
480 util_get_cpu_caps()->has_avx = 0; in lp_build_init()
481 util_get_cpu_caps()->has_avx2 = 0; in lp_build_init()
482 util_get_cpu_caps()->has_f16c = 0; in lp_build_init()
483 util_get_cpu_caps()->has_fma = 0; in lp_build_init()
496 if (util_get_cpu_caps()->has_altivec) { in lp_build_init()
Dlp_bld_logic.c199 util_get_cpu_caps()->has_sse2 && in lp_build_compare()
353 else if (((util_get_cpu_caps()->has_sse4_1 && in lp_build_select()
355 (util_get_cpu_caps()->has_avx && in lp_build_select()
357 (util_get_cpu_caps()->has_avx2 && in lp_build_select()
385 assert(util_get_cpu_caps()->has_avx2); in lp_build_select()
Dlp_bld_conv.c112 if (util_get_cpu_caps()->has_f16c && in lp_build_half_to_float()
180 if (util_get_cpu_caps()->has_f16c && in lp_build_float_to_half()
503 (util_get_cpu_caps()->has_sse2 || util_get_cpu_caps()->has_altivec)) in lp_build_conv_auto()
514 util_get_cpu_caps()->has_avx) in lp_build_conv_auto()
611 (util_get_cpu_caps()->has_sse2 || util_get_cpu_caps()->has_altivec)) in lp_build_conv()
724 util_get_cpu_caps()->has_avx) { in lp_build_conv()
Dlp_bld_limits.h92 return util_get_cpu_caps()->has_f16c; in lp_has_fp16()
Dlp_bld_gather.c490 } else if (util_get_cpu_caps()->has_avx2 && !need_expansion && in lp_build_gather()
502 } else if (0 && util_get_cpu_caps()->has_avx2 && !need_expansion && in lp_build_gather()
Dlp_bld_format_yuv.c93 if (util_get_cpu_caps()->has_sse2 && n > 1) { in uyvy_to_yuv_soa()
177 if (util_get_cpu_caps()->has_sse2 && n > 1) { in yuyv_to_yuv_soa()
/third_party/mesa3d/src/util/
Dhalf_float.h62 if (util_get_cpu_caps()->has_f16c) { in _mesa_float_to_half()
78 if (util_get_cpu_caps()->has_f16c) { in _mesa_half_to_float()
93 if (util_get_cpu_caps()->has_f16c) { in _mesa_float_to_float16_rtz()
Du_math.c81 if (util_get_cpu_caps()->has_sse) { in util_fpstate_get()
99 if (util_get_cpu_caps()->has_sse) { in util_fpstate_set_denorms_to_zero()
102 if (util_get_cpu_caps()->has_daz) { in util_fpstate_set_denorms_to_zero()
121 if (util_get_cpu_caps()->has_sse) { in util_fpstate_set()
Du_cpu_detect.h140 util_get_cpu_caps(void) in util_get_cpu_caps() function
/third_party/mesa3d/src/gallium/tests/unit/
Du_half_test.c42 if (util_get_cpu_caps()->has_f16c) { in main()
43 ((struct util_cpu_caps_t *)util_get_cpu_caps())->has_f16c = false; in main()
Dtranslate_test.c89 if(!util_get_cpu_caps()->has_sse || !rtasm_cpu_has_sse()) in main()
101 if(!util_get_cpu_caps()->has_sse2 || !rtasm_cpu_has_sse()) in main()
112 if(!util_get_cpu_caps()->has_sse3 || !rtasm_cpu_has_sse()) in main()
122 if(!util_get_cpu_caps()->has_sse4_1 || !rtasm_cpu_has_sse()) in main()
/third_party/mesa3d/src/mesa/main/
Dglthread.c206 if (util_get_cpu_caps()->num_L3_caches > 1 && in _mesa_glthread_flush_batch()
213 uint16_t L3_cache = util_get_cpu_caps()->cpu_to_L3[cpu]; in _mesa_glthread_flush_batch()
216 util_get_cpu_caps()->L3_affinity_mask[L3_cache], in _mesa_glthread_flush_batch()
217 NULL, util_get_cpu_caps()->num_cpu_mask_bits); in _mesa_glthread_flush_batch()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_tiling.h93 if (util_get_cpu_caps()->has_neon) { in vc4_load_lt_image()
109 if (util_get_cpu_caps()->has_neon) { in vc4_store_lt_image()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_arit.c402 if (util_get_cpu_caps()->has_sse) { in flush_denorm_to_zero()
481 if (!util_get_cpu_caps()->has_neon && in test_unary()
482 util_get_cpu_caps()->family != CPU_S390X && in test_unary()
Dlp_screen.c921 const struct util_cpu_caps_t *cpu_caps = util_get_cpu_caps(); in update_cache_sha1_cpu()
1077 screen->num_threads = util_get_cpu_caps()->nr_cpus > 1 ? util_get_cpu_caps()->nr_cpus : 0; in llvmpipe_create_screen()
Dlp_texture.c93 unsigned mip_align = MAX2(64, util_get_cpu_caps()->cacheline); in llvmpipe_texture_layout()
131 lpr->row_stride[level] = align(nblocksx * block_size, util_get_cpu_caps()->cacheline); in llvmpipe_texture_layout()
/third_party/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_cpu.c40 return util_get_cpu_caps(); in get_cpu_caps()
Drtasm_x86sse.c2163 if(util_get_cpu_caps()->has_mmx) in x86_init_func_common()
2165 if(util_get_cpu_caps()->has_mmx2) in x86_init_func_common()
2167 if(util_get_cpu_caps()->has_sse) in x86_init_func_common()
2169 if(util_get_cpu_caps()->has_sse2) in x86_init_func_common()
2171 if(util_get_cpu_caps()->has_sse3) in x86_init_func_common()
2173 if(util_get_cpu_caps()->has_sse4_1) in x86_init_func_common()
/third_party/mesa3d/src/util/format/
Du_format_unpack_neon.c66 if (!util_get_cpu_caps()->has_neon) in util_format_unpack_description_neon()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c344 util_get_cpu_caps()->L3_affinity_mask[cache], in amdgpu_pin_threads_to_L3_cache()
345 NULL, util_get_cpu_caps()->num_cpu_mask_bits); in amdgpu_pin_threads_to_L3_cache()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom.c56 if (util_get_cpu_caps()->has_popcnt) in init_atoms_once()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.c780 util_get_cpu_caps()->L3_affinity_mask[cache], in radeon_pin_threads_to_L3_cache()
781 NULL, util_get_cpu_caps()->num_cpu_mask_bits); in radeon_pin_threads_to_L3_cache()

12