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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 26 16:32:47 UTC 2018


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

--- Comment #9 from Chris Wilson <chris at chris-wilson.co.uk> ---
Variant of earlier test, force TearFree to use a new(ish) scanout on every
frame:

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index e7bf6cab..409bb9bf 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1785,7 +1785,7 @@ static bool wait_for_shadow(struct sna *sna,
        }

        bo = sna->mode.shadow;
-       if (flip_active) {
+       if (flip_active || 1) {
                bo = kgem_create_2d(&sna->kgem,
                                    pixmap->drawable.width,
                                    pixmap->drawable.height,

It is still pulling the scanout from a cache (or else we need to clflush
everytime) but we now have a full frame delay before reuse, and we are forced
to do a fullscreen copy everytime.

-- 
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/20180326/f83eca7d/attachment.html>


More information about the intel-gfx-bugs mailing list