This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch fix-release-build
in repository efl.
View the commit online.
commit afea8f65a55d77b199a53f8c5d59a614c4f1e04b
Author: [email protected] <[email protected]>
AuthorDate: Mon Aug 3 14:19:09 2026 -0600
evas: add the AVX2 cpu feature bit and EVAS_CPU_NO_AVX2
The override clears the bit unconditionally rather than only masking a
successful detection, because the benchmark harness uses it to get an
SSE3 baseline out of an AVX2-enabled build.
---
src/lib/evas/common/evas_cpu.c | 6 ++++++
src/lib/evas/include/evas_common_private.h | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/lib/evas/common/evas_cpu.c b/src/lib/evas/common/evas_cpu.c
index 48e43be79c..76e442c0ac 100644
--- a/src/lib/evas/common/evas_cpu.c
+++ b/src/lib/evas/common/evas_cpu.c
@@ -64,6 +64,12 @@ evas_common_cpu_init(void)
else
cpu_feature_mask |= _cpu_check(EINA_CPU_SSE3) * CPU_FEATURE_SSE3;
# endif /* BUILD_SSE3 */
+# ifdef BUILD_AVX2
+ if (getenv("EVAS_CPU_NO_AVX2"))
+ cpu_feature_mask &= ~CPU_FEATURE_AVX2;
+ else
+ cpu_feature_mask |= _cpu_check(EINA_CPU_AVX2) * CPU_FEATURE_AVX2;
+# endif /* BUILD_AVX2 */
#endif /* BUILD_MMX */
#ifdef BUILD_ALTIVEC
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index 0fb5d34888..3758ec61ee 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -466,7 +466,8 @@ typedef enum _CPU_Features
CPU_FEATURE_VIS2 = (1 << 5),
CPU_FEATURE_NEON = (1 << 6),
CPU_FEATURE_SSE3 = (1 << 7),
- CPU_FEATURE_SVE = (1 << 8)
+ CPU_FEATURE_SVE = (1 << 8),
+ CPU_FEATURE_AVX2 = (1 << 9)
} CPU_Features;
/* Subsystems that dispatch to a hand written NEON kernel outside of the
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.