summaryrefslogtreecommitdiff
path: root/media-video/pipewire/files/0.3.64/0002-filter-chain-fix-AVX-dsp_sum-index-increment.patch
blob: f33a83ab7a10f231105185e6c81411c58aeec78f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/ccedf1722ae44c97ec0d058b349494c67a0b56dc

From ccedf1722ae44c97ec0d058b349494c67a0b56dc Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Tue, 17 Jan 2023 09:24:00 +0100
Subject: [PATCH] filter-chain: fix AVX dsp_sum index increment

Fixes #2965
--- a/src/modules/module-filter-chain/dsp-ops-avx.c
+++ b/src/modules/module-filter-chain/dsp-ops-avx.c
@@ -59,7 +59,7 @@ void dsp_sum_avx(struct dsp_ops *ops, float *r, const float *a, const float *b,
 			_mm256_store_ps(&r[n+24], in[3]);
 		}
 	} else {
-		for (n = 0; n < unrolled; n += 16) {
+		for (n = 0; n < unrolled; n += 32) {
 			in[0] = _mm256_loadu_ps(&a[n+ 0]);
 			in[1] = _mm256_loadu_ps(&a[n+ 8]);
 			in[2] = _mm256_loadu_ps(&a[n+16]);
-- 
2.39.1