[ltp] 3D acceleration on ThinkPad T42 (SOLVED!)

Alex Deucher linux-thinkpad@linux-thinkpad.org
Tue, 19 Dec 2006 09:46:21 -0500


On 12/19/06, Martin Steigerwald <Martin@lichtvoll.de> wrote:
> Am Dienstag 19 Dezember 2006 00:34 schrieb Alex Deucher:
>
> > ---------------------------------------------------------------------
> > martin@shambala:~> glxinfo | grep render
> > direct rendering: No
> >     GLX_ATI_pixel_format_float, GLX_ATI_render_texture
> > OpenGL renderer string: Mesa DRI R300 20060815 AGP 4x TCL
> > ---------------------------------------------------------------------
>
> [... bottom output omitted ...]
>
> > > So now anybody who can tell me the difference of these outputs? ;-)
> >
> > The top one is using indirect rendering (ie. sending openGL throught
> > the X server via GLX).  The indirect renderer is HW in this case
> > (AIGLX).  For some reason direct rendering is not working.  I guess
> > you have a lib problem with libGL or libdrm.  Maybe remnants of an old
> > fglrx install?
>
> Hello Alex,
>
> I made sure that kernel module "fglrx" is not loaded, "radeon" drm module
> is loaded and xorg.conf specifies "radeon" or "ati" as driver.
>
> Well obviously that was not enough: After "aptitude purge fglrx-control
> fglrx-driver fglrx-kernel-2.6.19.1-ck2-tp42-sws2-2.2.9 fglrx-kernel-src"
> (I think it was the fglrx-driver package as it contained some libgl
> diversion) and reboot I get:
>
> ---------------------------------------------------------------------
> martin@shambala:~> glxinfo | grep render
> libGL warning: 3D driver claims to not support visual 0x4b
> direct rendering: Yes
> OpenGL renderer string: Mesa DRI R300 20060815 AGP 4x TCL
> martin@shambala:~>
> glxgears -iacknowledgethatthistoolisnotabenchmark -printfps
> libGL warning: 3D driver claims to not support visual 0x4b
> 11164 frames in 5.0 seconds = 2232.725 FPS
> 13686 frames in 5.0 seconds = 2736.855 FPS
> 11915 frames in 5.0 seconds = 2382.880 FPS
> 13910 frames in 5.0 seconds = 2781.889 FPS
> 13934 frames in 5.0 seconds = 2786.779 FPS
> ---------------------------------------------------------------------
>
> Yeeeaaaah! ;-) Yes, I know glxgears is not benchmark, but this is really
> fine ;-). And it is not a bit of jerky now anymore, completely smooth
> now.
>
> I have about 65% of CPU utilitization at 1800 MHz... but these are in
> glxgears now, not in X - probably the price for insane 2700 fps? In
> standard glxgears window size X doesn't need more than 1-2% of CPU. If I
> resize it to a larger size, fps goes down, glxgears CPU utilitization
> goes down and X CPU utilization goes up.
>
> Bye, bye fglrx ;). When I find time I want document it a bit more in the
> ThinkWiki!
>
> BTW 3D acceleration also runs with Composite extension enabled - unlike
> with fglrx. But when I start kompmgr my desktop gets unusably slow... it
> was way faster (although still too slow) on my ThinkPad T23 with
> SuperSavage.

Does kompmgr use render or GLX for eye candy?  No one has written EXA
composite support for r3xx/r4xx radeons yet so render accel will be
slow.  However, if the compositing manager uses GLX it can use the 3D
engine directly using OpenGL.  Beryl and compiz do this so they will
be relatively fast on any hardware with 3D support.  However, they
require NPOT textures, so they will only work on hardware that
supports that.

Alex

>
> Thanks, Alex! Thank you other guys for all the help!
>
> Regards
> --
> Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
> GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>