BUILD: Simplify SIMD options

This commit is contained in:
Wyatt Radkiewicz 2023-08-08 17:32:10 -07:00 committed by Eugene Sandulenko
parent c45918ea91
commit f802ad16d0
2 changed files with 3 additions and 14 deletions

13
configure vendored
View File

@ -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"

View File

@ -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