Page MenuHomeFreeBSD

graphics/sdl_gfx: disable MMX for non x86 architectures
ClosedPublic

Authored by sbruno on Sep 10 2014, 8:15 PM.
Tags
None
Referenced Files
F81645427: D761.diff
Fri, Apr 19, 10:17 AM
Unknown Object (File)
Mar 4 2024, 4:45 AM
Unknown Object (File)
Mar 4 2024, 4:45 AM
Unknown Object (File)
Mar 3 2024, 2:37 AM
Unknown Object (File)
Mar 3 2024, 2:23 AM
Unknown Object (File)
Jan 13 2024, 10:46 AM
Unknown Object (File)
Dec 30 2023, 11:38 AM
Unknown Object (File)
Dec 30 2023, 11:37 AM
Subscribers
None

Details

Reviewers
mva
bapt
bdrewery
Summary

Pretty simple, move the use of MMX under checks for i386/amd64 protection
Else, this port blows up trying to code to use instructions that don't exist on
armv6 etc.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

sbruno retitled this revision from to graphics/sdl_gfx: disable MMX for non x86 architectures.
sbruno updated this object.
sbruno edited the test plan for this revision. (Show Details)
sbruno added reviewers: bapt, bdrewery, mva.

That looks messy. OPTIONS_DEFINE_i386 offers the option only on x86 platforms and enables or disables it on those. Otherwise the default detection for MMX should do the right thing.

You want that fix, because sdl_gfx tries to use MMX on armv6? If so, I'd rather see something like

.if (${ARCH] == "armv6")
CONFIGURE_ARGS += ..
.endif

mva edited reviewers, added: sbruno; removed: mva.
  • Improved diff for testing
sbruno edited edge metadata.

Redports build now show all builds pass and that mmx is turned off by default.
https://redports.org/buildarchive/20140911175500-12806/

This revision is now accepted and ready to land.Sep 11 2014, 6:18 PM
bdrewery edited edge metadata.

Mentor approved; pending maintainer approval.

I gave the approval already via IRC already. @sbruno can commit it.

sbruno edited reviewers, added: mva; removed: sbruno.

Committed at svn r368271