| Summary: | GCC optimizations break BlitRGBtoRGBSurfaceAlpha128MMX | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Neil T. <neil1357> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 1.2 | Keywords: | target-1.2.14 |
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: |
png from previous comment
patch from above comment example problem showing the problem with the blitter |
||
|
Description
Neil T.
2008-11-28 02:17:26 UTC
Getting an error from Bugzilla when trying to add an attachment: undef error - Undefined subroutine Fh::slice at data/template/template/en/default/global/hidden-fields.html.tmpl line 58 Example program (http://pastebin.com/f3cb38cbe) should display a solid colored rectangle, but the rectangle has vertical stripes. Patch (http://pastebin.com/f3d695d3c) changes Uint8[8] to Uint64, which forces GCC to initialize the whole value. Blit565to565SurfaceAlphaMMX and Blit555to555SurfaceAlphaMMX also appear to be affected, but I haven't had a chance to test them before/after applying the patch. Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14. Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla). --ryan. Created attachment 362 [details]
png from previous comment
here's the png from the above comment as an attachment.
Created attachment 363 [details]
patch from above comment
Created attachment 364 [details]
example problem showing the problem with the blitter
Ryan, this looks like a good fix to me. You want to try it out and see if the other functions mentioned need a similar fix? This patch is svn revision #4885, thanks! --ryan. |