diff options
author | Eric Anholt <[email protected]> | 2017-07-31 14:59:38 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-08-15 13:23:54 -0700 |
commit | bd5efbd70b33a9f7977e75799c3b7d293113ba4d (patch) | |
tree | 91ed6d453fe7311ec750bc869a94ada7d147dde0 /src/gallium/drivers/vc4/Makefile.am | |
parent | ba8533b6ea6a3e0121da4ab73be1dd18580b4d9b (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/Makefile.am')
-rw-r--r-- | src/gallium/drivers/vc4/Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/Makefile.am b/src/gallium/drivers/vc4/Makefile.am index 9b0ef6ef790..4c2b7486c52 100644 --- a/src/gallium/drivers/vc4/Makefile.am +++ b/src/gallium/drivers/vc4/Makefile.am @@ -44,6 +44,13 @@ libvc4_la_LIBADD = \ $(top_builddir)/src/broadcom/cle/libbroadcom_cle.la \ $() +if HAVE_ARM_ASM +noinst_LTLIBRARIES += libvc4_neon.la +libvc4_la_LIBADD += libvc4_neon.la +libvc4_neon_la_SOURCES = $(NEON_C_SOURCES) +libvc4_neon_la_CFLAGS = $(AM_CFLAGS) -mfpu=neon +endif + libvc4_la_LDFLAGS = $(SIM_LDFLAGS) EXTRA_DIST = kernel/README |