Bug 325134 - [kwin_gles] Blur doesn't work under Mesa 9.2, fails with a "Failed to link shader" error.
Summary: [kwin_gles] Blur doesn't work under Mesa 9.2, fails with a "Failed to link sh...
Status: RESOLVED DUPLICATE of bug 324478
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 4.11.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-21 04:58 UTC by Alejandro Nova
Modified: 2013-09-21 15:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Nova 2013-09-21 04:58:41 UTC
[Please, handle this bug with care, since it could be a Mesa regression. Reporting on KWin end]

When I run kwin_gles --replace &, I get the following output. 

OpenGL vendor string:                   X.Org
OpenGL renderer string:                 Gallium 0.4 on AMD PALM
OpenGL version string:                  OpenGL ES 3.0 Mesa 9.2.0
OpenGL shading language version string: OpenGL ES GLSL ES 3.0
Driver:                                 R600G
GPU class:                              EVERGREEN
OpenGL version:                         3.0
GLSL version:                           3.0
Mesa version:                           9.2
Linux kernel version:                   3.12
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
kwin(6551): Failed to compile fragment shader: 
"0:2(14): error: no precision specified this scope for type `vec4'
0:4(13): error: no precision specified this scope for type `float'
0:5(13): error: no precision specified this scope for type `float'
0:6(13): error: no precision specified this scope for type `float'
0:7(13): error: no precision specified this scope for type `float'
0:11(7): error: no precision specified this scope for type `vec4'

kwin(6551): Failed to link shader: 
"error: program lacks a fragment shader

This began to happen after the mesa-9.2-0.15.20130723.fc19 build, when Fedora released mesa 9.2. Before that, and even with mesa-9.2-0.15.20130723.fc19, kwin_gles worked properly (but without v-sync, because of a bug with Mesa).

As you can see, my setup is: AMD E-450 with Radeon 6320, kernel 3.12 rc1, free drivers and Mesa 9.2, with the Fedora patch set. Since I'm using the free driver, support should be good.

Reproducible: Always

Steps to Reproduce:
1. Enable Blur.
2. On a Radeon system with Mesa 9.2 release, run kwin_gles --replace &
3. See an output like mine.
Actual Results:  
Blur doesn't work. Everything else works properly.

Expected Results:  
Blur works.

kwin_gles only. kwin with KWIN_OPENGL_INTERFACE=egl does not exhibit this behavior.
Comment 1 Martin Flöser 2013-09-21 06:42:11 UTC
 > [Please, handle this bug with care, since it could be a Mesa regression.
> Reporting on KWin end]
No, it's a known problem in KWin and I think we even had a bug report already 
open, but I cannot find it at the moment.
Comment 2 Thomas Lübking 2013-09-21 09:18:44 UTC

*** This bug has been marked as a duplicate of bug 324478 ***
Comment 3 Alejandro Nova 2013-09-21 15:54:16 UTC
First class support, as always. Thank you, guys.