Commit 65dbe42d authored by Ryan C. Gordon's avatar Ryan C. Gordon

Merged r2913:2914 from SDL-1.2 branch into trunk: alpha blit GCC MMX asm fix.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402237
parent 46da5465
...@@ -1632,6 +1632,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info) ...@@ -1632,6 +1632,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info)
int dstskip = info->d_skip >> 2; int dstskip = info->d_skip >> 2;
SDL_PixelFormat *sf = info->src; SDL_PixelFormat *sf = info->src;
Uint32 amask = sf->Amask; Uint32 amask = sf->Amask;
Uint32 ashift = sf->Ashift;
__asm__( __asm__(
/* make mm6 all zeros. */ /* make mm6 all zeros. */
...@@ -1649,7 +1650,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info) ...@@ -1649,7 +1650,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info)
"pxor %%mm4, %%mm3\n\t" /* 0000F000 -> mm3 (~channel mask) */ "pxor %%mm4, %%mm3\n\t" /* 0000F000 -> mm3 (~channel mask) */
/* get alpha channel shift */ /* get alpha channel shift */
"movd %1, %%mm5\n\t" /* Ashift -> mm5 */ "movd %1, %%mm5\n\t" /* Ashift -> mm5 */
: /* nothing */ : "m"(sf->Amask), "m"(sf->Ashift)); : /* nothing */ : "m"(amask), "m"(ashift));
while (height--) { while (height--) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment