mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-08 08:21:04 -04:00
spa: use the right AVX2 flags
Our AVX optimizations are really AVX2 so rename the files and functions and use the right HAVE_AVX2 and cpu flags to compile and select the right functions. Fixes #5072
This commit is contained in:
parent
5871f88b81
commit
8eb60b132c
15 changed files with 66 additions and 66 deletions
|
|
@ -35,15 +35,15 @@ if have_sse2
|
|||
simd_cargs += ['-DHAVE_SSE2']
|
||||
simd_dependencies += audiomixer_sse2
|
||||
endif
|
||||
if have_avx and have_fma
|
||||
audiomixer_avx = static_library('audiomixer_avx',
|
||||
['mix-ops-avx.c'],
|
||||
c_args : [avx_args, fma_args, '-O3', '-DHAVE_AVX', '-DHAVE_FMA'],
|
||||
if have_avx2 and have_fma
|
||||
audiomixer_avx2 = static_library('audiomixer_avx2',
|
||||
['mix-ops-avx2.c'],
|
||||
c_args : [avx2_args, fma_args, '-O3', '-DHAVE_AVX2', '-DHAVE_FMA'],
|
||||
dependencies : [ spa_dep ],
|
||||
install : false
|
||||
)
|
||||
simd_cargs += ['-DHAVE_AVX', '-DHAVE_FMA']
|
||||
simd_dependencies += audiomixer_avx
|
||||
simd_cargs += ['-DHAVE_AVX2', '-DHAVE_FMA']
|
||||
simd_dependencies += audiomixer_avx2
|
||||
endif
|
||||
|
||||
audiomixer_lib = static_library('audiomixer',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue