vc4: fix arm64 build with Neon
authorRob Herring <robh@kernel.org>
Mon, 30 Jan 2017 22:54:52 +0000 (16:54 -0600)
committerEric Anholt <eric@anholt.net>
Tue, 31 Jan 2017 22:06:19 +0000 (14:06 -0800)
The addition of Neon assembly breaks on arm64 builds because the assembly
syntax is different. For now, restrict Neon to ARMv7 builds.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_tiling.h

index 218130b2007cd1c1101862c452aa451380c6705b..ba1ad6fb3f7d5fc1e108ec0c3a9c74e37b23b3f8 100644 (file)
@@ -87,7 +87,7 @@ void vc4_store_tiled_image(void *dst, uint32_t dst_stride,
  * should extend this to have some runtime detection of being built for ARMv6
  * on a Pi 2+.
  */
-#if defined(__ARM_ARCH) && __ARM_ARCH >= 7
+#if defined(__ARM_ARCH) && __ARM_ARCH == 7
 #define NEON_SUFFIX(x) x ## _neon
 #else
 #define NEON_SUFFIX(x) x ## _base