Gentoo Archives: gentoo-dev

From: Ferris McCormick <fmccor@g.o>
To: Donnie Berkholz <spyderous@g.o>
Cc: gentoo-dev@l.g.o, sparc@g.o
Subject: Re: [gentoo-dev] Modular X plans
Date: Thu, 11 Aug 2005 17:39:54
Message-Id: 1123781736.8611.90.camel@polylepis.inforead.com
In Reply to: Re: [gentoo-dev] Modular X plans by Donnie Berkholz
1 On Wed, 2005-08-10 at 17:46 -0700, Donnie Berkholz wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA1
4 >
5 > Ferris McCormick wrote:
6 > | It always makes sense to enable glx (Mesa) whether there is DRI support
7 > | or not; some applications can run adequately well using the
8 > | Mesa-indirect approach, and some graphics cards --- e.g., Elite == afb
9 > | --- don't allow dri at all. That is what (for sparc, at least) USE=glx
10 > | should control.
11 >
12 After a lot of experimenting, I have concluded the following:
13 1. The mesa build source tree has been rearranged enough that getting
14 sparc assembly code to work properly is not trivial. Instead of
15 building the assembly versions of the code for sparc into base libGL,
16 the build puts into all the dri drivers instead, thereby leaving
17 undefined externals if you link against libGL. So, those flags are not
18 defined in the builtin mesa targets for a good reason.
19
20 2. In case of USE=dri, for sparc right now this looks like a good set
21 of drivers: DRI_DIRS = fb ffb mach64 mga radeon savage
22
23 3. With USE=-dri, for testing purposes (and in the end, perhaps for
24 performance reasons as well), it seems better to change the make target
25 to HOSTCONF=linux-sparc, and let user's CFLAGS define the architecture.
26 When you do this, you get both a glx-capable libGL and a stand-alone
27 libGL, but no dri drivers.
28
29 4. For now, in case USE=-dri, I am not calling fix_opengl_symlinks.
30 Once I have all of X11R7 into test, I'll revisit this (and the Assembly
31 code question) to see what gives the best performance.
32
33 These changes are not very pretty, but they have the benefit of
34 resulting in an ebuild for a mesa version of opengl which can actually
35 be tested independently from the rest of Modular X. It is even
36 conceivable that other architecture/graphics-card combinations might
37 require something similar.
38
39 Regards,
40 Ferris
41 --
42 Ferris McCormick (P44646, MI) <fmccor@g.o>
43 Developer, Gentoo Linux (Sparc, Devrel)

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Modular X plans Donnie Berkholz <spyderous@g.o>