mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Fix NEON 4444 CheckAlpha, workaround for failed bNEON detection on ARM64
This commit is contained in:
1 parent
7b50ec7b75
commit
2a1f6bca97
3 files changed
+13
-8
No files matched your search
@@ -517,7 +517,7 @@ CheckAlphaResult CheckAlphaRGBA8888Basic(const u32 *pixelData, int stride, int w
|
||||
if ((w & 3) == 0 && (stride & 3) == 0) {
|
||||
#ifdef _M_SSE
|
||||
return CheckAlphaRGBA8888SSE2(pixelData, stride, w, h);
|
||||
#elif defined(ARM) || defined(ARM64)
|
||||
#elif (defined(ARM) && defined(HAVE_ARMV7)) || defined(ARM64)
|
||||
if (cpu_info.bNEON) {
|
||||
return CheckAlphaRGBA8888NEON(pixelData, stride, w, h);
|
||||
}
|
||||
@@ -551,7 +551,7 @@ CheckAlphaResult CheckAlphaABGR4444Basic(const u32 *pixelData, int stride, int w
|
||||
if ((w & 7) == 0 && (stride & 7) == 0) {
|
||||
#ifdef _M_SSE
|
||||
return CheckAlphaABGR4444SSE2(pixelData, stride, w, h);
|
||||
#elif defined(ARM) || defined(ARM64)
|
||||
#elif (defined(ARM) && defined(HAVE_ARMV7)) || defined(ARM64)
|
||||
if (cpu_info.bNEON) {
|
||||
return CheckAlphaABGR4444NEON(pixelData, stride, w, h);
|
||||
}
|
||||
@@ -588,7 +588,7 @@ CheckAlphaResult CheckAlphaABGR1555Basic(const u32 *pixelData, int stride, int w
|
||||
if ((w & 7) == 0 && (stride & 7) == 0) {
|
||||
#ifdef _M_SSE
|
||||
return CheckAlphaABGR1555SSE2(pixelData, stride, w, h);
|
||||
#elif defined(ARM) || defined(ARM64)
|
||||
#elif (defined(ARM) && defined(HAVE_ARMV7)) || defined(ARM64)
|
||||
if (cpu_info.bNEON) {
|
||||
return CheckAlphaABGR1555NEON(pixelData, stride, w, h);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user