Bug 294468 - No blur with kwin_gles
Summary: No blur with kwin_gles
Status: RESOLVED DUPLICATE of bug 324478
Alias: None
Product: kwin
Classification: Plasma
Component: scene-opengl (show other bugs)
Version: 4.8.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-20 02:01 UTC by Ben Gouhier
Modified: 2014-11-04 10:56 UTC (History)
2 users (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 Ben Gouhier 2012-02-20 02:01:29 UTC
Version:           4.8.0 (using KDE 4.8.0) 
OS:                Linux

While blur effect is working with classic kwin, I have no blur effect when launching kwin_gles --replace. 

Reproducible: Always

Steps to Reproduce:
Launch kwin_gles --replace.

Actual Results:  
Zones that should be blur are not (panel, plasma pop-ups)

Expected Results:  
Zones should be blur !

This might be related to my hardware (ati radeon xpress 200m) which is very old.
Blur effect make the graphics quite sluggish anyway, but I had a much better experience with kwin_gles compared to kwin, even without blur, so it might be good even with gles blur.
The issue is not present on another system with intel G965 graphics.

cf http://paste.kde.org/425612/ for traces of kwin --replace nd kwin_gles --replace
Comment 1 Martin Flöser 2012-02-20 06:52:57 UTC
can you provide your glxinfo?

Please note: gles requires hardware capable of OpenGL 2. Unlike normal KWin 
there are no checks whether the hardware supports it, it is assumed that the 
gles backend is only operated on compatible hardware.

In normal KWin the blur effect falls back to an OpenGL 1 compatible rendering 
path which is not available in kwin_gles.
Comment 2 Ben Gouhier 2012-02-20 07:26:28 UTC
I think my card is hardly compatible with OpenGL 2.1 although it is written in glxinfo. Anyway, here it is: 

http:://paste.kde.org/425642/
Comment 3 Martin Flöser 2012-02-20 07:34:46 UTC
It says Gallium 0.4 on ATI RS480 with OpenGL 2.1 on an r300 - in general 
capable of doing gles with some restrictions.

You are already on Mesa 8 which I have not yet tested. Do you remember whether 
it worked with Mesa 7.8?
Comment 4 Ben Gouhier 2012-02-20 07:37:39 UTC
I dont think I tested kwin_gles on mesa 7.x. I cant revert to 7.11.2 easily would it be alright?
Comment 5 Ben Gouhier 2012-02-20 07:38:03 UTC
Sorry, i CAN revert.
Comment 6 Martin Flöser 2012-02-20 07:42:29 UTC
> Do you remember whether it worked with Mesa 7.8?
meh too early in the morning - I meant 7.11
Comment 7 Martin Flöser 2012-02-20 07:43:29 UTC
> I dont think I tested kwin_gles on mesa 7.x. I cant revert to 7.11.2 easily
> would it be alright?
If it is not too much work it could help to at least rule out changes in 8.0 
triggering it.
Comment 8 Ben Gouhier 2012-02-20 07:45:56 UTC
Ok, I just did the revert to 7.11.2 and blur_gles is working great. Not even sluggish (to my card standards). That is quite an improvement from classic kwin I must say.
Let me know if I can do something more to help finding what(s wrong with mesa 8.0.
Comment 9 Martin Flöser 2012-02-20 07:53:21 UTC
> Ok, I just did the revert to 7.11.2 and blur_gles is working great. Not even
> sluggish (to my card standards). That is quite an improvement from classic
> kwin I must say.
> Let me know if I can do something more to help finding what(s wrong with
> mesa 8.0.
You could report a bug on bugs.freedesktop.org against the r300 driver. Though 
I doubt that would help a lot as the mesa developers in general need a 
testcase.
Comment 10 Ben Gouhier 2012-02-20 08:01:58 UTC
Ok. Is there a way for me to workaround this (or to make kwin workaround this) or will I definitly lose blur upon upgrading to 8.0?
Comment 11 Martin Flöser 2012-02-20 08:09:02 UTC
> Ok. Is there a way for me to workaround this (or to make kwin workaround
> this) or will I definitly lose blur upon upgrading to 8.0?
I have not yet tested Mesa 8.0 (will take some time till it is in Debian 
testing) and doubt there is much hope.

Personally I expected that Mesa 8.0 is full of regressions given that they now 
"support" OpenGL 3.
Comment 12 Thomas Lübking 2012-02-20 08:21:10 UTC
wild guess: indirections (or other limits) are now too restricted :-)

glxinfo -l (attach or paste, it's much)

(does it work with the lowest blur strength?)
Comment 13 Ben Gouhier 2012-02-20 09:04:32 UTC
output of glxinfo -l :
http://paste.kde.org/425648/
Comment 14 Ben Gouhier 2012-02-20 09:08:51 UTC
And it is not working with the lowest blur strenght.
Comment 15 Ben Gouhier 2012-02-20 09:37:22 UTC
Sorry, I sent you a glxinfo -l with mesa 7.11 ....
Here is the one with mesa 8:
http://paste.kde.org/425660/
Comment 16 Thomas Lübking 2012-02-20 15:26:17 UTC
gah, blast - (afaics) it only prints the _ARB limits 

@Martin and anyone:
Do you know whether there is some sort of glesinfo or any glxinfo which links libGLES?
Should we just write one?
Comment 17 Ben Gouhier 2012-03-19 00:19:03 UTC
Mmm the problem is not present when I use a USB installation 100% identical on the same system. As a matter of fact I reinstalled Arch from scratch ad now its working fine :/

Looks like the issue disappeared as strangely as it appeared...
Comment 18 Thomas Lübking 2012-03-19 00:22:02 UTC
(there's been no known fix to resolve this, heisenbug ;-)
Comment 19 son_of_the_osiris 2013-10-07 09:25:34 UTC
I have radeon 5770HD and this effect still dont work even with current kernel-git,libdrm-git,mesa-git.
Comment 20 Thomas Lübking 2013-10-07 10:51:38 UTC
(In reply to comment #19)
> I have radeon 5770HD and this effect still dont work even with current
> kernel-git,libdrm-git,mesa-git.

This bug here is about kwin_gles, *not* kwin - sure you're using it?

If not, open a new bug. Attach the output of "qdbus org.kde.kwin /KWin supportInformation" in any case.
Comment 21 son_of_the_osiris 2013-10-07 13:09:16 UTC
Yes I am using kwin_gles by export KDEWM=kwin_gles
Below results of "qdbus org.kde.kwin /KWin supportInformation"

Version
=======
KWin version: 4.11.2
KDE SC version (runtime): 4.11.2
KDE SC version (compile): 4.11.2
Qt Version: 4.8.5

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false
glCoreProfile: true
glPreferBufferSwap: 101

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1
Screen 0 Geometry: 0,0,1600x1200

Decoration
==========
Current Plugin: kwin3_aurorae
Shadows: yes
Alpha: yes
Announces Alpha: yes
Tabbing: no
Frame Overlap: yes
Blur Behind: yes

Compositing
===========
Qt Graphics System: raster
Compositing is active
Compositing Type: OpenGL ES 2.0
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD JUNIPER
OpenGL version string: OpenGL ES 3.0 Mesa 9.3.0-devel (git-289d928)
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.3
X server version: 1.14.99
Linux kernel version: 3.12
Direct rendering: yes
Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
kwin4_effect_zoom
kwin4_effect_slidingpopups
kwin4_effect_login
kwin4_effect_wobblywindows
kwin4_effect_minimizeanimation
kwin4_effect_scalein
kwin4_effect_slide
kwin4_effect_desktopgrid
kwin4_effect_translucency
kwin4_effect_magiclamp
kwin4_effect_glide
kwin4_effect_maximize
kwin4_effect_fade
kwin4_effect_sheet
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_dialogparent
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_screenedge
kwin4_effect_startupfeedback
kwin4_effect_kscreen

Currently Active Effects:
-------------------------
kwin4_effect_blur

Effect Settings:
----------------
kwin4_effect_zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

kwin4_effect_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_login:

kwin4_effect_wobblywindows:
stiffness: 0.15
drag: 0.8
moveFactor: 0.1
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveEffectEnabled: true
openEffectEnabled: false
closeEffectEnabled: false
moveWobble: true
resizeWobble: true

kwin4_effect_minimizeanimation:

kwin4_effect_scalein:

kwin4_effect_slide:

kwin4_effect_desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

kwin4_effect_translucency:

kwin4_effect_magiclamp:
animationDuration: 250

kwin4_effect_glide:
duration: 350
effect: 0
angle: -90

kwin4_effect_maximize:

kwin4_effect_fade:

kwin4_effect_sheet:
duration: 500

kwin4_effect_highlightwindow:

kwin4_effect_taskbarthumbnail:

kwin4_effect_dialogparent:

kwin4_effect_presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0
dragToClose: false

kwin4_effect_blur:
blurRadius: 7
cacheTexture: true

kwin4_effect_logout:
useBlur: true

kwin4_effect_dashboard:
brightness: 0.5
saturation: 0.5
blur: false

kwin4_effect_screenedge:

kwin4_effect_startupfeedback:

kwin4_effect_kscreen:
Comment 22 Thomas Lübking 2013-10-07 16:59:37 UTC
(In reply to comment #21)
> Yes I am using kwin_gles by export KDEWM=kwin_gles

Ok, that's then very most likely bug #325134 (the effect loads but you'll likely find a error on GLSL compiling) - not this bug, though.
In case it's not: plasma-desktop occasionally doesn't initially get that blurring is available - pot. race condition. Suspending/resuming compoising (Shift+Alt+F12 would then restore it)
Comment 23 son_of_the_osiris 2013-10-07 17:18:57 UTC
> Suspending/resuming compoising
> (Shift+Alt+F12 would then restore it)

Unfortunately still no blur effect.
Comment 24 Thomas Lübking 2013-10-07 17:28:15 UTC
(In reply to comment #23)
> Unfortunately still no blur effect.

Yeah... no ... it's as mentioned very likely bug #325134 (closed as dupe only the actual bug is there and a review request pending)
If you want to knwo for sure, run "kdebugdialog", enable "1212 (KWin)" and run "kwin --replace" from konsole - you should see a GLSL compilation error. No compiled shader -> no blurring.
Comment 25 Cezar "ikari" Pokorski 2014-11-04 10:54:35 UTC
I have the same issue with a nVidia Quadro 3000M card on nouveau 
Where does the kdebugdialog-enabled debug go?

my supportInformation: http://pastebin.com/8BFqDnE2
Comment 26 Thomas Lübking 2014-11-04 10:56:03 UTC

*** This bug has been marked as a duplicate of bug 324478 ***