Gentoo Archives: gentoo-dev

From: Andy Mender <andymenderunix@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] New USE_EXPAND: LLVM_TARGETS
Date: Wed, 28 Sep 2016 04:29:39
Message-Id: CAHVfhueHmnK84awowiveRG45Eve7Mg0_ofCyEsKe=68UvbwODA@mail.gmail.com
In Reply to: Re: [gentoo-dev] [RFC] New USE_EXPAND: LLVM_TARGETS by Raymond Jennings
1 It does. In effect it determines which xorg-drivers are to be merged. This,
2 and some other packages with options for specific graphic cards/adapters.
3
4 Best regards,
5 Andy Mender.
6
7 On 27 Sep 2016 22:52, "Raymond Jennings" <shentino@×××××.com> wrote:
8
9 > On Sun, Sep 25, 2016 at 11:29 PM, Michał Górny <mgorny@g.o> wrote:
10 >
11 >> On Mon, 26 Sep 2016 08:18:27 +0200
12 >> Michał Górny <mgorny@g.o> wrote:
13 >>
14 >> > On Mon, 26 Sep 2016 00:42:11 +0300
15 >> > Mart Raudsepp <leio@g.o> wrote:
16 >> >
17 >> > > Ühel kenal päeval, P, 25.09.2016 kell 23:08, kirjutas Michał Górny:
18 >> > > > I'd like to introduce a new USE_EXPAND for LLVM & clang. It'd be
19 >> > > > named
20 >> > > > LLVM_TARGETS, and it's going to replace the current solution based
21 >> on
22 >> > > > USE=multitarget & VIDEO_CARDS=radeon.
23 >> > > >
24 >> > > > - VIDEO_CARDS=radeon enabled additional R600 target,
25 >> > >
26 >> > > No. It enables AMDGPU target these days, which is for the modern stuff
27 >> > > and very much needed by them.
28 >> > > r600 stuff was in the llvm 3.3-3.6 era, which was used by old
29 >> > > experimental mesa[r600-llvm-compiler] as an alternative shader
30 >> compiler
31 >> > > for r600 instead of builtin mesa stuff. This work has been ditched
32 >> long
33 >> > > ago afaik.
34 >> > > Instead now VIDEO_CARDS=radeon is required on llvm for radeonsi and
35 >> > > later AMD GPUs for _ANY_ shader compiler support at all, plus other
36 >> > > things (from it adding AMDGPU to llvm targets in current ebuild).
37 >> >
38 >> > Yes, yes, I am old :-P. You are right, it's AMDGPU these days.
39 >> >
40 >> > > > The new system will be applied to 3.9.0 and 9999 ebuilds.
41 >> VIDEO_CARDS
42 >> > > > flag will be removed completely because of no revdeps.
43 >> > >
44 >> > > People with radeonsi graphics set VIDEO_CARDS=radeon already, I'm a
45 >> bit
46 >> > > reserved about having to force them to set some LLVM_TARGETS=radeon or
47 >> > > LLVM_TARGETS=amdgpu on top of that to satisfy some USE depends on
48 >> > > mesa[video_cards_radeon].
49 >> >
50 >> > How about nvidia users who seem to require NVPTX for libclc these days?
51 >> > Do they set VIDEO_CARDS='nvidia nv nouveau ...'? The problem is that
52 >> > this abuse of VIDEO_CARDS is never going to be 100% clear to users.
53 >> >
54 >> > I guess we can enable GPU targets in desktop profiles by default to
55 >> > save most of our users from the issues.
56 >>
57 >> Hmm, I actually see we're enabling them in arch profiles. So I guess
58 >> matching enable there would fit there as well.
59 >>
60 >> --
61 >> Best regards,
62 >> Michał Górny
63 >> <http://dev.gentoo.org/~mgorny/>
64 >>
65 >
66 > This might be a stupid question, but I have a hunch I'm not the only user
67 > curious about this.
68 >
69 > Doesn't VIDEO_CARDS factor in on xorg-server's video driver selection?
70 >