Gentoo Archives: gentoo-dev

From: Drake Wyrm <wyrm@×××××.com>
To: gentoo-dev@××××××××××××.org
Subject: Re: [gentoo-dev] MPlayer cpu USE flags zaniness
Date: Sun, 27 Mar 2005 07:23:38
Message-Id: 20050327072336.GA31927@phaenix.haell.com
In Reply to: Re: [gentoo-dev] MPlayer cpu USE flags zaniness by Markus Nigbur
1 At 2005-03-27T06:46:16+0200, Markus Nigbur <pYrania@g.o> wrote:
2 > On Sun, 2005-03-27 at 12:48 +0900, Chris White wrote:
3 > > Ok, so I had some users complain about mmx2 being showed as enabled
4 > > in mplayer despite the lack of mmxext in /proc/cpuinfo. Therefore I
5 > > decided to get upstream help. Here's what we got...:
6 > >
7 > > mmx2 = sse
8 > > sse = mmx2
9 > >
10 > > but in mplayer's configure script:
11 > >
12 > > mmx2 = sse's integer logic
13 > > sse = sse's floating point stuff
14 > >
15 > > so mmx2 is NOT a flag for mmx2 support.. it's a flag for integer portion
16 > > of sse...
17 > >
18 > > ok, so at this point I'm confused as to how to approach this. What
19 > > about AMD? Do they use mmxext for stuff like that.. or sse2 extensions
20 > > (as someone mentioned). My plan is to have sse USE flag enable mmx2
21 > > only (since it's "the best") and disable sse (since it's the same thing
22 > > but "worse"). However, that only takes care of intel.. what about AMD
23 > > processors though? They deal with all this stuff differently.
24 > That sounds very brain dead by upstream. IMHO they really shouldn't use
25 > keywords for things which don't do what everybody else would expect them
26 > to do. Did you already propose them to change this behavior and
27 > introduce either another keyword for the floating point stuff or merge
28 > those two, enabling it by default when sse is enabled.
29
30 There was a li'l thread about this recently. The terms "mmxext" and
31 "mmx2" both refer to the "AMD Extensions to the MMX Instruction Set",
32 introduced by AMD right at the end of the K6-3 line and beginning of the
33 Athlon line. Intel included these instructions in their "Streaming SIMD
34 Extensions" (SSE).
35
36 Take a look in mplayer's ./configure script to see how the mplayer devs
37 autodetect for "--enable-mmx2".
38
39 650 mmxext) _mmx2=yes ;;
40 652 xmm|sse|kni) _sse=yes _mmx2=yes ;;
41
42 Looks like you've got it right in the ebuilds currently in portage.
43
44 --
45 Batou: Hey, Major... You ever hear of "human rights"?
46 Kusanagi: I understand the concept, but I've never seen it in action.
47 --Ghost in the Shell