On my Radeon HD 5770, upgrading from mesa-9.2.5 to either mesa-10.0.1 or mesa-git master introduces (in both versions) a corruption/flickering bug concerning wayland/weston EGL/GLESv2 clients. See http://www.youtube.com/watch?v=RQXE4h-E8PI for a relevant screen capture. It looks to me as if the glClear(GL_COLOR_BUFFER_BIT) call wasn't actually coming into effect; instead, previous (or random) color data lingers in the part of the frame buffer that isn't updated during rendering. The bug doesn't really manifest itself in a weston client that updates each and every pixel within each frame during rendering. setup: Arch Linux x86_64 (Linux 3.12.5), mesa-git (+ ati-dri-git & mesa-libgl-git). Bug also in 10.0.1 stable. wayland/weston 1.3.0/1.3.1 as well as git
Can you bisect?
*** Bug 72890 has been marked as a duplicate of this bug. ***
Possibly related to Bug 72863 and/or Bug 72854?
I had the the same issue and I bisected it to this commit http://cgit.freedesktop.org/mesa/mesa/commit/?h=10.0&id=e64633e8c3a5498998a45ab721bf80edca101cf5 (r600g,radeonsi: share r600_texture.c) As far as I can tell that commit changed the default tiling mode from LINEAR_ALIGNED to 2D. That change seems to cause this issue, because when I change the last return in r600_choose_tiling from: return RADEON_SURF_MODE_2D; to return RADEON_SURF_MODE_LINEAR_ALIGNED; It works correctly.
I suspect the problem is that fast colour clears are not resolved during buffer swaps on Wayland (linear buffers cannot use fast clears, which is why your r600_choose_tiling change works around the problem) and that something like commit 6349b3235cc07d396325863ece9ca6261daf8e77 ('st/egl: flush resources before presentation') needs to be done in src/gallium/state_trackers/egl/wayland/ as well.
Created attachment 91188 [details] [review] patch Yep, that seems to be the issue. The attached patch fixes the issue for me, but I'm not familiar with that code so I have no idea if this is the proper fix.
Looks like a good start at least. Please submit it to the mesa-dev / wayland-devel mailing list(s) for review.
commit c156d245258842c41d1ffac06a08ee7eeb45b33f Author: Martin Andersson <g02maran@gmail.com> Date: Thu Dec 26 10:33:28 2013 +0100 st/egl: Flush resources before presentation
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.