Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl_gfx: 64-bit support #264

Merged
merged 2 commits into from Oct 22, 2013
Merged

sdl_gfx: 64-bit support #264

merged 2 commits into from Oct 22, 2013

Conversation

Beuc
Copy link
Contributor

@Beuc Beuc commented Oct 21, 2013

Hi,

I disabled 'mmx' buggy support in sdl_gfx, so it compiles on 64-bit (and doesn't crash on i386 - see below).
I also removed the 'autoreconf'iguration as everything compiled fine without.

Additional note: SDL_imagefilter.c, which uses MMX is actually rarely used, and was tested VC++. The GCC ASM version crashed due to incorrect use of popa/pusha instructions (the code didn't take the stack pointer change into account). I worked for 2 weeks on a fix using GCC intrinsics at https://gitorious.org/sdlgfx/asm/, fixing i386 and adding 64-bit support. The SDL_gfx maintainer took is for the upcoming SDL2_gfx, although there's no plan for SDL_gfx right now.

@tonytheodore
Copy link
Member

Thanks! Can you roll up your changes from https://gitorious.org/sdlgfx/asm into patch?

tonytheodore added a commit that referenced this pull request Oct 22, 2013
sdl_gfx: 64-bit support
@tonytheodore tonytheodore merged commit 34cfaa8 into mxe:master Oct 22, 2013
@Beuc Beuc deleted the sdl_gfx branch October 22, 2013 17:36
@Beuc
Copy link
Contributor Author

Beuc commented Oct 22, 2013

I have a patch ready. I'll check with Andreas Schiffler how he thinks about shipping it in MXE.

@TimothyGu
Copy link
Member

Seems like removing autoreconf caused a bug in compilation. http://lists.nongnu.org/archive/html/mingw-cross-env-list/2013-10/msg00018.html

@Beuc
Copy link
Contributor Author

Beuc commented Oct 25, 2013

Thanks for the heads-up!
I answered on the list.

@Beuc
Copy link
Contributor Author

Beuc commented Oct 27, 2013

OK, Andreas Schiffler didn't object, so #266 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants