libGL.so can't find DRI modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mesa (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
libGL.so is looking for DRI hardware modules at the wrong place:
LIBGL_DEBUG=verbose glxinfo :
name of display: :0.0
libGL: XF86DRIGetClien
libGL: OpenDriver: trying /usr/X11R6/
libGL error: dlopen /usr/X11R6/
libGL error: unable to find driver: r300_dri.so
display: :0 screen: 0
direct rendering: No
DRI modules are in /usr/lib/dri and not usr/X11R6/
config/default in the mesa source tree must be updated by changing:
DRI_DRIVER_
to:
DRI_DRIVER_
This change worked for me:
LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClien
libGL: OpenDriver: trying /usr/lib/
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
libGL warning: 3D driver claims to not support visual 0x4b
display: :0 screen: 0
direct rendering: Yes
I can confirm this on my edgy system, and the fix as described enables direct rendering on my radeon.