Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_misc.cpp403 MAttrs.push_back(util_get_cpu_caps()->has_sse ? "+sse" : "-sse" ); in lp_build_create_jit_compiler_for_module()
404 MAttrs.push_back(util_get_cpu_caps()->has_sse2 ? "+sse2" : "-sse2" ); in lp_build_create_jit_compiler_for_module()
405 MAttrs.push_back(util_get_cpu_caps()->has_sse3 ? "+sse3" : "-sse3" ); in lp_build_create_jit_compiler_for_module()
406 MAttrs.push_back(util_get_cpu_caps()->has_ssse3 ? "+ssse3" : "-ssse3" ); in lp_build_create_jit_compiler_for_module()
407 MAttrs.push_back(util_get_cpu_caps()->has_sse4_1 ? "+sse4.1" : "-sse4.1"); in lp_build_create_jit_compiler_for_module()
408 MAttrs.push_back(util_get_cpu_caps()->has_sse4_2 ? "+sse4.2" : "-sse4.2"); in lp_build_create_jit_compiler_for_module()
415 MAttrs.push_back(util_get_cpu_caps()->has_avx ? "+avx" : "-avx"); in lp_build_create_jit_compiler_for_module()
416 MAttrs.push_back(util_get_cpu_caps()->has_f16c ? "+f16c" : "-f16c"); in lp_build_create_jit_compiler_for_module()
417 MAttrs.push_back(util_get_cpu_caps()->has_fma ? "+fma" : "-fma"); in lp_build_create_jit_compiler_for_module()
418 MAttrs.push_back(util_get_cpu_caps()->has_avx2 ? "+avx2" : "-avx2"); in lp_build_create_jit_compiler_for_module()
[all …]
Dlp_bld_init.c451 if (util_get_cpu_caps()->has_avx2 || util_get_cpu_caps()->has_avx) { in lp_build_init()
472 util_get_cpu_caps()->has_avx = 0; in lp_build_init()
473 util_get_cpu_caps()->has_avx2 = 0; in lp_build_init()
474 util_get_cpu_caps()->has_f16c = 0; in lp_build_init()
475 util_get_cpu_caps()->has_fma = 0; in lp_build_init()
488 if (util_get_cpu_caps()->has_altivec) { in lp_build_init()
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_logic.c199 util_get_cpu_caps()->has_sse2 && in lp_build_compare()
351 else if (((util_get_cpu_caps()->has_sse4_1 && in lp_build_select()
353 (util_get_cpu_caps()->has_avx && in lp_build_select()
355 (util_get_cpu_caps()->has_avx2 && in lp_build_select()
382 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.c491 } else if (util_get_cpu_caps()->has_avx2 && !need_expansion && in lp_build_gather()
503 } 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/gallium/drivers/swr/
Dswr_loader.cpp94 if (util_get_cpu_caps()->has_avx512f && util_get_cpu_caps()->has_avx512er) { in swr_create_screen()
106 if (util_get_cpu_caps()->has_avx512f && util_get_cpu_caps()->has_avx512bw) { in swr_create_screen()
116 if (util_get_cpu_caps()->has_avx2) { in swr_create_screen()
126 if (util_get_cpu_caps()->has_avx) { in swr_create_screen()
/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.h128 util_get_cpu_caps(void) in util_get_cpu_caps() function
/third_party/mesa3d/src/gallium/tests/unit/
Du_half_test.c43 if (util_get_cpu_caps()->has_f16c) { in main()
44 ((struct util_cpu_caps_t *)util_get_cpu_caps())->has_f16c = false; in main()
Dtranslate_test.c91 if(!util_get_cpu_caps()->has_sse || !rtasm_cpu_has_sse()) in main()
103 if(!util_get_cpu_caps()->has_sse2 || !rtasm_cpu_has_sse()) in main()
114 if(!util_get_cpu_caps()->has_sse3 || !rtasm_cpu_has_sse()) in main()
124 if(!util_get_cpu_caps()->has_sse4_1 || !rtasm_cpu_has_sse()) in main()
/third_party/mesa3d/src/mesa/main/
Dglthread.c219 if (util_get_cpu_caps()->num_L3_caches > 1 && in _mesa_glthread_flush_batch()
226 uint16_t L3_cache = util_get_cpu_caps()->cpu_to_L3[cpu]; in _mesa_glthread_flush_batch()
229 util_get_cpu_caps()->L3_affinity_mask[L3_cache], in _mesa_glthread_flush_batch()
230 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/auxiliary/rtasm/
Drtasm_cpu.c41 return util_get_cpu_caps(); in get_cpu_caps()
Drtasm_x86sse.c2155 if(util_get_cpu_caps()->has_mmx) in x86_init_func_common()
2157 if(util_get_cpu_caps()->has_mmx2) in x86_init_func_common()
2159 if(util_get_cpu_caps()->has_sse) in x86_init_func_common()
2161 if(util_get_cpu_caps()->has_sse2) in x86_init_func_common()
2163 if(util_get_cpu_caps()->has_sse3) in x86_init_func_common()
2165 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/drivers/llvmpipe/
Dlp_test_arit.c406 if (util_get_cpu_caps()->has_sse) { in flush_denorm_to_zero()
482 if (!util_get_cpu_caps()->has_neon && in test_unary()
Dlp_screen.c895 const struct util_cpu_caps_t *cpu_caps = util_get_cpu_caps(); in update_cache_sha1_cpu()
1050 screen->num_threads = util_get_cpu_caps()->nr_cpus > 1 ? util_get_cpu_caps()->nr_cpus : 0; in llvmpipe_create_screen()
Dlp_texture.c94 unsigned mip_align = MAX2(64, util_get_cpu_caps()->cacheline); in llvmpipe_texture_layout()
132 lpr->row_stride[level] = align(nblocksx * block_size, util_get_cpu_caps()->cacheline); in llvmpipe_texture_layout()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c334 util_get_cpu_caps()->L3_affinity_mask[cache], in amdgpu_pin_threads_to_L3_cache()
335 NULL, util_get_cpu_caps()->num_cpu_mask_bits); in amdgpu_pin_threads_to_L3_cache()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.c813 util_get_cpu_caps()->L3_affinity_mask[cache], in radeon_pin_threads_to_L3_cache()
814 NULL, util_get_cpu_caps()->num_cpu_mask_bits); in radeon_pin_threads_to_L3_cache()

12