Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Apr 2006 14:27:18 +0200
From:      Karol Kwiatkowski <freebsd@orchid.homeunix.org>
To:        freebsd-emulation@freebsd.org
Subject:   DRI under Linux compat problem
Message-ID:  <44326626.8060803@orchid.homeunix.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4636A07C2BBCAA888834A805
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable

Good day all,

I hope this is the appropriate list. I'm trying to get DRI working
under Linux emulation but it fails.

I'm using linux_base-fc3 right now, but with linux_base-8 it was the
same. I guess there's some conflict between linux_dri-4.4.0 and
linux-XFree86-libs-4.3.99.902_7. Linux's libGL fails with:
  'DDX DRI driver expected R200 version 4.0.x but got version 5.0.3'
Details below.

In FreeBSD DRI is working, the video card is Radeon 9000Pro and it is
using radeon driver. Any help appreciated.

Cheers,

Karol


$ uname -spr
FreeBSD 6.1-PRERELEASE i386


/etc/X11/xorg.conf :

Section "Device"
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon RV250 If [Radeon 9000]"
        BusID       "PCI:1:0:0"
        Option      "AGPMode" "4"
        Option      "EnableDepthMoves" "on"
        Option      "EnablePageFlip" "on"
        Option      "RenderAccel" "on"
#       Option      "AccelMethod" "EXA"
EndSection



/var/log/Xorg.0.log :

[...]
(--) Chipset ATI Radeon 9000/PRO If (AGP/PCI) found
(II) Loading sub module "radeon"
(II) LoadModule: "radeon"
(II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.so
(II) Module radeon: vendor=3D"X.Org Foundation"
[...]
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [DRI] installation complete
(II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
(II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
(II) RADEON(0): [drm] dma control initialized, using IRQ 16
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
(II) RADEON(0): Direct rendering enabled


FreeBSD' DRI:

$ LIBGL_DEBUG=3Dverbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 5.0.3 r200 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/r200_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 error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /home/karol/.drirc: No such file or
directory.
display: :0  screen: 0
direct rendering: Yes
[...]
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI R200 20041207 AGP 4x TCL
OpenGL version string: 1.3 Mesa 6.4.1
[...]


DRI under Linux compat:

$ LIBGL_DEBUG=3Dverbose /compat/linux/usr/X11R6/bin/glxinfo
libGL: XF86DRIGetClientDriverName: 5.0.3 r200 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/r200_dri.so
drmOpenByBusid: busid is pci:0000:01:00.0
drmOpenDevice: minor is 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 error:
DDX DRI driver expected R200 version 4.0.x but got version 5.0.3
libGL error: InitDriver failed
display: :0.0  screen:0
direct rendering: No
[...]
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)
[...]


$ pkg_info | cut -d " " -f 1 | grep -E "xorg|linux" | grep -v "xorg-fonts=
"
linux-XFree86-libs-4.3.99.902_7
linux-aspell-0.50.4.1_1
linux-atk-1.8.0_1
linux-expat-1.95.7
linux-flashplugin-7.0r63
linux-fontconfig-2.2.3_2
linux-glib2-2.4.8_1
linux-gtk2-2.4.14_3
linux-jpeg-6b.33
linux-openmotif-2.2.4_2
linux-opera-8.52.20060201
linux-pango-1.6.0_1
linux-png-1.2.8
linux-realplayer-10.0.7.785.20060201
linux-tiff-3.6.1_5
linux_base-fc-3_1
linux_dri-4.4.0
linuxpluginwrapper-20051113
xorg-6.9.0
xorg-clients-6.9.0_2
xorg-documents-6.9.0
xorg-libraries-6.9.0
xorg-manpages-6.9.0
xorg-nestserver-6.9.0
xorg-printserver-6.9.0
xorg-server-6.9.0_1
xorg-vfbserver-6.9.0


--=20
Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>
OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc


--------------enig4636A07C2BBCAA888834A805
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEMmYtezeoPAwGIYsRAltzAJ91Gyt0AFobAxhuAGCYmWUqY1yijQCeLHWs
D2K9l2VzQF75NfBzetJKTzE=
=0BuW
-----END PGP SIGNATURE-----

--------------enig4636A07C2BBCAA888834A805--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44326626.8060803>