<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - screen corruption using SNA and TearFree on Intel GeminiLake"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105720#c26">Comment # 26</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - screen corruption using SNA and TearFree on Intel GeminiLake"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105720">bug 105720</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>I doubt it'll be too useful, but you might see something in the pattern:

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 7fccb508..b5f569ed 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1891,6 +1891,20 @@ static bool wait_for_shadow(struct sna *sna,
                                           
region_num_rects(&sna->mode.shadow_region),
                                            0))
                        ERR(("%s: copy failed\n", __FUNCTION__));
+
+               sna_blt_fill_boxes(sna, GXcopy,
+                                  bo, pixmap->drawable.bitsPerPixel,
+                                  0x0000ff00,
+                                  region_rects(&sna->mode.shadow_region),
+                                  region_num_rects(&sna->mode.shadow_region));
+       }
+
+       if (RegionNotEmpty(&sna->mode.shadow_cancel)) {
+               sna_blt_fill_boxes(sna, GXcopy,
+                                  bo, pixmap->drawable.bitsPerPixel,
+                                  0x00ff00ff,
+                                  region_rects(&sna->mode.shadow_cancel),
+                                  region_num_rects(&sna->mode.shadow_cancel));
        }

        if (priv->cow)</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>