[Bug 77436] KDE Konsole very slow scrolling with TearFree and QT graphics system native

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 17 01:06:39 PDT 2014


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

--- Comment #27 from Chris Wilson <chris at chris-wilson.co.uk> ---
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index a840ed6..24841dd 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -4194,6 +4194,12 @@ static void __kgem_bo_make_scanout(struct kgem *kgem,
            do_ioctl(kgem->fd, DRM_IOCTL_MODE_ADDFB, &arg) == 0) {
                bo->scanout = true;
                bo->delta = arg.fb_id;
+
+               /* Pre-emptively move the object into the mappable
+                * portion to avoid rebinding later. */
+               bo->map__gtt = __kgem_bo_map__gtt(kgem, bo);
+               if (bo->map__gtt)
+                       *(uint32_t *)bo->map__gtt = 0;
        }
 }

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


More information about the intel-gfx-bugs mailing list