From 6f860c2b80233f3721c08d7fb3e5e37423b84149 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 16 Sep 2022 23:19:39 +0300 Subject: [PATCH] try to enable gpu_neon on 32bit x86 --- Makefile.libretro | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index a3bb43aa..7dded84b 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -54,7 +54,7 @@ ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_feature CFLAGS += -marm endif endif -ifneq (,$(findstring $(ARCH_DETECTED),x86_64 aarch64)) +ifneq (,$(findstring $(ARCH_DETECTED),i686 x86_64 aarch64)) BUILTIN_GPU = neon endif @@ -534,6 +534,15 @@ endif ifdef ALLOW_LIGHTREC_ON_ARM CFLAGS += -DALLOW_LIGHTREC_ON_ARM endif +ifeq ($(BUILTIN_GPU),neon) +ifeq ($(ARCH_DETECTED),i686) + CFLAGS_GPU_NEON ?= -msse2 # required +endif +ifeq ($(ARCH_DETECTED),x86_64) + CFLAGS_GPU_NEON ?= -mssse3 # optional, for more perf +endif +CFLAGS += $(CFLAGS_GPU_NEON) +endif TARGET ?= libretro.so PLATFORM = libretro -- 2.39.5