OpenGL pipeline on Linux

Hello :slight_smile:

What are prerequisities needed to enable OpenGL pipeline on Linux? ATM when I start some Swing demo:

./java -Dsun.java2d.opengl=True -jar ../demo/jfc/SwingSet2/SwingSet2.jar

it gives me message:


sizeof(RADEONDRIRec) == 100, devPrivSize 100
Could not enable OpenGL pipeline for default config on screen 0

java -version shows


./java -version
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b60)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b60, mixed mode, sharing)

glxinfo | grep ‘Mesa|direct’


direct rendering: Yes
OpenGL renderer string: Mesa DRI Radeon 20050528 AGP 4x NO-TCL
OpenGL version string: 1.2 Mesa 6.3.2

Ubuntu Breezy 5.10, Radeon Mobility U1 (IGP 320M), ‘radeon’ driver

One note here - some time ago I was running Live version of Breezy beta version. I’ve installed Mustang build (not sure which version) and tested OpenGL pipeline with -Dsun.java2d.opengl=True switch. IIRC it was working - no message ‘Could not enable OpenGL…’

Greetz, Justin

It may not be related, but the “radeon” driver does not support accelerated 3D graphics.

You need the “fglrx” drivers for that. It’s non-free though, so you’ll probably find it in universe or multiverse or something

Hmm, too bad… Unfortunately fglrx doesn’t work with Radeon Mobility U1.

Anyway, I’m wondering - if I type ‘man radeon’ (documentation for radeon driver :p) there is a list of all supported gfx cards. For few cards there is an info that it is only 2D driver, e.g.:

RV410       Radeon X700, M26 (2d only)

But IGP 320M isn’t one of them

RS100       Radeon IGP320(M)

I suppose I must ask Xorg folks about it.

In general ATI cards are a mess under Limux. Ive never sucessfully enabled accelerated3D on one. MVidia Linux support is much better.

An easy way to see if you have accelerated 3D under linux is to run glxgears. It should show you a frame rate in the thousands. If you get oen in the hundreds or lower the n you have no 3D hardware support.

Also, bear in mind that newer versions of glxgears will not show the fps unless you use some flag like “-iacceptthatthisisnotaprofiler”. Those crazy developers! :-\