[Bug 105720] screen corruption using SNA and TearFree on Intel GeminiLake

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 29 21:55:01 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105720

--- Comment #26 from Chris Wilson <chris at chris-wilson.co.uk> ---
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)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20180329/126e5a7a/attachment.html>


More information about the intel-gfx-bugs mailing list