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 - AltiVec and CodeWarrior
Summary: AltiVec and CodeWarrior
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: PowerPC Mac OS X (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 10:52 UTC by Anders F Bj
Modified: 2006-05-09 11:09 UTC (History)
0 users

See Also:


Attachments
SDL12-altivec-cwppc.patch (1.45 KB, patch)
2006-05-09 10:52 UTC, Anders F Bj
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!