Bug 74316 - [NV92] Graphical corruption on KDE shutdown/restart/log out screen
Summary: [NV92] Graphical corruption on KDE shutdown/restart/log out screen
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: 10.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-01 12:39 UTC by AnAkkk
Modified: 2014-02-26 10:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
kernel log (47.89 KB, text/plain)
2014-02-01 12:39 UTC, AnAkkk
Details

Description AnAkkk 2014-02-01 12:39:22 UTC
Created attachment 93166 [details]
kernel log

When I try to shutdown/restart/log out of KDE, the window with the countdown opens and show up correctly, but the background is corrupted with random stuff such as windows/menus that were opened before, or even currently opened windows but totally reversed and/or at different places. 
Unfortunately, it doesn't look like I can take a screenshot while that screen is open.
It works fine with the proprietary driver.

Card: Nvidia 8800 GT
I am using mesa-git (as of commit 80bf1fbaf6bb3d9b7a8543ea764c6d19887ac0b8).
xf86-video-nouveau 1.0.10-2
Arch Linux
Comment 1 AnAkkk 2014-02-01 12:45:30 UTC
Same issue with ArchLinux mesa package:
mesa 10.0.2-1

I forgot to say that I have xorg server 1.15.
Comment 2 AnAkkk 2014-02-01 12:47:10 UTC
Sorry for multiple posting.
I am not sure why I mentionned mesa though, I guess it doesn't matter if it's a 2D bug.
Comment 3 AnAkkk 2014-02-01 13:01:15 UTC
More info:
The corruption only appears when the KDE desktop effect "Logout" is enabled. It is enabled by default.
Comment 4 AnAkkk 2014-02-14 18:09:36 UTC
Here's the error I get with MESA_DEBUG=1:
Mesa: User error: GL_INVALID_OPERATION in glBlitFramebufferEXT(bad src/dst multisample pixel formats)
Comment 5 Ilia Mirkin 2014-02-14 18:28:55 UTC
(In reply to comment #4)
> Here's the error I get with MESA_DEBUG=1:
> Mesa: User error: GL_INVALID_OPERATION in glBlitFramebufferEXT(bad src/dst
> multisample pixel formats)

The application is performing some invalid operation, and mesa is complaining about it. Not a driver bug. Could be a core mesa bug if it's incorrectly determining that the operation is invalid :)

Feel free to reopen if the KDE people determine that this really is a nouveau bug somehow.
Comment 6 AnAkkk 2014-02-16 00:54:39 UTC
According to kde developers, there may be a mesa or nouveau bug after all:

"Fredrik says, the configs should arrive with min. samples first, so this would be a MESA/nouveau bug.'

"It seems to prefer TrueColor over DirectColor (that's expected) over sample count sorting (may be intended), but even then 0x157 should apparently take precedence: 

0x153 24 tc 0 24 0 r . . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None 
0x157 24 tc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None 
0x1ae 24 dc 0 24 0 r y . 8 8 8 0 . . 0 0 0 0 0 0 0 0 0 None 

So given the sample count sorting is still supposed, there's a bug in either nouveau or MESA, it appears the double buffer support is ignored when sorting the list (so that 0x153 and 0x157 are assumed equal, 0x153 moved to front and 0x157 ignored from sorting) - but that's sth. for the MESA devs to say =)"

See https://bugs.kde.org/show_bug.cgi?id=330986#c41
Comment 7 AnAkkk 2014-02-16 00:56:11 UTC
Might be interesting as well:

https://git.reviewboard.kde.org/r/115762/
Comment 8 Emil Velikov 2014-02-17 23:49:17 UTC
Fredrik just posted a couple of patches [1] [2]. The first of which should resolve the problem.

[1] http://patchwork.freedesktop.org/patch/20458/
[2] http://patchwork.freedesktop.org/patch/20464/
Comment 9 AnAkkk 2014-02-21 18:46:34 UTC
I can confirm these patches fix my issue.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.