Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged r2913:2914 from SDL-1.2 branch into trunk: alpha blit GCC MMX …
…asm fix.
  • Loading branch information
icculus committed Nov 21, 2006
1 parent 71852ef commit 09141e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/SDL_blit_A.c
Expand Up @@ -1632,6 +1632,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info)
int dstskip = info->d_skip >> 2;
SDL_PixelFormat *sf = info->src;
Uint32 amask = sf->Amask;
Uint32 ashift = sf->Ashift;

__asm__(
/* make mm6 all zeros. */
Expand All @@ -1649,7 +1650,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info)
"pxor %%mm4, %%mm3\n\t" /* 0000F000 -> mm3 (~channel mask) */
/* get alpha channel shift */
"movd %1, %%mm5\n\t" /* Ashift -> mm5 */
: /* nothing */ : "m"(sf->Amask), "m"(sf->Ashift));
: /* nothing */ : "m"(amask), "m"(ashift));

while (height--) {

Expand Down

0 comments on commit 09141e5

Please sign in to comment.