DRI
From MediaWiki
Contents |
Overview
The Direct Rendering Infrastructure DRI allows direct access to the graphics hardware under the X windows system allowing fast OpenGL graphics.
Many popular graphics chipsets from ATI (r128, r200, r300) and Intel (i810 and i915) are well supported by the DRI Project.
ATI and Nvidia do provide binary only proprietory drivers which offer better performance and features when compared to the Open Source drivers.
Do check up the supported chipset matrix on the Project website before choosing a graphics card.
See http://dri.freedesktop.org/wiki/
Operating System Configuration
Linux
See Linux_DRI section.
FreeBSD
See FreeBSD_DRI Section
X Windows
xorg.conf
r300
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "ati"
VendorName "Videocard vendor"
BoardName "ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]"
Option "AGPMode" "2"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
i915
Section "Module"
Load "extmod"
Load "glx"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "freetype"
Load "vnc"
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
Option "XINERAMA" "Disable"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corp."
BoardName "82845G/GL [Brookdale-G] Chipset Integrated Graphics Device"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
DefaultColorDepth 24
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Xorg.0.log
(II) LoadModule: "dri" (II) Module dri: vendor="X.Org Foundation" (II) Loading sub module "drm" (II) LoadModule: "drm" (II) Module drm: vendor="X.Org Foundation" drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: node name is /dev/dri/card0 (II) I810(0): [drm] loaded kernel module for "i915" driver (II) I810(0): [drm] DRM interface version 1.2 (II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0" (II) I810(0): [drm] added 8192 byte SAREA at 0xa9750000 (II) I810(0): [drm] mapped SAREA 0xa9750000 to 0x2889a000 (II) I810(0): [drm] framebuffer handle = 0xe0020000 (II) I810(0): [drm] added 1 reserved context for kernel (II) I810(0): [drm] Registers = 0xcfd00000 (II) I810(0): [drm] Back Buffer = 0xef000000 (II) I810(0): [drm] Depth Buffer = 0xee800000 (II) I810(0): [drm] ring buffer = 0xe0000000 (II) I810(0): [drm] textures = 0xe0a20000 (II) I810(0): [drm] dma control initialized, using IRQ 16 (II) I810(0): [drm] Initialized kernel agp heap manager, 39583744 (II) I810(0): [dri] visual configs initialized (II) I810(0): [drm] installed DRM signal handler