Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2005 13:48:23 -0600
From:      Michael Madden <madden@cmsrtp.com>
To:        freebsd-questions@freebsd.org
Subject:   OpenGL hardware acceleration with FreeBSD 5.3
Message-ID:  <20050124194823.GA14049@cmsrtp.com>

next in thread | raw e-mail | index | archive | help
I have a Matrox G400, and I cannot figure out how to get hardware acceleration
setup for it.  glxinfo still displays "direct rendering: No", and OpenGL
apps like glxgears are slow.  I've made sure I've got the dri and glx modules
loaded, and I've added the DRI section to xorg.conf.

If it helps, here is my xorg.conf file.  Thanks for the help.

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "xtrap"
        Load  "freetype"
        Load  "speedo"
        Load  "type1"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "InputDevice"
        Identifier  "Keyboard1"
        Driver      "keyboard"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
	Option      "ZAxisMapping"      "4 5"
EndSection

Section "Monitor"
    Identifier  "hp 1825"
    HorizSync   31.5 - 64.3
    VertRefresh 50-70
EndSection

Section "Device"
    Identifier  "Matrix G400"
    Driver      "mga"
    VideoRam    16384
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Matrix G400"
    Monitor     "hp 1825"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
    Mode 0666
EndSection



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050124194823.GA14049>