aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-10-12 23:31:33 +0300
committerMartin Storsjö <martin@martin.st>2024-09-27 00:04:30 +0300
commite6eabb7ce757a03bb52909b3f10b920f9892a2a6 (patch)
tree87cba18686a62db16959385fb339fa9302ef2804 /libavutil/cpu.c
parente6e56fd7a7738c30f3052067ba35cba346fdde8c (diff)
downloadffmpeg-e6eabb7ce757a03bb52909b3f10b920f9892a2a6.tar.gz
aarch64: Add CPU feature flags for SVE and SVE2
Add code for detecting the feature on Linux and Windows. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r--libavutil/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index df00bd541f..e16ebc0d38 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -180,6 +180,8 @@ int av_parse_cpu_caps(unsigned *flags, const char *s)
{ "vfp", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_VFP }, .unit = "flags" },
{ "dotprod", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_DOTPROD }, .unit = "flags" },
{ "i8mm", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_I8MM }, .unit = "flags" },
+ { "sve", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_SVE }, .unit = "flags" },
+ { "sve2", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_SVE2 }, .unit = "flags" },
#elif ARCH_MIPS
{ "mmi", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_MMI }, .unit = "flags" },
{ "msa", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_MSA }, .unit = "flags" },