Bug 2426 - Switch DRI drivers to use libdrm.so
Summary: Switch DRI drivers to use libdrm.so
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86 (IA32) All
: high normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 17:42 UTC by Adam Jackson
Modified: 2009-08-24 12:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
mesa-loves-libdrm.patch (30.68 KB, patch)
2005-01-30 17:42 UTC, Adam Jackson
Details | Splinter Review

Description Adam Jackson 2005-01-30 17:42:05 UTC
You can now build libdrm as a shared object, by snagging it from cvs and doing:

$ cd libdrm && make && sudo make install

This is super cool because we can eliminate libdrm being duplicated in three
places (drm, Mesa, and Xorg), share libdrm between server and client, shrink the
driver footprint a bit, etc.

This patch switches the DRI bits to link against libdrm.so.  This is a flag day;
after applying this patch DRI _must_ have libdrm already built in order to
build.  (Non-DRI builds of Mesa are unaffected.)  This also means we need to add
libdrm to the snapshots, update Building, etc.  With libdrm kicked out and the
includes cleaned up a bit this drops over 4000 lines from Mesa.

In my testing this is completely binary-compatible in both directions
(shared-libdrm driver with static-libdrm libGL, and vice versa).  Untested on
Solo but should work the same as with X.  Please test.
Comment 1 Adam Jackson 2005-01-30 17:42:30 UTC
Created attachment 1793 [details] [review]
mesa-loves-libdrm.patch
Comment 2 Adam Jackson 2005-08-28 14:04:02 UTC
fixed in 6.3.2 and Mesa head.  woo.
Comment 3 Adam Jackson 2009-08-24 12:23:00 UTC
Mass version move, cvs -> git


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.