BUG: SDL_HasSSE on 64bit linux systems

Hi,

Looks like SDL_HasSSE is buggy on SDL 64bit systems.

Seems redhat has a patch for it:
https://bugzilla.redhat.com/show_bug.cgi?id=487720

A patch is here:
http://cvs.fedoraproject.org/viewvc/rpms/SDL/devel/SDL-1.2.13-rh487720.patch?revision=1.1&view=markup

I’ve added a bug with link to patch at the SDL bugzilla:
http://bugzilla.libsdl.org/show_bug.cgi?id=760

cheers,

Looks like SDL_HasSSE is buggy on SDL 64bit systems.

I applied this, but we have a few other platforms where this still
probably fails (the __sun sections, maybe, and Win64).

–ryan.

Cool.

yeah, it also seems other functions are messed up on 64bit…

here’s a new update from the bug report:
‘I believe x86_64 is correct, but it is not only SDL_HasSSE but
also SDL_HasMMX that is causing trouble
because both (amongst others) internally call the SDL function
CPU_getCPUIDFeatures which is the culprit.’

cu,On Thu, Jul 2, 2009 at 5:20 AM, Ryan C. Gordon wrote:

Looks like SDL_HasSSE is buggy on SDL 64bit systems.

I applied this, but we have a few other platforms where this still probably
fails (the __sun sections, maybe, and Win64).

–ryan.