Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2005 22:06:18 +0800
From:      Geoff Glasson <g_glasson@wiredcity.com.au>
To:        madden@cmsrtp.com
Cc:        freebsd-questions@freebsd.org
Subject:   RE: OpenGL hardware acceleration with FreeBSD 5.3
Message-ID:  <200501272206.18713.g_glasson@wiredcity.com.au>
In-Reply-To: <20050124201524.8028816A4DB@hub.freebsd.org>
References:  <20050124201524.8028816A4DB@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael,

This might sound like a stupid question but...Did you load the DRI kernel=20
module for the card before start the X server?

3D acceleration under X is a two part system.  There is the X server and th=
e=20
DRI module for X, but it also requires a kernel module for the hardware bei=
ng=20
accelerated. =20

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=
=20
might find the troubleshooting section of use. =20
http://people.freebsd.org/~anholt/dri/

Regards...Geoff

On Tue, 25 Jan 2005 04:15 am, freebsd-questions-request@freebsd.org wrote:
> Message: 25
> Date: Mon, 24 Jan 2005 13:48:23 -0600
> From: Michael Madden <madden@cmsrtp.com>
> Subject: OpenGL hardware acceleration with FreeBSD 5.3
> To: freebsd-questions@freebsd.org
> Message-ID: <20050124194823.GA14049@cmsrtp.com>
> Content-Type: text/plain; charset=3Dus-ascii
>
> I have a Matrox G400, and I cannot figure out how to get hardware
> acceleration setup for it. =A0glxinfo still displays "direct rendering: N=
o",
> and OpenGL apps like glxgears are slow. =A0I'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. =A0Thanks for the help.
>
> Section "Module"
> =A0 =A0 =A0 =A0 Load =A0"dbe"
> =A0 =A0 =A0 =A0 Load =A0"dri"
> =A0 =A0 =A0 =A0 Load =A0"extmod"
> =A0 =A0 =A0 =A0 Load =A0"glx"
> =A0 =A0 =A0 =A0 Load =A0"record"
> =A0 =A0 =A0 =A0 Load =A0"xtrap"
> =A0 =A0 =A0 =A0 Load =A0"freetype"
> =A0 =A0 =A0 =A0 Load =A0"speedo"
> =A0 =A0 =A0 =A0 Load =A0"type1"
> EndSection
>
> Section "Files"
> =A0 =A0 =A0 =A0 RgbPath =A0 =A0 =A0"/usr/X11R6/lib/X11/rgb"
> =A0 =A0 =A0 =A0 ModulePath =A0 "/usr/X11R6/lib/modules"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/misc/"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/TTF/"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/Speedo/"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/Type1/"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/CID/"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/75dpi/"
> =A0 =A0 =A0 =A0 FontPath =A0 =A0 "/usr/X11R6/lib/X11/fonts/100dpi/"
> EndSection
>
> Section "InputDevice"
> =A0 =A0 =A0 =A0 Identifier =A0"Keyboard1"
> =A0 =A0 =A0 =A0 Driver =A0 =A0 =A0"keyboard"
> EndSection
>
> Section "InputDevice"
> =A0 =A0 =A0 =A0 Identifier =A0"Mouse1"
> =A0 =A0 =A0 =A0 Driver =A0 =A0 =A0"mouse"
> =A0 =A0 =A0 =A0 Option =A0 =A0 =A0"Protocol" "auto"
> =A0 =A0 =A0 =A0 Option =A0 =A0 =A0"Device" "/dev/sysmouse"
> =A0=A0=A0=A0=A0=A0=A0=A0Option =A0 =A0 =A0"ZAxisMapping" =A0 =A0 =A0"4 5"
> EndSection
>
> Section "Monitor"
> =A0 =A0 Identifier =A0"hp 1825"
> =A0 =A0 HorizSync =A0 31.5 - 64.3
> =A0 =A0 VertRefresh 50-70
> EndSection
>
> Section "Device"
> =A0 =A0 Identifier =A0"Matrix G400"
> =A0 =A0 Driver =A0 =A0 =A0"mga"
> =A0 =A0 VideoRam =A0 =A016384
> EndSection
>
> Section "Screen"
> =A0 =A0 Identifier =A0"Screen 1"
> =A0 =A0 Device =A0 =A0 =A0"Matrix G400"
> =A0 =A0 Monitor =A0 =A0 "hp 1825"
> =A0 =A0 DefaultDepth 24
>
> =A0 =A0 Subsection "Display"
> =A0 =A0 =A0 =A0 Depth =A0 =A0 =A0 8
> =A0 =A0 =A0 =A0 Modes =A0 =A0 =A0 "1280x1024" "1024x768" "800x600" "640x4=
80"
> =A0 =A0 =A0 =A0 ViewPort =A0 =A00 0
> =A0 =A0 EndSubsection
> =A0 =A0 Subsection "Display"
> =A0 =A0 =A0 =A0 Depth =A0 =A0 =A0 16
> =A0 =A0 =A0 =A0 Modes =A0 =A0 =A0 "1280x1024" "1024x768" "800x600" "640x4=
80"
> =A0 =A0 =A0 =A0 ViewPort =A0 =A00 0
> =A0 =A0 EndSubsection
> =A0 =A0 Subsection "Display"
> =A0 =A0 =A0 =A0 Depth =A0 =A0 =A0 24
> =A0 =A0 =A0 =A0 Modes =A0 =A0 =A0 "1280x1024" "1024x768" "800x600" "640x4=
80"
> =A0 =A0 =A0 =A0 ViewPort =A0 =A00 0
> =A0 =A0 EndSubsection
> EndSection
>
> Section "ServerLayout"
> =A0 =A0 Identifier =A0"Simple Layout"
> =A0 =A0 Screen "Screen 1"
> =A0 =A0 InputDevice "Mouse1" "CorePointer"
> =A0 =A0 InputDevice "Keyboard1" "CoreKeyboard"
> EndSection
>
> Section "DRI"
> =A0 =A0 Mode 0666
> EndSection

=2D-=20
Geoff Glasson
g_glasson@wiredcity.com.au



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