ref: 6ea3fda58c17ec8d55d7fc90eb5305ade3f4ebbc
parent: ef990c9d82f7fa2f6c7c39c53e2c3d6cbc5b0d6c
author: Matthias Dressel <[email protected]>
date: Sat Apr 11 20:00:35 EDT 2020
CLI: Add missing cpumask for VSX
--- a/tools/dav1d_cli_parse.c
+++ b/tools/dav1d_cli_parse.c
@@ -84,6 +84,8 @@
#if ARCH_AARCH64 || ARCH_ARM
#define ALLOWED_CPU_MASKS " or 'neon'"
+#elif ARCH_PPC64LE
+#define ALLOWED_CPU_MASKS " or 'vsx'"
#elif ARCH_X86
#define ALLOWED_CPU_MASKS \
", 'sse2', 'ssse3', 'sse41', 'avx2' or 'avx512icl'"
@@ -187,6 +189,8 @@
static const EnumParseTable cpu_mask_tbl[] = {
#if ARCH_AARCH64 || ARCH_ARM
{ "neon", DAV1D_ARM_CPU_FLAG_NEON },
+#elif ARCH_PPC64LE
+ { "vsx", DAV1D_PPC_CPU_FLAG_VSX },
#elif ARCH_X86
{ "sse2", X86_CPU_MASK_SSE2 },
{ "ssse3", X86_CPU_MASK_SSSE3 },