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 2376

Summary: no SDL_HasAVX
Product: SDL Reporter: Haneef Mubarak <haneef503>
Component: *don't know*Assignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2 CC: haneef503
Version: HG 2.1   
Hardware: x86_64   
OS: All   

Description Haneef Mubarak 2014-02-02 01:26:23 UTC
AVX is the successor to SSE* and is fairly widely available. As such, it really ought to be detectable.

This functionality ought to be trivial to implement, and not having it means being forced to write an ugly workaround to check for AVX (so that normal SSE can be used if AVX is not available).
Comment 1 Haneef Mubarak 2014-02-02 01:28:37 UTC
Here is an example on detecting AVX from SO (it actually shows ways to cehck for all of teh fancy instructions):

http://stackoverflow.com/questions/6121792/how-to-check-if-a-cpu-supports-the-sse3-instruction-set
Comment 2 Sam Lantinga 2014-02-02 08:34:04 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/56ba41ac64fe