[ltp] Re: Fwd: Working 3D acceleration on IBM ThinkPad T23 ;-)

Alex Deucher linux-thinkpad@linux-thinkpad.org
Fri, 6 Jan 2006 09:04:14 -0500


On 1/6/06, Eric Van Buggenhaut <eric@sindominio.net> wrote:
> On Fri, Jan 06, 2006 at 01:20:53PM +0100, Eric Van Buggenhaut wrote:
> > On Fri, Jan 06, 2006 at 11:23:19AM +0100, Martin Steigerwald wrote:
> > > Am Freitag 06 Januar 2006 01:04 schrieb Eric Van Buggenhaut:
> > >
> > > > Thanks for the details. Do you know what I have to do after install=
ing
> > > > libgl1-mesa-dri to have X using the r300_dri.so module ?
> > >
> > > Hello Eric,
> > >
> > > almost everything has been said in this thread already:
> > >
> > > Run "glxgears" and save its output somewhere, if you want to find out=
 the
> > > difference between 3D acceleration or no 3D acceleration.
> > >
> > > Have a kernel with savage DRM module. Since Linux 2.6.14 its in the
> > > mainstream kernel source. You can use the official debian sid/etch ke=
rnel
> > > packages or create your own kernel package. If you happen to have a I=
BM
> > > ThinkPad T23 I can give you a suitable config ;-) and instructions to=
 get
> > > it set up with Software Suspend 2 ;-), but I also have a config which
> > > only uses software suspend as in the kernel.
> > >
> > > Have X.org 6.9 from sid (there is also a backport for sarge users alr=
eady:
> > > http://www.backports.org).
> > >
> > > Install the savage DRI driver, either from the snapshot archive or ju=
st
> > > install the package libgl1-mesa-dri ;-)
> > >
> > > Make sure the DRI module is loaded in /etc/X11/xorg.conf
> > >
> > > Section "Module"
> > > [...]
> > >         Load    "dri"
> > > [...]
> > > EndSection
> > >
> > > Restart X.org and try
> > >
> > > glxinfo | grep -i direct
> > >
> > > It should return:
> > > direct rendering: Yes
> > >
> > > When it gives a segmentation fault, reboot your machine completely an=
d try
> > > again.
> > >
> > > Try "glxgears". It should report a higher framerate now.
> > >
> >
> > Working now, thanks a lot ! I get this:
> >
> > [eric@atto:~]$ glxinfo |grep -i direct
> > *********************************WARN_ONCE*****************************=
****
> > File r300_state.c function r300Enable line 456
> > TODO - double side stencil !
> > ***********************************************************************=
****
> > No ctx->FragmentProgram._Current!!
> > direct rendering: Yes
> >
> > [eric@atto:~]$ [eric@atto:~]$ glxgears
> > *********************************WARN_ONCE*****************************=
****
> > File r300_state.c function r300Enable line 456
> > TODO - double side stencil !
> > ***********************************************************************=
****
> > No ctx->FragmentProgram._Current!!
> > *********************************WARN_ONCE*****************************=
****
> > File r300_render.c function r300_get_num_verts line 188
> > user error: Need more than 2 vertices to draw primitive QS !
> > ***********************************************************************=
****
> > 3902 frames in 5.0 seconds =3D 780.400 FPS
> > 4430 frames in 5.0 seconds =3D 886.000 FPS
> > 4433 frames in 5.0 seconds =3D 886.600 FPS
> >
> > Is this a reasonable rate ?
> >
> > Regards,
> >
>
> I guess I messed things up, acceleration is gone now and I can't get it
> back :((


try running:
LIBGL_DEBUG=3Dverbose glxinfo

and see what's wrong.  also check your X server log to see if direct
rendering is enabled.

this page may also be helpful:
http://dri.freedesktop.org/wiki/DriTroubleshooting

Alex

>
> [eric@atto:~]$ glxinfo |grep -i render
> direct rendering: No
> OpenGL renderer string: Mesa GLX Indirect
>
>
> I just restarted X and it's gone... I probably changed some packages
> on the system and broke the good config. Now I'm lost, I can't direct
> rendering either with:
>
> ii  libgl1-mesa-dri 6.3.2-2
> rc  xlibmesa-gl     6.9.0.dfsg.1-1
> rc  xlibmesa-dri    6.9.0.dfsg.1-1
> ii  xlibmesa-glu    6.8.2-10
>
> installed, nor with
>
> rc  libgl1-mesa-dri 6.3.2-2
> ii  xlibmesa-dri    6.9.0.dfsg.1-1
> ii  xlibmesa-gl     6.9.0.dfsg.1-1
> ii  xlibmesa-glu    6.8.2-10
>
> I have to add that I didn't touch /etc/X11/xorg.conf
>
> At which point did I go wrong ?
>
>
> --
> Eric VAN BUGGENHAUT
> Eric.VanBuggenhaut@AdValvas.be
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>