mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-22 08:56:59 -05:00
spa: clamp required alignment to cpu alignment
pipewire will allocate buffers aligned to the max alignment required for the CPU. Take this into account and don't expect larger alignment. Fixes a warning in mixer-dsp when the CPU max alignment is 16 but the plugin requires 32 bytes alignment for the AVX2 path (that would never be chosen on the CPU). See #2074
This commit is contained in:
parent
36d78c41a0
commit
92198e4d0d
11 changed files with 44 additions and 17 deletions
|
|
@ -93,6 +93,8 @@ void channelmix_##name##_##arch(struct channelmix *mix, \
|
|||
uint32_t n_src, const void * SPA_RESTRICT src[n_src], \
|
||||
uint32_t n_samples);
|
||||
|
||||
#define CHANNELMIX_OPS_MAX_ALIGN 16
|
||||
|
||||
DEFINE_FUNCTION(copy, c);
|
||||
DEFINE_FUNCTION(f32_n_m, c);
|
||||
DEFINE_FUNCTION(f32_1_2, c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue