drm/dri update
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Sun Jan 6 17:59:19 PST 2008
Hey,
I am serving you hot + fresh a new dri/drm port. I'd like everybody to
try and use it and to report back on success and problems. I'd like to
commit this update before the release.
What you need to do:
Update to latest HEAD to get my changes for agp.
Then,
git clone git://ww2.fs.ei.tum.de/~corecode/git/drm.git
cd drm
. /autogen.sh
cd bsd-core
make depend
make
make install # as root
Then, you'll have to build the X server with dri:
add
PKG_OPTIONS.xorg-server= dri
to /usr/pkg/etc/mk.conf.
Now go to pkgsrc/x11/modular-xorg-server and bmake install it.
You'll need to install a MesaLib that supports dri. I don't know how
you could do this with the MesaLib from pkgsrc. I installed MesaLib-dri
from pkgsrc-wip. Be sure to read the README. This will give you a
/usr/pkg/lib/libGL.so.1.0.2, but the rest of pkgsrc wants a
/usr/pkg/lib/libGL.so.1.0.5 (I have no clue why their numbering goes
backwards). I simply symlinked 1.0.2 to 1.0.5 and right now it works.
Now you should have:
/modules/drm.ko
/modules/$driver.ko
(from drm)
/usr/pkg/lib/libGL.so
/usr/pkg/lib/dri/$driver_dri.ko
(from MesaLib-dri)
/usr/pkg/lib/xorg/modules/extensions/libGLcore.so
/usr/pkg/lib/xorg/modules/extensions/libglx.so
(from modular-xorg-server)
I then had to create the device node:
mkdir /dev/dri
mknod /dev/dri/card0 c 145 0 0:0
chmod a+rw /dev/dri/card0
As last task you need to adjust your xorg.conf to load glx. Add
Load "glx"
Load "dri"
to your /etc/X11/xorg.conf. Add a new section
Section "DRI"
Mode 0666
EndSection
to the end of the xorg.conf file.
Now you're set. Do a
kldload i915
or whatever you need for your graphics card. I'm not sure if the dri
driver should kldload it automatically.
startx and run glxinfo (available from glx-utils). You should now see:
direct rendering: Yes
Now be happy, use your favorite 3d tool and try it. Instantly report
back your success via mail/nntp.
have fun!
simon
More information about the Users
mailing list