Bug 2426

Summary: Switch DRI drivers to use libdrm.so
Product: Mesa Reporter: Adam Jackson <ajax>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: mesa-loves-libdrm.patch

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.