[Mesa-dev] Megaradeon

Emil Velikov emil.l.velikov at gmail.com
Wed May 14 19:10:03 PDT 2014


On 15/05/14 02:58, Marek Olšák wrote:
> Hi everybody,
> 
> Some distros seem to care about the size of Mesa, so I came up with
> this little patch.
> 
> It puts r600g and radeonsi into r300_dri.so. The result is one shared
> library which contains all three drivers. Also, all driver loaders in
> Mesa should now always load the r300 driver instead of r600 and
> radeonsi.
> 
> The radeon winsys is created first, which then creates the correct
> screen (r300, r600, or radeonsi) according to the PCI ID.
> 
> The libGL loader has actually been ignoring the driver name from the X
> server for quite some time, so nothing needs to be done for this
> outside of Mesa.
> 
> This is for *_dri.so only, the other targets are still separate and
> probably broken with this patch. (VDPAU, XvMC, egl-gallium, OpenCL?)
> 
> What's missing:
> - do the same for the other targets/APIs
> - remove r600 and radeonsi targets and clean up the build system
> 
> Original files without debugging symbols:
>   5.9MB r300_dri.so
>   6.5MB r600_dri.so
>   5.7MB radeonsi_dri.so
> Megaradeon:
>   7.0MB r300_dri.so (all 3 drivers)
> 
> If somebody who cares about the size of Mesa wants to finish this up,
> the patch is attached. This is only a proof that it's not really
> difficult. What remains is mostly just build system work.
> 
Hi Marek,

I came back to the megadri, megavdpau... topic recently. Personally I will go
with pipe-loader-to-all targets, although I'm planning to have the mega* the
default option, due to concerns about the unstable interface.

Thanks for the work. It will definitely be helpful.

Emil
> Marek
> 
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 



More information about the mesa-dev mailing list