summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/Android.mk
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-07-31 14:59:38 -0700
committerEric Anholt <[email protected]>2017-08-15 13:23:54 -0700
commitbd5efbd70b33a9f7977e75799c3b7d293113ba4d (patch)
tree91ed6d453fe7311ec750bc869a94ada7d147dde0 /src/gallium/drivers/vc4/Android.mk
parentba8533b6ea6a3e0121da4ab73be1dd18580b4d9b (diff)
broadcom/vc4: Build the vc4_tiling_lt_neon.c with -mfpu=neon on ARM.
If you don't pass this, the compiler refuses to compile the assembly for pre-v7 CPUs. This also keeps us from building identical, non-NEON code on aarch64 and x86. Fixes: a373f77662c5 ("vc4: Use a wrapper file to set VC4_BUILD_NEON instead of CFLAGS.") v2: Fix Android build by just appending NEON_C_SOURCES when ARCH_ARM_HAVE_NEON. Tested-by: Rob Herring <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4/Android.mk')
-rw-r--r--src/gallium/drivers/vc4/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/Android.mk b/src/gallium/drivers/vc4/Android.mk
index 84bfaa839f9..fc141de3ca8 100644
--- a/src/gallium/drivers/vc4/Android.mk
+++ b/src/gallium/drivers/vc4/Android.mk
@@ -28,6 +28,10 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
$(C_SOURCES)
+ifeq ($(ARCH_ARM_HAVE_NEON),true)
+LOCAL_SRC_FILES += $(NEON_C_SOURCES)
+endif
+
LOCAL_GENERATED_SOURCES := $(MESA_GEN_NIR_H)
LOCAL_C_INCLUDES := \
$(MESA_TOP)/include/drm-uapi