[SDL] [PATCH] Altivec blitters...

Bob Ippolito bob at redivi.com
Sun Jan 16 18:44:29 PST 2005


On Jan 16, 2005, at 14:10, Ryan C. Gordon wrote:

>
>> At startup, you should be able to determine the current architecture 
>> and pick the right function pointers.
>
> Determining the existance of a vector unit is easy, but I'll have to 
> look up how to figure out what to do with the G5. The code should run 
> and choose the C/Altivec path correctly for G3 vs G4/G5 machines right 
> now, though.
>
> I actually have a significantly better version of this patch coming 
> soon. I'll try to address these issues.

 From <http://developer.apple.com/hardware/ve/g5.html>, you should take 
a look at /usr/include/sys/sysctl.h -- hw.cputype, or possibly 
something more specific to the performance issue such as the cache line 
size, might be what you need.

I'm looking forward to your patch.  I maintain several Mac OS X ports 
of pygame software that would be greatly enhanced by this (they don't 
use OpenGL), and this will give me the excuse to update them :)

-bob





More information about the SDL mailing list