libGL.so can't find DRI modules

Bug #54299 reported by Mathieu Bérard
16
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: XF86DRIGetClientDriverName: 4.1.0 r300 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/r300_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/r300_dri.so failed (/usr/X11R6/lib/modules/dri/r300_dri.so: cannot open shared object file: No such file or directory)
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/lib/modules/dri
config/default in the mesa source tree must be updated by changing:
DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri/
to:
DRI_DRIVER_INSTALL_DIR = /usr/lib/dri

This change worked for me:
LIBGL_DEBUG=verbose glxinfo

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.1.0 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
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

Revision history for this message
Øivind Hoel (eruin) wrote :

I can confirm this on my edgy system, and the fix as described enables direct rendering on my radeon.

Changed in mesa:
status: Unconfirmed → Confirmed
Revision history for this message
Mika Fischer (zoop) wrote :

Same here. Just symlinking /usr/lib/dri/ to /usr/X11R6/lib/modules/dri/ fixes it too.

Revision history for this message
Rodrigo Novo (rodarvus) wrote :

Thanks for the bug report!

Fixed in latest upload of mesa.

 mesa (6.5.1~20060817-0ubuntu2) edgy; urgency=low
 .
   * Comment out check for r300 ati boards on
     src/mesa/dri/radeon/radeon_screen.c, since 3D r300 support is fixed in the
     current incarnation of the ati driver (fd.o bug #6318)
   * Make sure Mesa exports the right DRI driver directory
   * Update libgl1-mesa-glx so it doesn't provides libgl1-mesa-dri (which it
     shouldn't)

Changed in mesa:
status: Confirmed → Fix Released
Revision history for this message
Mika Fischer (zoop) wrote :

This is fixed for me. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.