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

Summary: use SIMD aligned memory for SDL_Surface
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: don't know   
Hardware: All   
OS: Linux   
Attachments: patch

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