mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-09 11:16:43 +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
|
Name: libyuv
|
||||||
URL: https://chromium.googlesource.com/libyuv/libyuv/
|
URL: https://chromium.googlesource.com/libyuv/libyuv/
|
||||||
Version: 1907
|
Version: 1908
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
Shipped: yes
|
Shipped: yes
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1907
|
#define LIBYUV_VERSION 1908
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|||||||
@ -209,12 +209,13 @@ LIBYUV_API SAFEBUFFERS int AArch64CpuCaps(unsigned long hwcap,
|
|||||||
features |= kCpuHasSVE;
|
features |= kCpuHasSVE;
|
||||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SVE2) {
|
if (hwcap2 & YUV_AARCH64_HWCAP2_SVE2) {
|
||||||
features |= kCpuHasSVE2;
|
features |= kCpuHasSVE2;
|
||||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SME) {
|
}
|
||||||
features |= kCpuHasSME;
|
}
|
||||||
if (hwcap2 & YUV_AARCH64_HWCAP2_SME2) {
|
// SME may be present without SVE
|
||||||
features |= kCpuHasSME2;
|
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