GLES again

Sebastian Kügler sebas at kde.org
Wed Aug 17 14:56:36 UTC 2011


Hey,

Good progress, but no cigar quite yet.

On Tuesday, August 16, 2011 11:01:40 Sebastian Kügler wrote:
> > > - Linker problem during package build:
> > > 
> > > /usr/lib/libgbm.so.1: undefined reference to `gbm_dri_backend'
> > > collect2: ld returned 1 exit status
> > > make[2]: *** [kwin/kwin] Error 1
> > 
> > Strange, I do not link at this at all.
> > martin at martin-desktop:~$ ldd /opt/kde/bin/kwin_gles | grep gbm
> > martin at martin-desktop:~$
> > 
> > > This works when building from source, but not during packages. (Source
> > > is the  same, I've packaged the code from the same git clone I've
> > > built locally.) I'm quite puzzled here, maybe someone has a pointer
> > > where to start looking?
> > 
> > I think the gbm is used by mesa. Can you try building Mesa without it?
> 
> I haven't found an option to get rid of it in Mesa, but someone who had a
> similar problem with the linking. I've tried updating to master, but got
> into dependency hell which I've not left behind me yet.

libgpm is needed by the GLES stuff, so we couldn't get rid of it.

Last night, I've updated the Mesa package to the 7.11 tag from Git, and along 
with it some devel X packages. Mesa 7.11 needed a bunch of build fixes against 
llvm 3.0, but in the end it built, and I'm now able to build kwin on top of 
these packages. They're in the KDE:Active repo. On my laptop, GLES seems to 
work (here kwin is built from master):

OpenGL vendor string:                   Tungsten Graphics, Inc
OpenGL renderer string:                 Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string:                  OpenGL ES 2.0 Mesa 7.11
OpenGL shading language version string: OpenGL ES GLSL ES 1.0.16
Driver:                                 Intel
GPU class:                              i965
OpenGL version:                         2.0
GLSL version:                           1.0.16
Mesa version:                           7.11
X server version:                       1.9.3
Linux kernel version:                   3.0.1
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   limited


On the ExoPC, it's enabled, but doesn't work (this is branch, though), 
apparently due to a lack of shaders:

OpenGL vendor string:                   Tungsten Graphics, Inc
OpenGL renderer string:                 Mesa DRI Intel(R) IGD x86/MMX/SSE2
OpenGL version string:                  OpenGL ES 2.0 Mesa 7.11
OpenGL shading language version string: OpenGL ES GLSL ES 1.0.16
Driver:                                 Intel
GPU class:                              i915/i945
OpenGL version:                         2.0
GLSL version:                           1.0.16
Mesa version:                           7.11
X server version:                       1.9.3
Linux kernel version:                   3.0.1
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           limited
Texture NPOT support:                   yes
kwin(5457): Shaders are not supported 
kwin(5457): Shaders not valid, ES compositing not possible 
kwin(5457): Failed to initialize compositing, compositing disabled 
kwin(5457): Consult http://techbase.kde.org/Projects/KWin/4.0-release-
notes#Setting_up 

Is there a workaround for this, or do hardware or driver simply not allow 
using GLES on this machine?

Packages from master are being built, so we can test this at runtime.

Cheers,
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Active mailing list