Skip to content

Commit

Permalink
Disable vvenc due to hard avx2 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Dec 15, 2024
1 parent dc38e41 commit 93aace0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts.d/50-vvenc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ SCRIPT_COMMIT="7cf1e5ffc5aeb33b81fa9401df9fd53ef1dae6d1"
ffbuild_enabled() {
[[ $TARGET != *32 ]] || return -1
(( $(ffbuild_ffver) > 700 )) || return -1
return 0
# vvenc force-enabled avx2 and equivalent compiler options, and uses a static initializer that promptly
# runs such instructions. Making resulting binaries malfunction on any but the very latest CPUs.
# Until upstream fixes this behaviour, force-disable vvenc.
return -1
}

ffbuild_dockerbuild() {
Expand Down

0 comments on commit 93aace0

Please sign in to comment.