Bug 37781 - Major redraw/flicker issues on rv350 after exiting fullscreen app with compiz running
Summary: Major redraw/flicker issues on rv350 after exiting fullscreen app with compiz...
Status: CLOSED DUPLICATE of bug 35452
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: Other All
: high major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 02:01 UTC by Scott Moreau
Modified: 2011-05-31 04:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Scott Moreau 2011-05-31 02:01:55 UTC
With default packages in ubuntu natty 11.04, there is a problem where running and exiting a fullscreen application with compiz running causes major redraw/refresh flickering issues. They go away after restarting compiz, but start again reliably after exiting any fullscreen GL app. Here are the bisect results:

2a95568f64a6641a49a2d4855272e9be2ac2db6d is the first bad commit
commit 2a95568f64a6641a49a2d4855272e9be2ac2db6d
Author: Kenneth Graunke <kenneth@whitecape.org>
Date:   Wed May 11 07:54:57 2011 -0700

    i965: Avoid register coalescing away MATH workarounds on Ivybridge.
    
    The MATH instruction cannot handle source modifiers, even on Gen7.
    So, apply this workaround for Sandybridge on Ivybridge as well.
    
    Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
    Reviewed-by: Eric Anholt <eric@anholt.net>

:040000 040000 9cb73cbd09661d6ca745d42fa4aac07963d439b2 2b1804644fe873d2b054645c8e8d5a435d3cbe75 M	src


As a side note, the problem is actually worse in mesa current master, where it does not require triggering, but instead is flickering right after X/compiz start the first time. I plan to bisect between the problem commit here and master next to find out what causes it to get worse.
Comment 1 Scott Moreau 2011-05-31 02:05:51 UTC
I probably should mention this is with RV350..
Comment 2 Michel Dänzer 2011-05-31 02:34:43 UTC
(In reply to comment #2)
> With default packages in ubuntu natty 11.04, there is a problem where running
> and exiting a fullscreen application with compiz running causes major
> redraw/refresh flickering issues. They go away after restarting compiz, but
> start again reliably after exiting any fullscreen GL app.

Sounds like bug 35452.


> Here are the bisect results:
> 
> 2a95568f64a6641a49a2d4855272e9be2ac2db6d is the first bad commit
> commit 2a95568f64a6641a49a2d4855272e9be2ac2db6d
> Author: Kenneth Graunke <kenneth@whitecape.org>
> Date:   Wed May 11 07:54:57 2011 -0700
> 
>     i965: Avoid register coalescing away MATH workarounds on Ivybridge.

As Dave Airlie pointed out on IRC, that commit can't possibly have any effect on r300g.


> As a side note, the problem is actually worse in mesa current master, where it
> does not require triggering, but instead is flickering right after X/compiz
> start the first time.

Sounds like a different problem. Try current Git again first, there have been some fixes for intermittent Gallium texture format related regressions.
Comment 3 Scott Moreau 2011-05-31 03:55:21 UTC
On Tue, May 31, 2011 at 3:34 AM, <bugzilla-daemon@freedesktop.org> wrote:

> https://bugs.freedesktop.org/show_bug.cgi?id=37781
>
> --- Comment #2 from Michel Dänzer <michel@daenzer.net> 2011-05-31 02:34:43
> PDT ---
> (In reply to comment #2)
> > With default packages in ubuntu natty 11.04, there is a problem where
> running
> > and exiting a fullscreen application with compiz running causes major
> > redraw/refresh flickering issues. They go away after restarting compiz,
> but
> > start again reliably after exiting any fullscreen GL app.
>
> Sounds like bug 35452.
>
Yes, it does.

>
>
> > Here are the bisect results:
> >
> > 2a95568f64a6641a49a2d4855272e9be2ac2db6d is the first bad commit
> > commit 2a95568f64a6641a49a2d4855272e9be2ac2db6d
> > Author: Kenneth Graunke <kenneth@whitecape.org>
> > Date:   Wed May 11 07:54:57 2011 -0700
> >
> >     i965: Avoid register coalescing away MATH workarounds on Ivybridge.
>
> As Dave Airlie pointed out on IRC, that commit can't possibly have any
> effect
> on r300g.
>
Well the md5sums were different from the previous commit but I digress.

>
>
> > As a side note, the problem is actually worse in mesa current master,
> where it
> > does not require triggering, but instead is flickering right after
> X/compiz
> > start the first time.
>
> Sounds like a different problem. Try current Git again first, there have
> been
> some fixes for intermittent Gallium texture format related regressions.
>
Now that I know the problem occurs intermittently (depending whether the
frame fullscreen window exits on is odd) and see that disabling pageflipping
prevents the issue from happening, I do believe it's most likely the same as
the bug you mentioned. This should probably be closed as invalid.
Comment 4 Scott Moreau 2011-05-31 04:09:18 UTC

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


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.