Tue, 21 Nov 2006 23:17:00 +0000From: Gabriel Gambetta SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Tue, 21 Nov 2006 23:17:00 +0000] rev 3899
From: Gabriel Gambetta
To: SDL Mailing List <sdl@libsdl.org>
Date: Fri, 17 Nov 2006 00:39:29 -0200
Subject: [SDL] Alpha blending bug - fixed?

It turns out mm5 never got the correct value. This failed :

[...]
"movd %1, %%mm5\n\t"
: : "m" (amask), "m" (sf->Ashift) );


mm5 got 0xFF000018 instead of 0x00000018. However I did this :

Uint32 ashift = sf->Ashift;
[...]
"movd %1, %%mm5\n\t"
: : "m" (amask), "m" (ashift) );

and everything worked fine.

The only thing I could find out was that ashift is 32-bit aligned but
sf->Ashift isn't:

printf("ashift %8X [%d]\n", &ashift, (int)(&ashift) % 4);
printf("sf->Ashift %8X [%d]\n", &sf->Ashift, (int)(&sf->Ashift) % 4);

ashift at BFF0E0C4 [0]
sf->Ashift at 08AFB9CD [1]

Could this be the problem? If it is, the fix is extremely trivial.
Should I submit a patch?

--Gabriel

Tue, 21 Nov 2006 20:49:35 +0000Added sdl.pc to svn:ignore. SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Tue, 21 Nov 2006 20:49:35 +0000] rev 3898
Added sdl.pc to svn:ignore.

Sun, 19 Nov 2006 14:07:32 +0000Check video driver mouse cursor pointers before using them SDL-1.2
Patrice Mandin <patmandin@gmail.com> [Sun, 19 Nov 2006 14:07:32 +0000] rev 3897
Check video driver mouse cursor pointers before using them

Mon, 13 Nov 2006 03:58:22 +0000X11 backend: tell app that mouse focus has been obtained when grabbing the SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Mon, 13 Nov 2006 03:58:22 +0000] rev 3896
X11 backend: tell app that mouse focus has been obtained when grabbing the
input. This allows us to enable DGA mode, even when the system cursor was
outside of the window when the grab was initiated.

Fixes Bugzilla #299, which has a more detailed explanation of the issue.

Sun, 12 Nov 2006 21:23:57 +0000Block fruity channel values in dspaudio, or the fragment size won't be a SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Sun, 12 Nov 2006 21:23:57 +0000] rev 3895
Block fruity channel values in dspaudio, or the fragment size won't be a
power of 2.

Tue, 07 Nov 2006 15:17:31 +0000BeOS loadso code now reports failure correctly from SDL_LoadObject(), and uses SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Nov 2006 15:17:31 +0000] rev 3894
BeOS loadso code now reports failure correctly from SDL_LoadObject(), and uses
the system to provide text for SDL_SetError().

Tue, 07 Nov 2006 15:00:43 +0000Man, who let this moron near printf()?! :) SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Nov 2006 15:00:43 +0000] rev 3893
Man, who let this moron near printf()?! :)

Tue, 07 Nov 2006 14:31:25 +0000Added a test program for loadso subsystem. SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Nov 2006 14:31:25 +0000] rev 3892
Added a test program for loadso subsystem.

Tue, 07 Nov 2006 14:06:25 +0000Chopped out some code to match changes in revision #2793 to fix build...but SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Nov 2006 14:06:25 +0000] rev 3891
Chopped out some code to match changes in revision #2793 to fix build...but
I think this just breaks fullscreen YUV rendering.

Fri, 03 Nov 2006 21:52:54 +0000Merged r2896:2897 from trunk (use dummy joystick if subsystem enabled and SDL-1.2
Ryan C. Gordon <icculus@icculus.org> [Fri, 03 Nov 2006 21:52:54 +0000] rev 3890
Merged r2896:2897 from trunk (use dummy joystick if subsystem enabled and
no platform-specific driver exists).

Fixes Bugzilla #356 (and maybe Bugzilla #350).