mplayer, amd64, and CPU flags
Axel Gonzalez
loox at e-shell.net
Sat May 21 00:28:07 PDT 2005
I did a little research... problem seems to be in TOOLS/cpuinfo
# gcc -o TOOLS/cpuinfo TOOLS/cpuinfo.c
# TOOLS/cpuinfo
vendor_id :
model name : Unknown CPU
the confugure file depends on this to determine the capabilities of the CPU,
since it fails to detect the correct type, it doesn't enable the extra flags.
maybe its safe to enable all flags directly on configure file (and skip the
x86_exts_check function) ? (configure line 929). After all, its an amd64, it
should have mmx, sse 3dnow etc.
the other option is to fix the cpuinfo file :)
I'll do a little more hacking tomorrow, and let you know
On Saturday 21 May 2005 01:41, Kris Kennaway wrote:
> On Fri, May 20, 2005 at 10:21:31PM -0400, Damian Gerow wrote:
> > Does anyone know why mplayer doesn't seem to acknowledge support of any
> > CPU flags like SSE, MMX, 3DNow, etc? I've done some digging, but have
> > only come up with stuff from OpenBSD that didn't make a whole lot of
> > sense to me, and I'm not sure how applicable it is to FreeBSD (that the
> > flags aren't present in the machdep sysctl).
> >
> > The dmesg:
> >
> > CPU: AMD Opteron(tm) Processor 244 (1808.34-MHz K8-class CPU)
> >
> > Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,M
> >CA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD
> > Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
> >
> > The mplayer output:
> >
> > MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
> > CPU: Advanced Micro Devices Opteron Sledgehammer (Family: 8,
> > Stepping: 10) Detected cache-line size is 64 bytes
> > MMX supported but disabled
> > MMX2 supported but disabled
> > SSE supported but disabled
> > SSE2 supported but disabled
> > 3DNow supported but disabled
> > 3DNowExt supported but disabled
> > CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
> > Compiled for x86 CPU with extensions:
> >
> > This is with automagic CPU detection compiled in, but when I take it out,
> > I still get the same thing.
>
> Look at what the port does..it looks like it only enables runtime
> detection support on i386. Talk to the maintainer.
>
> Kris
More information about the freebsd-amd64
mailing list