Commit e812ca529d73a6ea13a1ad47f342483c4dbc69ec

Ivan Epifanov 2020-12-09T21:03:27

Enable ARM SIMD/NEON optimized blitters

diff --git a/Makefile.vita.dolce b/Makefile.vita.dolce
index 44c3cc3..6237546 100644
--- a/Makefile.vita.dolce
+++ b/Makefile.vita.dolce
@@ -34,8 +34,9 @@ SOURCES = \
 	src/video/*.c \
 	src/video/vita/*.c \
 	src/video/yuv2rgb/*.c \
+	src/video/arm/*.S \
 
-OBJS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
+OBJS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g' | sed -e 's,\.S,\.o,g')
 
 PREFIX  = arm-dolce-eabi
 CC      = $(PREFIX)-gcc
diff --git a/include/SDL_config_vita.h b/include/SDL_config_vita.h
index 3d3184f..dee71f5 100644
--- a/include/SDL_config_vita.h
+++ b/include/SDL_config_vita.h
@@ -129,6 +129,9 @@
 /* VITA isn't that sophisticated */
 #define LACKS_SYS_MMAN_H 1
 
+/* enable optimized blitters */
+#define SDL_ARM_SIMD_BLITTERS 1
+#define SDL_ARM_NEON_BLITTERS 1
 
 #define SDL_AUDIO_DRIVER_VITA  1
 #define SDL_THREAD_VITA    1