summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2021-04-16 22:42:11 +0200
committerDamiano Galassi <[email protected]>2021-04-16 22:42:11 +0200
commit0c3d2b99119190dba592fa53ec0bb0ed0be323c6 (patch)
tree98990a61d26bc98b900ac3d2d0b4885a4e5ea294
parent9329854c80f4f82d477719210744166204f51889 (diff)
contrib: backport zimg NEON alignment fix.
-rw-r--r--contrib/zimg/A00-fix-alignment-for-ARM.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/zimg/A00-fix-alignment-for-ARM.patch b/contrib/zimg/A00-fix-alignment-for-ARM.patch
new file mode 100644
index 000000000..aa84c7a39
--- /dev/null
+++ b/contrib/zimg/A00-fix-alignment-for-ARM.patch
@@ -0,0 +1,26 @@
+From e1fd1d4a36637010e455db28546313d3b2939679 Mon Sep 17 00:00:00 2001
+From: sekrit-twc <[email protected]>
+Date: Fri, 16 Apr 2021 12:23:17 -0700
+Subject: [PATCH] common: fix alignment for ARM
+
+---
+ src/zimg/common/align.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/zimg/common/align.h b/src/zimg/common/align.h
+index a30468c..7de840a 100644
+--- a/src/zimg/common/align.h
++++ b/src/zimg/common/align.h
+@@ -11,6 +11,9 @@ namespace zimg {
+ #ifdef ZIMG_X86
+ constexpr int ALIGNMENT = 64;
+ constexpr int ALIGNMENT_RELAXED = 32;
++#elif ZIMG_ARM
++constexpr int ALIGNMENT = 16;
++constexpr int ALIGNMENT_RELAXED = 16;
+ #else
+ constexpr int ALIGNMENT = sizeof(long double);
+ constexpr int ALIGNMENT_RELAXED = sizeof(long double);
+--
+2.24.3 (Apple Git-128)
+