site  contact  subhomenews

Precise: mesa compiled

July 08, 2013 — BarryK
In the previous post I mentioned wanting to reduce the size of Precise Puppy. Here is the first step.

From configuration lessons I have learnt with T2 over the past week, I configured and compiled the 'mesa' package in Precise pup, without the 'llvm' dependency.

llvm is a monster, adding about 7.1MB to the live-CD .iso file, yet it is only used in Precise pup for one mesa driver, the Gallium r300. I decided to sacrifice that driver.

For the record, this is the configuration:

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i586-pc-linux-gnu --enable-dri --enable-glx --enable-shared-dricore --with-gallium-drivers="i915,nouveau,r600,swrast,svga" --with-dri-drivers="i915,i965,r200,radeon,swrast" --disable-gallium-llvm --disable-selinux

PETs (8.5M, 177K):
http://distro.ibiblio.org/quirky/pet_packages-precise/mesa-8.0.4-patched_0ubuntu0.6-i586-precise.pet
http://distro.ibiblio.org/quirky/pet_packages-precise/mesa_DEV-8.0.4-patched_0ubuntu0.6-i586-precise.pet

The source is from the Ubuntu 'precise-updates' repository, with patch.

Comments

mesa source
Username: BarryK
Here is the source, with patch: http://bkhome.org/sources/alphabetical/m/ Us#er#na#me#: pu#pp#y Pa#ss#wo#rd#: li#nu#x

The llvm pipe
Username: Nathan F
"That may work for now, but there is a continuing effort to integrate llvm into Mesa. Expect that in the coming months more and more cards will be getting their support through llvm. It would appear that Apple has been leveraging llvm's support of certain gpu's to enhance shaders, and actively contributing code to enhance the library's support in that direction. The library is quickly becoming an integral part of the OSX graphics stack. The Mesa devs are basically just taking advantage of that code. It's a two edged sword. On the one hand, there are significant improvements to the drivers and it frees up development time so the focus can be placed elsewhere. But it adds yet another component to the graphics stack on *nix now. In any event, the point is that you can expect llvm to become more integrated in the future, not less. It's here to stay.

Freedesktop (free?)
Username: FeodorF
" Report from the Freedesktop Summit http://www.gnome.org/news/2013/04/report-from-the-freedesktop-summit/

mesa compile question
Username: charlie6
"Hi Barry, i got a try compiling mesa-9.1.3 for raring on Pemasu's raring-3.9.8, using the same ./configure options as the one you mentionned in this thread. I believe i followed compilation guidelines from mesa.org website. All seemed going well till end of the make process (no error reported). I noticed that /usr/lib/dri/i915_dri.so as also other drivers were ca. 23MB sized ...! I also get the following: [code]# env LIBGL_DEBUG=verbose glxgears libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so libGL error: dlopen /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE) libGL error: unable to load driver: i915_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i915 libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so 181 frames in 5.0 seconds = 36.105 FPS ... #[/code] So, please could you give some advice? Thanks for any answer! Charlie

Re mesa compile
Username: BarryK
"In T2 I compiled mesa 9.1.2. It compiled OK, and Puppy worked. But that was patched with T2's own patches, so maybe that has something to do with it. If you go to the t2-project.org site, 'packages' link, you can get the patches. In my case, I used the Ubuntu Precise version and patches. mesa 9.x does have significant changes. For example, I think they removed libGLU, and you have to use the 'libglu' package (from Ubuntu repo).


Tags: puppy