[AArch64] Add Neon DotProduct and I8MM extensions when building

This should allow us to use the two extensions in the existing Neon
inline assembly code for kernels like ARGBToY.

Bug: libyuv:977
Change-Id: I5274b188771bcfbe927cb323f499ecb676a7c6ba
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5383442
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
George Steed 2024-03-19 09:27:31 +00:00 committed by Frank Barchard
parent f94b8cf7a3
commit 6406179063

View File

@ -232,7 +232,9 @@ if (libyuv_use_neon) {
configs += [ "//build/config/compiler:optimize_max" ]
}
if (current_cpu != "arm64") {
if (current_cpu == "arm64") {
cflags = [ "-march=armv8-a+dotprod+i8mm" ]
} else {
configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
cflags = [ "-mfpu=neon" ]
}