ppc: disable vsx optimizations with hbd
authorJohann <johannkoenig@google.com>
Mon, 10 Jun 2019 21:35:03 +0000 (14:35 -0700)
committerJohann <johannkoenig@google.com>
Mon, 10 Jun 2019 21:53:16 +0000 (14:53 -0700)
vsx optimizations do not support 32 bit tran_low_t values.

BUG=webm:1563

Change-Id: I9e6348078f6e4855acfd381133eb840a435b7f81

build/make/configure.sh

index e950353..4a874f1 100644 (file)
@@ -1239,7 +1239,10 @@ EOF
     ppc64le*)
       link_with_cc=gcc
       setup_gnu_toolchain
-      check_gcc_machine_option "vsx"
+      # Only enable vsx optimizations when vp9_highbitdepth is not enabled.
+      # https://bugs.chromium.org/p/webm/issues/detail?id=1538
+      enabled vp9_highbitdepth || check_gcc_machine_option "vsx"
+      enabled vsx || RTCD_OPTIONS="${RTCD_OPTIONS}--disable-vsx "
       if [ -n "${tune_cpu}" ]; then
         case ${tune_cpu} in
           power?)