Skip to content

Commit

Permalink
Merge pull request #151 from spacedriveapp/disable-i8mm
Browse files Browse the repository at this point in the history
Disable i8mm, M1 doesn't support it
  • Loading branch information
HeavenVolkoff authored Oct 5, 2024
2 parents 7324adb + 7585889 commit 43e54fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 0 additions & 8 deletions scripts/cc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,6 @@ fi

# Compiler specific flags
features=""
case "${TARGET:-}" in
arm64* | aarch64*)
# Force enable i8mm for arm64, required by ffmpeg
# TODO: Check if A10 actually supports this
features="i8mm"
;;
esac

for feature in "${cpu_features[@]}"; do
case "$CMD" in
clang*) ;;
Expand Down
3 changes: 2 additions & 1 deletion stages/50-x265.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ case "$TARGET" in
aarch64*)
common_config+=(
-DCROSS_COMPILE_ARM64=ON
-DCROSS_COMPILE_NEON_I8MM=ON
# M1 Doesn't support i8mm
-DCROSS_COMPILE_NEON_I8MM=OFF
-DCROSS_COMPILE_NEON_DOTPROD=ON
)
;;
Expand Down
2 changes: 2 additions & 0 deletions stages/99-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ case "$TARGET" in
--x86asmexe=false
--enable-vfp
--enable-neon
# M1 Doesn't support i8mm
--disable-i8mm
)
;;
esac
Expand Down

0 comments on commit 43e54fb

Please sign in to comment.