options DRM_DEBUG
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,
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.
Details for these steps:
http://www.mesa3d.org/)
should be compiled for the netbsd-dri target, patch available at
http://issc.uj.ac.za/~yorick/drm/mesa.patch
mkdir -p /dev/dri
mknod /dev/dri/card0 c 180 0
chgrp wheel /dev/dri/card0
chmod 0660 /dev/dri/card0
xorg.conf
or
XF86Config):
Section "Module"
...
Load "dri"
Load "GLcore"
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.
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
xorg.conf):
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
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.