<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - KDE Konsole very slow scrolling with TearFree and QT graphics system native"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77436#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - KDE Konsole very slow scrolling with TearFree and QT graphics system native"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77436">bug 77436</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>Right, I don't have an explanation as to how it becomes backlogged, but that
seems to be the culprit behind the bad behaviour here.
This may help improve things in the meantime:
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 0b8af54..30adeb1 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -4295,6 +4295,11 @@ struct kgem_bo *kgem_create_2d(struct kgem *kgem,
bo = __kgem_bo_create_as_display(kgem, size, tiling, pitch);
if (bo)
return bo;
+
+ if (bucket >= NUM_CACHE_BUCKETS)
+ goto large_inactive;
+ else
+ goto search_inactive;
}
if (bucket >= NUM_CACHE_BUCKETS) {</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>