Ok. I captured the output from X and logged it. The first thing I notice is that it said that it only does direct rendering in 16 or 32 bit modes. So I changed my colour dept to 16bpp.
Welp my fps is up to 179fps, but I’m affraid dri is still not working.
Here is my X output.
XFree86 Version 4.0.2 / X Window System
(protocol Version 11, revision 0, vendor release 6400)
Release Date: 18 December 2000
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ))
Operating System: Linux 2.4.0 i686 [ELF]
Module Loader present
(==) Log file: “/var/log/XFree86.0.log”, Time: Wed Feb 14 06:59:15 2001
(==) Using config file: “/etc/X11/XF86Config”
Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (??) unknown.
(==) ServerLayout “Simple Layout”
() |–>Screen “Screen 1” (0)
() | |–>Monitor “ViewSonic PF790”
() | |–>Device “Matrox Millenium G450”
() |–>Input Device “Mouse1”
() |–>Input Device “Keyboard1”
() XKB: rules: “xfree86”
() XKB: model: “pc104”
() XKB: layout: “us”
() FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/m
(**) RgbPath set to “/usr/X11R6/lib/X11/rgb”
(==) ModulePath set to “/usr/X11R6/lib/modules”
(–) using VT number 7
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 0.1.0
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 0.1.0
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(–) PCI:*(1:0:0) Matrox MGA G400 AGP rev 130, Mem @ 0xf2000000/25, 0xfeafc000/1
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Module freetype: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.1.8
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/drivers/mga_drv.o
(II) Module mga: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI, mgag400
(–) Assigning device section with no busID to primary device
(–) Chipset mgag400 found
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 0.1.0
() MGA(0): Depth 16, (–) framebuffer bpp 16
(==) MGA(0): RGB weight 565
(II) Loading /usr/X11R6/lib/modules/drivers/mga_hal_drv.o
(II) Module mga_hal: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) MGA(0): Matrox HAL module used
(–) MGA(0): Chipset: “mgag400”
(II) MGA(0): Offscreen memory usage will be limited to 512 lines if the DRI is e
(==) MGA(0): Using AGP Mode 1x
(–) MGA(0): Linear framebuffer at 0xF2000000
(–) MGA(0): MMIO registers at 0xFEAFC000
(–) MGA(0): Pseudo-DMA transfer window at 0xFE000000
(–) MGA(0): BIOS at 0xFEAC0000
(–) MGA(0): Video BIOS info block at offset 0x07720
(WW) MGA(0): Video BIOS info block not detected!
() MGA(0): VideoRAM: 32678 kByte
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libi2c.a
(II) Module i2c: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.2.0
(WW) MGA(0): Failed to set up write-combining range (0xf2000000,0x1fe9800)
(II) MGA(0): I2C bus “DDC” initialized.
(II) MGA(0): I2C device “DDC:ddc2” registered.
(II) MGA(0): I2C device “DDC:ddc2” removed.
(II) MGA(0): I2C Monitor info: (nil)
(II) MGA(0): end of I2C Monitor info
(–) MGA(0): No DDC signal
(II) MGA(0): DDC Monitor info: (nil)
(II) MGA(0): end of DDC Monitor info
(==) MGA(0): Using gamma correction (1.0, 1.0, 1.0)
(==) MGA(0): Min pixel clock is 12 MHz
(==) MGA(0): Max pixel clock is 360 MHz
(II) MGA(0): ViewSonic PF790: Using hsync range of 30.00-97.00 kHz
(II) MGA(0): ViewSonic PF790: Using vrefresh range of 50.00-160.00 Hz
(II) MGA(0): Clock range: 12.00 to 360.00 MHz
(WW) MGA(0): Default mode “1024x768” deleted (bad mode clock/interlace/doublesca
(WW) MGA(0): Default mode “1600x1200” deleted (hsync out of range)
(WW) MGA(0): Default mode “1792x1344” deleted (hsync out of range)
(WW) MGA(0): Default mode “1856x1392” deleted (hsync out of range)
(WW) MGA(0): Default mode “1920x1440” deleted (hsync out of range)
(WW) MGA(0): Failed to set up write-combining range (0xf2000000,0x1fe9800)
(–) MGA(0): Has SDRAM
(–) MGA(0): Virtual size is 1280x1024 (pitch 1280)
() MGA(0): Default mode “1280x1024”: 157.5 MHz, 91.1 kHz, 85.0 Hz
(==) MGA(0): DPI set to (75, 75)
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libxaa.a
(II) Module xaa: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor=“The XFree86 Project”
compiled for 4.0.2, module version = 0.1.0
(WW) MGA(0): Failed to set up write-combining range (0xf2000000,0x1fe9800)
(–) MGA(0): 16 DWORD fifo
(==) MGA(0): Default visual is TrueColor
(II) MGA(0): [drm] bpp: 16 depth: 16
(II) MGA(0): [drm] Sarea 2196+632: 2828
(0): [drm] created “mga” driver at busid “PCI:1:0:0”
(0): [drm] added 4096 byte SAREA at 0xc9a33000
(0): [drm] mapped SAREA 0xc9a33000 to 0x40018000
(0): [drm] drmAddMap failed
(EE) MGA(0): [drm] DRIScreenInit Failed
(II) MGA(0): Using 5529 lines for offscreen memory.
(II) MGA(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
Solid filled trapezoids
8x8 mono pattern filled rectangles
8x8 mono pattern filled trapezoids
Indirect CPU to Screen color expansion
Screen to Screen color expansion
Solid Lines
Dashed Lines
Scanline Image Writes
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
32 256x256 slots
16 512x512 slots
(==) MGA(0): Backing store disabled
(==) MGA(0): Silken mouse enabled
(II) MGA(0): Using overlay video
(II) MGA(0): direct rendering disabled
() Mouse1: Protocol: “Microsoft”
() Mouse1: Core Pointer
(==) Mouse1: Buttons: 3
() Mouse1: BaudRate: 1200
(II) Keyboard “Keyboard1” handled by legacy driver
(II) XINPUT: Adding extended input device “Mouse1” (type: MOUSE)
I notice that it says coming to the end:
(EE) MGA(0): [drm] DRIScreenInit Failed
and also
(II) MGA(0): direct rendering disabled
.
Does anyone know what I’m doing wrong ?
Any help will be greatly appreciated.