[Mesa-dev] R: Re: libgallium.so and miscelaneous buildsystem patches

Eric Anholt eric at anholt.net
Mon Oct 10 13:35:18 PDT 2011


On Thu, 6 Oct 2011 13:24:20 +0200 (CEST), Fabio <fabio.ped at libero.it> wrote:
> >Da: keithw at vmware.com
> >Data: 05/10/2011 11.39
> >A: "Christopher James Halse Rogers"<christopher.halse.rogers at canonical.com>
> >Cc: "Joakim Sindholt"<opensource at zhasha.com>, <mesa-dev at lists.freedesktop.
> org>, "Fabio"<fabio.ped at libero.it>
> >Ogg: Re: [Mesa-dev] libgallium.so and miscelaneous buildsystem patches
> >
> >On Wed, 2011-10-05 at 20:14 +1100, Christopher James Halse Rogers wrote:
> >> On Wed, 2011-10-05 at 09:24 +0200, Joakim Sindholt wrote:
> >> > On Tue, 2011-10-04 at 17:58 +0200, Fabio wrote:
> >> > > Can the patches at
> >> > > http://lists.freedesktop.org/archives/mesa-dev/2011-August/011099.html
> >> > > be considered for merging?
> >> > > 
> >> > > Sharing libgallium should save some MB of installed space.
> >> > 
> >> > And be an ABI nightmare for distributions
> >> 
> >> No; it's a private library.  Distributions will happily ship a
> >> libgallium built from exactly the same source that the DRI drivers are
> >> built from.  Indeed, that's what currently happens for those
> >> distributions with ship with --enable-shared-dricore, and what happens
> >> in Ubuntu, where we've got this patch series applied in our never-ending
> >> quest to cram a fully-featured linux system on a 700MB CD.
> >> 
> >> Saving 20-odd megabytes is really useful there :)
> >
> >An alternative would be to build all the drivers into a single library
> >for maximal sharing.
> 
> A single library with all the drivers will however be bigger (compared to the 
> single driver + eventual shared libs) and it would use more memory.

It would be larger than any one of the drivers, but I don't see how it
would be larger than the sum of the split drivers plus the shared code,
which is what matters for disks.  And, with paging, I don't see how it
would use more memory at runtime.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111010/ca7a8697/attachment.pgp>


More information about the mesa-dev mailing list