<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#c135">Comment # 135</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>Yup. :(

As a final stab in this direction, please try:

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 50a7da2..3058086 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -967,7 +967,7 @@ static bool __kgem_throttle(struct kgem *kgem)
         * too much and completely starve X. We will sleep again shortly,
         * and so catch up or detect the hang.
         */
-       if (ioctl(kgem->fd, DRM_IOCTL_I915_GEM_THROTTLE) == 0) {
+       if (drmIoctl(kgem->fd, DRM_IOCTL_I915_GEM_THROTTLE) == 0) {
                kgem->need_throttle = 0;
                return false;
        }</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>