Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d82b2a3e authored by Kévin PETIT's avatar Kévin PETIT
Browse files

Fix the build for NEON in libpixelflinger



ARCH_ARM_HAVE_NEON is only ever defined to true, so test for that.
For the NEON function to be used, the file has to include
machine/cpu-features.h so that __ARM_HAVE_NEON is defined.

Change-Id: I0db196b39c493092415859e009531fcff6fc1e8b
Signed-off-by: default avatarKévin PETIT <kevin.petit@arm.com>
parent 51ebffd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ PIXELFLINGER_SRC_FILES_arm := \
	col32cb16blend.S \
	t32cb16blend.S \

ifeq ($(ARCH_ARM_HAVE_NEON),armv7-a)
ifeq ($(ARCH_ARM_HAVE_NEON),true)
PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S
endif

+4 −0
Original line number Diff line number Diff line
@@ -26,6 +26,10 @@
#include <cutils/memory.h>
#include <cutils/log.h>

#ifdef __arm__
#include <machine/cpu-features.h>
#endif

#include "buffer.h"
#include "scanline.h"