Comment 22 for bug 190227

Revision history for this message
Peter Cordes (peter-cordes) wrote :

Mesa in ia32-libs has the same problem.

~/bin32/gears is /usr/lib/xscreensaver/gears from xscreensaver on an ia32 Debian Etch system, IIRC. Any 32bit openGL program, even medibuntu's googleearth package, is affected.

$ LIBGL_DEBUG=verbose MESA_DEBUG=1 ~/bin32/gears
libGL: XF86DRIGetClientDriverName: 1.9.0 i965 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/i965_dri.so
libGL error: dlopen /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: wrong ELF class: ELFCLASS64)
libGL error: unable to load driver: i965_dri.so
(runs with software rendering)

Fortunately, mesa has an env var for the driver path:

$ LIBGL_DEBUG=verbose MESA_DEBUG=1 LIBGL_DRIVERS_PATH=/usr/lib32/dri ~/bin32/gears
libGL: XF86DRIGetClientDriverName: 1.9.0 i965 (screen 0)
libGL: OpenDriver: trying /usr/lib32/dri/i965_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
(runs with hardware rendering)