options DRM_DEBUG options DRM_NOEXTERNAL options DRM_NO_AGP
http://dri.freedesktop.org/
)
for supporting video acceleration (3d acceleration, mostly).
The drm drivers provide support for the following chipsets:
To make use of the driver, the kernel must include
agp(4)
(for some drivers, using
options DRM_NO_AGP
instead may be sufficient),
X(7)
must be compiled with DRI support, Mesa DRI drivers must be installed,
the appropriate
/dev/dri/card*
device must exist, and DRI must be enabled in the X configuration
file.
X(7)
provided with
NetBSD
and compiled from
pkgsrc(7)
do so automatically where supported.
X(7) will attempt to create the device node automatically. To create the device node manually:
mkdir -p /dev/dri
mknod /dev/dri/card0 c 180 0
chgrp wheel /dev/dri/card0
chmod 0660 /dev/dri/card0
To enable DRI in the X configuration add the following to either
xorg.conf
for
Xorg(1)
or
XF86Config
for
XFree86(1)
:
Section "Module"
...
Load "dri"
Load "dri2"
Load "glx"
EndSection
...
Section "DRI"
Group "wheel"
Mode 0660
EndSection
Debugging output can be enabled and disabled by setting the sysctl(8) node hw.dri.debug. Additional information can be obtained from the sysctl(8) nodes hw.dri, hw.dri.card0, hw.dri.card1, etc.
/usr/X11R[67]/lib/X11/doc/README.DRI
The drm drivers appeared in NetBSD5.0.
Eric Anholt, Terry Barnaby, Erdi Chen, Michel Daenzer, Leif Delgass, Frank C. Earl, Rickard E. Faith, Jose Fonseca, Nicolai Haehnle, Jeff Hartmann, Thomas Hellstrom, Gareth Hughes, Felix Kuehling, Sung-Ching Lin, Kevin E. Martin, Jared D. McNeill, Daryll Strauss, Keith Whitwell
In case of errors,
/dev/dri/card0
may be changed, make sure to recreate it in that case.
options DRM_DEBUG can slow DRI down a lot, disable it once drm works.
It is not expected to need to use the older drivers, but if it is
necessary,
options DRM_NOEXTERNAL
must be added to the kernel configuration file, and the two files
src/sys/dev/drm/files.drm
and
src/sys/dev/pci/drm/files.pcidrm
require minor edits, noted at the bottom of these files.