Bug 315607 - kwin_gles compositing fails w/ OpenGL backend
Summary: kwin_gles compositing fails w/ OpenGL backend
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 4.10.0
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-21 23:29 UTC by Artem Vorotnikov
Modified: 2013-02-22 11:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Vorotnikov 2013-02-21 23:29:56 UTC
kwin_gles is unable to use compositing if I have OpenGL backend (Qt Graphics System setting makes no difference). XRender works fine.

artem@artem-Lenovo-U410:~$ kwin_gles --replace
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
kwin(12769) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_blur"  is not supported 
kwin(12769) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_startupfeedback"  is not supported 
kwin(12769) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_coverswitch"  is not supported 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
artem@artem-Lenovo-U410:~$ QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
libEGL warning: failed to create a pipe screen for i965
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL version string:                  OpenGL ES 3.0 Mesa 9.2-devel
OpenGL shading language version string: OpenGL ES GLSL ES 3.0
Driver:                                 Intel
GPU class:                              IvyBridge
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           9.2
X server version:                       1.13.1
Linux kernel version:                   3.7
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin(12780): Failed to compile fragment shader:                                 
"0:12(36): error: invalid type `sampler3D' in declaration of `u_ccLookupTexture'
0:27(47): error: `u_ccLookupTexture' undeclared
0:0(0): error: no matching function for call to `texture3D(, vec3)'
0:27(87): error: type mismatch

kwin(12780): Failed to initialize compositing, compositing disabled

Reproducible: Always




Lenovo ThinkPad U410 (Intel Core i5, Intel Optimus)
Kubuntu 12.10 x86-64
KDE 4.10
Fresh Xorg git crack courtesy of xorg-edgers PPA
Intel KMS + nvidia-current 313

If I start kwin_gles vanilla:

artem@artem-Lenovo-U410:~$ kwin_gles --replace
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
kwin(12769) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_blur"  is not supported 
kwin(12769) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_startupfeedback"  is not supported 
kwin(12769) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_coverswitch"  is not supported 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
artem@artem-Lenovo-U410:~$ QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
libEGL warning: failed to create a pipe screen for i965
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL version string:                  OpenGL ES 3.0 Mesa 9.2-devel
OpenGL shading language version string: OpenGL ES GLSL ES 3.0
Driver:                                 Intel
GPU class:                              IvyBridge
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           9.2
X server version:                       1.13.1
Linux kernel version:                   3.7
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin(12780): Failed to compile fragment shader:                                 
"0:12(36): error: invalid type `sampler3D' in declaration of `u_ccLookupTexture'
0:27(47): error: `u_ccLookupTexture' undeclared
0:0(0): error: no matching function for call to `texture3D(, vec3)'
0:27(87): error: type mismatch

kwin(12780): Failed to initialize compositing, compositing disabled


If I use NVIDIA discrete graphics (start kwin_gles via optirun)


artem@artem-Lenovo-U410:~$ optirun kwin_gles --replace
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
kwin(13037) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_blur"  is not supported 
kwin(13037) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_startupfeedback"  is not supported 
kwin(13037) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_coverswitch"  is not supported 
libEGL warning: failed to create a pipe screen for i965
OpenGL vendor string:                   
OpenGL renderer string:                 
OpenGL version string:                  
OpenGL shading language version string: 
Driver:                                 Unknown
Driver version:                         199.0.198
GPU class:                              Unknown
OpenGL version:                         0.0
GLSL version:                           0.0
X server version:                       1.13.1
Linux kernel version:                   3.7
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin(13037) KWin::OpenGLBackend::setFailed: Creating the OpenGL rendering failed:  "Required extension GL_OES_EGL_image not found, disabling compositing" 
kwin(13037): Failed to initialize compositing, compositing disabled
Comment 1 Martin Flöser 2013-02-22 06:54:41 UTC

*** This bug has been marked as a duplicate of bug 315419 ***
Comment 2 Artem Vorotnikov 2013-02-22 10:10:46 UTC
(In reply to comment #1)
> 
> 
> *** This bug has been marked as a duplicate of bug 315419 ***

This bug happens w/o colour correction as well. Even with all options ticked off compositing fails.
Comment 3 Martin Flöser 2013-02-22 10:50:44 UTC
> This bug happens w/o colour correction as well. Even with all options ticked
> off compositing fails.
which bug, your report mixes various things. E.g. you tried to run gles on 
NVIDIA, which is impossible and for the IvyBridge it is exactly the same as 
the duplicate. If you are facing problems with IvyBridge and color correction 
turned off, I bet it's a different bug.
Comment 4 Artem Vorotnikov 2013-02-22 10:54:15 UTC
Ivy Bridge fail w/ *and* w/o colour correction is what bothers me. New bug here.
Comment 5 Thomas Lübking 2013-02-22 11:12:35 UTC
please disable color correction then and run kwin gles on the intel chip.

post the output or backtrace in case.
you also may want to strace & grep to ensure that no nvidia lib gets used at that time (for it will not work)
Comment 6 Artem Vorotnikov 2013-02-22 11:56:49 UTC
Now this is weird. I upgraded to Kubuntu 13.04 Alpha 2 and OpenGL backend started working again. Closing this in hopes the error does not return.