<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - [GM45] Video corruption on wide desktop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=65099#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - [GM45] Video corruption on wide desktop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=65099">bug 65099</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Looks like a pending flip comes in after changing the fb size, yet another
variant of the same race as in the kernel.

Can you please try:

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 2d59831..9b324e2 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -2686,6 +2686,7 @@ sna_mode_resize(ScrnInfoPtr scrn, int width, int height)
                visit.new = sna->front;
                TraverseTree(root(screen), sna_visit_set_window_pixmap,
&visit);
                assert(screen->GetWindowPixmap(root(screen)) == sna->front);
+               sna_dri_destroy_window(root(screen));
        }
        screen->SetScreenPixmap(sna->front);
        assert(screen->GetScreenPixmap(screen) == sna->front);</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>