mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +08:00
Detect SME without SVE dependency
Bug: None Change-Id: Ibe29488e893a493699ea3fae1a1a54a4fff5969c Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6418571 Reviewed-by: Wan-Teh Chang <wtc@google.com>
This commit is contained in:
parent
dc47c71b3e
commit
23d416d6f3
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: https://chromium.googlesource.com/libyuv/libyuv/
|
||||
Version: 1907
|
||||
Version: 1908
|
||||
License: BSD-3-Clause
|
||||
License File: LICENSE
|
||||
Shipped: yes
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 1907
|
||||
#define LIBYUV_VERSION 1908
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
@ -209,12 +209,13 @@ LIBYUV_API SAFEBUFFERS int AArch64CpuCaps(unsigned long hwcap,
|
||||
features |= kCpuHasSVE;
|
||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SVE2) {
|
||||
features |= kCpuHasSVE2;
|
||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SME) {
|
||||
features |= kCpuHasSME;
|
||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SME2) {
|
||||
features |= kCpuHasSME2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// SME may be present without SVE
|
||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SME) {
|
||||
features |= kCpuHasSME;
|
||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SME2) {
|
||||
features |= kCpuHasSME2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user