OpenGL hardware acceleration with FreeBSD 5.3
Geoff Glasson
g_glasson at wiredcity.com.au
Thu Jan 27 06:06:31 PST 2005
Michael,
This might sound like a stupid question but...Did you load the DRI kernel
module for the card before start the X server?
3D acceleration under X is a two part system. There is the X server and the
DRI module for X, but it also requires a kernel module for the hardware being
accelerated.
The main DRI web site is at: http://dri.sourceforge.net
There is also Eric Anholt's web site which is a little out of date, but you
might find the troubleshooting section of use.
http://people.freebsd.org/~anholt/dri/
Regards...Geoff
On Tue, 25 Jan 2005 04:15 am, freebsd-questions-request at freebsd.org wrote:
> Message: 25
> Date: Mon, 24 Jan 2005 13:48:23 -0600
> From: Michael Madden <madden at cmsrtp.com>
> Subject: OpenGL hardware acceleration with FreeBSD 5.3
> To: freebsd-questions at freebsd.org
> Message-ID: <20050124194823.GA14049 at cmsrtp.com>
> Content-Type: text/plain; charset=us-ascii
>
> 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
--
Geoff Glasson
g_glasson at wiredcity.com.au
More information about the freebsd-questions
mailing list