We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 220

Summary: AltiVec and CodeWarrior
Product: SDL Reporter: Anders F Bj <afb>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: PowerPC   
OS: Mac OS X (All)   
Attachments: SDL12-altivec-cwppc.patch

Description Anders F Bj 2006-05-09 10:52:01 UTC
The AltiVec blitters don't compile, since they require __VEC__ to be enabled in order for the compiler to understand "vector" and friends (i.e. do AltiVec)
But you don't want to turn AltiVec on globally, since then the code would only run on a G4 (there are already runtime tests, before using the AltiVec variants)

The solution here is to enable AltiVec locally, for the actual AltiVec code.
Comment 1 Anders F Bj 2006-05-09 10:52:35 UTC
Created attachment 117 [details]
SDL12-altivec-cwppc.patch
Comment 2 Sam Lantinga 2006-05-09 11:09:53 UTC
These changes are in Subversion, thanks!