27 @ déc
Graphic acceleration on NetBSD using the radeon driver for ATI graphic cards
What is needed ?
- VGA support (kernel)
- DRM support (kernel)
- Modular Xorg and MesaLib, dri capable
What does default NetBSD/pkgsrc installation provide ?
- VGA support (GENERIC)
- VGA support (GENERIC)
So, we need to:
Add DRM support to the kernel: (example with radeondrm, as my graphic card is an ATI !)
# cd /usr/src/sys/arch/i386/conf # cp GENERIC MINE # echo 'radeondrm* at vga? # ATI Radeon DRM driver' >> MINE # config MINE # cd ../compile/MINE # make depend && make # cp netbsd /netbsd-custom- If DRM is still not configured (check dmesg | grep -i drm), we're using the wrong drm driver or no driver support the card.
As of NetBSD 5.99.05, 27/12/08, there is no DRM support for >= ATI R500
chips
- If DRM is still not configured (check dmesg | grep -i drm), we're using the wrong drm driver or no driver support the card.
As of NetBSD 5.99.05, 27/12/08, there is no DRM support for >= ATI R500
chips
Compile Xorg and Mesa with DRI
On NetBSD 4.0: dri has be enabled with: /etc/mk.conf
PKG_OPTIONS.MesaLib+=dri
PKG_OPTIONS.modular-xorg-server+=dri
On NetBSD 5.0, it should be enabled by default.
As of November, 12, R500 chips (as for example, ATI X1600 graphic cards) can’t enable DRI because Mesa does'nt have any support for them. We need at least Mesa version 7.1 for that.
Mesa 7.2 would be commited soon into pkgsrc (that’s a question of days)