blit: Change ifdefs on NEON functions that use an aarch64-specific opcode.

Fixes #14519.

(cherry picked from commit 15f98b2a61)
This commit is contained in:
Ryan C. Gordon
2025-11-24 09:37:10 -05:00
committed by Sam Lantinga
parent 4fdbac7207
commit 50be2a7e56
2 changed files with 4 additions and 4 deletions

View File

@@ -1299,7 +1299,7 @@ static void SDL_TARGETING("avx2") Blit8888to8888PixelAlphaSwizzleAVX2(SDL_BlitIn
#endif
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8)
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && defined(__aarch64__)
static void Blit8888to8888PixelAlphaSwizzleNEON(SDL_BlitInfo *info)
{
@@ -1504,7 +1504,7 @@ SDL_BlitFunc SDL_CalculateBlitA(SDL_Surface *surface)
return Blit8888to8888PixelAlphaSwizzleLSX;
}
#endif
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8)
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && defined(__aarch64__)
// To prevent "unused function" compiler warnings/errors
(void)Blit8888to8888PixelAlpha;
(void)Blit8888to8888PixelAlphaSwizzle;

View File

@@ -2719,7 +2719,7 @@ static void SDL_TARGETING("avx2") Blit8888to8888PixelSwizzleAVX2(SDL_BlitInfo *i
#endif
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8)
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && defined(__aarch64__)
static void Blit8888to8888PixelSwizzleNEON(SDL_BlitInfo *info)
{
@@ -3135,7 +3135,7 @@ SDL_BlitFunc SDL_CalculateBlitN(SDL_Surface *surface)
return Blit8888to8888PixelSwizzleSSE41;
}
#endif
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8)
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && defined(__aarch64__)
return Blit8888to8888PixelSwizzleNEON;
#endif
}