mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 03:10:37 +00:00
BUILD: Simplify SIMD options
This commit is contained in:
parent
c45918ea91
commit
f802ad16d0
13
configure
vendored
13
configure
vendored
@ -6919,20 +6919,9 @@ define_in_config_if_yes "$_ext_sse2" 'SCUMMVM_SSE2'
|
||||
echo_n "Enabling x86/64 SSE2... "
|
||||
echo "$_ext_sse2"
|
||||
define_in_config_if_yes "$_ext_avx2" 'SCUMMVM_AVX2'
|
||||
if test "$_ext_avx2" = yes ; then
|
||||
define_in_config_h_if_yes "$_ext_avx2" 'SCUMMVM_SSE2'
|
||||
fi
|
||||
echo_n "Enabling x86/64 AVX2 and SSE2... "
|
||||
echo "$_ext_avx2"
|
||||
# AArch64 might by default come with more fpu extensions, so we wouldn't want
|
||||
# to downgrade. Almost all armv7 cpus have neon or less in terms of fpu
|
||||
# extensions so setting fpu to neon is almost always an upgrade over defaults.
|
||||
# Not to mention it would have to be included anyways
|
||||
if ( test "$_host_cpu" != aarch64 ) ; then
|
||||
define_in_config_h_if_yes "$_ext_neon" 'SCUMMVM_NEON'
|
||||
else
|
||||
define_in_config_if_yes "$_ext_neon" 'SCUMMVM_NEON'
|
||||
fi
|
||||
define_in_config_if_yes "$_ext_neon" 'SCUMMVM_NEON'
|
||||
echo_n "Enabling arm NEON... "
|
||||
echo "$_ext_neon"
|
||||
|
||||
|
@ -144,10 +144,10 @@ ifeq ($(SCUMMVM_NEON),1)
|
||||
$(MODULE)/blit/blit-blend.o: CXXFLAGS += -mfpu=neon
|
||||
endif
|
||||
ifeq ($(SCUMMVM_SSE2),1)
|
||||
$(MODULE)/blit/blit-blend.o: CXXFLAGS += -msse2 -msse
|
||||
$(MODULE)/blit/blit-blend.o: CXXFLAGS += -msse2
|
||||
endif
|
||||
ifeq ($(SCUMMVM_AVX2),1)
|
||||
$(MODULE)/blit/blit-blend.o: CXXFLAGS += -mavx2 -mavx -msse2 -msse
|
||||
$(MODULE)/blit/blit-blend.o: CXXFLAGS += -mavx2
|
||||
endif
|
||||
|
||||
# Include common rules
|
||||
|
Loading…
Reference in New Issue
Block a user