video: fix warnings about unused variables when building without duff's loop
parent
11c70406c3
commit
0c3777d566
|
@ -767,6 +767,7 @@ static void SDL_TARGETING("mmx") Blit565to565SurfaceAlphaMMX(SDL_BlitInfo *info)
|
|||
int dstskip = info->dst_skip >> 1;
|
||||
Uint32 s, d;
|
||||
|
||||
#ifdef USE_DUFFS_LOOP
|
||||
__m64 src1, dst1, src2, dst2, gmask, bmask, mm_res, mm_alpha;
|
||||
|
||||
alpha &= ~(1 + 2 + 4); /* cut alpha to get the exact same behaviour */
|
||||
|
@ -782,6 +783,7 @@ static void SDL_TARGETING("mmx") Blit565to565SurfaceAlphaMMX(SDL_BlitInfo *info)
|
|||
/* Setup the 565 color channel masks */
|
||||
gmask = _mm_set_pi32(0x07E007E0, 0x07E007E0); /* MASKGREEN -> gmask */
|
||||
bmask = _mm_set_pi32(0x001F001F, 0x001F001F); /* MASKBLUE -> bmask */
|
||||
#endif
|
||||
|
||||
while (height--) {
|
||||
/* *INDENT-OFF* */ /* clang-format off */
|
||||
|
@ -903,6 +905,7 @@ static void SDL_TARGETING("mmx") Blit555to555SurfaceAlphaMMX(SDL_BlitInfo *info)
|
|||
int dstskip = info->dst_skip >> 1;
|
||||
Uint32 s, d;
|
||||
|
||||
#ifdef USE_DUFFS_LOOP
|
||||
__m64 src1, dst1, src2, dst2, rmask, gmask, bmask, mm_res, mm_alpha;
|
||||
|
||||
alpha &= ~(1 + 2 + 4); /* cut alpha to get the exact same behaviour */
|
||||
|
@ -919,7 +922,7 @@ static void SDL_TARGETING("mmx") Blit555to555SurfaceAlphaMMX(SDL_BlitInfo *info)
|
|||
rmask = _mm_set_pi32(0x7C007C00, 0x7C007C00); /* MASKRED -> rmask */
|
||||
gmask = _mm_set_pi32(0x03E003E0, 0x03E003E0); /* MASKGREEN -> gmask */
|
||||
bmask = _mm_set_pi32(0x001F001F, 0x001F001F); /* MASKBLUE -> bmask */
|
||||
|
||||
#endif
|
||||
while (height--) {
|
||||
/* *INDENT-OFF* */ /* clang-format off */
|
||||
DUFFS_LOOP_124(
|
||||
|
|
Loading…
Reference in New Issue