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 4484 - use SIMD aligned memory for SDL_Surface
Summary: use SIMD aligned memory for SDL_Surface
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: All Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-01 14:17 UTC by Sylvain
Modified: 2019-02-04 08:13 UTC (History)
0 users

See Also:


Attachments
patch (2.74 KB, patch)
2019-02-01 14:21 UTC, Sylvain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2019-02-01 14:17:58 UTC
Here's a patch to always allocate aligned memory in SDL_Surface.
Comment 1 Sylvain 2019-02-01 14:21:17 UTC
Created attachment 3590 [details]
patch

Here's a quick first version (and tested).
it also affects RLE mode where the surface->pixels is allocated/freed
Comment 2 Sylvain 2019-02-04 08:13:21 UTC
Fixed in https://hg.libsdl.org/SDL/rev/66cd8731c3b1