Hi,

On Thu, 2011-11-17 at 13:59 +0530, Kui Zheng wrote:
> Here are patches to add ARM NEON acceleration in generic software fallbacks.

I had to add the attached two patches to make it work. They should
really be merged into the original patch set before committing.


Cheers,
Andre'

>From 0bab96815487808b6b8f8c0e032a75480db1bd69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.dras...@st.com>
Date: Thu, 1 Dec 2011 15:47:23 +0000
Subject: [PATCH 1/2] configure.in: do not hardcode -mfloat-abi=softfp when
 enabling NEON on ARM

This breaks -mfloat-abi=hard toolchains.
---
 configure.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 13d2924..6fca193 100644
--- a/configure.in
+++ b/configure.in
@@ -641,12 +641,12 @@ if test "$enable_neon" = "yes"; then
   AC_MSG_CHECKING(whether the binutils support NEON)
   save_CFLAGS="$CFLAGS"
 
-  CFLAGS="$CFLAGS -mfpu=neon -mfloat-abi=softfp"
+  CFLAGS="$CFLAGS -mfpu=neon"
   echo "       VMOV.I8 Q0, #0x89" > conftest.S
   if AC_TRY_EVAL(ac_compile); then
 	AC_DEFINE(USE_NEON,1,[Define to 1 if NEON assembly is available.])
 	AC_MSG_RESULT(yes)
-	DFB_NEON_CFLAGS="-mfpu=neon -mfloat-abi=softfp"
+	DFB_NEON_CFLAGS="-mfpu=neon"
   else
 	enable_neon=no
 	AC_MSG_RESULT(no)
-- 
1.7.5.4

>From a78b69ab40f7ca8d33c7d823229559a9f8e6387e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.dras...@st.com>
Date: Thu, 1 Dec 2011 15:49:23 +0000
Subject: [PATCH 2/2] generic neon: fix compiler warnings introduced by NEON
 patchset

---
 src/gfx/generic/generic.c      |    3 +++
 src/gfx/generic/generic_neon.h |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gfx/generic/generic.c b/src/gfx/generic/generic.c
index bc08e63..d7cc70f 100644
--- a/src/gfx/generic/generic.c
+++ b/src/gfx/generic/generic.c
@@ -68,6 +68,9 @@
 #include "duffs_device.h"
 
 #ifdef USE_NEON
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include "generic_neon.h"
 #endif
 
diff --git a/src/gfx/generic/generic_neon.h b/src/gfx/generic/generic_neon.h
index 0674310..96b7f97 100644
--- a/src/gfx/generic/generic_neon.h
+++ b/src/gfx/generic/generic_neon.h
@@ -1198,4 +1198,5 @@ static void Bop_argb_blend_alphachannel_src_invsrc_Aop_rgb16_NEON( GenefxState *
           D += 4;
           loop--;
      } //end of loop
+#undef SET_PIXEL
 }
-- 
1.7.5.4

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to