<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - i915 SNA choppy graphics"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57937">57937</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>i915 SNA choppy graphics
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>wes_zilla@yahoo.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.7 (2011)
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=71071" name="attach_71071" title="Patch that fixes the choppyness.">attachment 71071</a> <a href="attachment.cgi?id=71071&action=edit" title="Patch that fixes the choppyness.">[details]</a></span>
Patch that fixes the choppyness.

Description
===========

In version 2.20.10 and later, I noticed that some graphics operations were not
as smooth as they were in 2.20.9.  It isn't all that severe, but it was enough
to annoy me, and eventually make me track down the source.

System environment
==================

* chipset: i915
* system arch: 64-bit
* xf86-video-intel: 2.20.10 has the issue; above patch fixes it.
* xserver: 1.13.0
* mesa: 9.0
* libdrm: 2.4.40
* kernel: 3.5.6
* distribution: Arch linux
* Machine: Lenovo X220T
* Display connector: HDMI


How to reproduce it
===================

I use compiz as a stand-alone window manager, and when using the "expo"
feature to zoom out and see all desktops, the graphics are noticeably choppy.
Other operations (the "scale" plugin, and even sliding to another desktop) are
similarly choppy, but the expo feature makes me notice it the most.

How to fix(?) it
================

The source is commit 45b351412b.  If you revert that commit, things are nice
and smooth again.  I applied the following patch to the master branch of git
(as of 12/6/2012; commit is 0040eb84c9187):

--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1437,7 +1437,7 @@ static void kgem_bo_clear_scanout(struct kgem *kgem,
struct kgem_bo *bo)
     bo->reusable = true;

     if (kgem->has_llc &&
-        !gem_set_cacheing(kgem->fd, bo->handle, SNOOPED))
+        gem_set_cacheing(kgem->fd, bo->handle, SNOOPED))
         bo->reusable = false;
 }

And the problem was resolved.  I know *nothing* about the driver, and have no
idea why this helps, but it does.  I used the following configure flags:

./configure --prefix=/usr --enable-dri \
    CFLAGS="-march=native -O3 -pipe --param=ssp-buffer-size=4" \
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"

But I note that the same behavior is there with -O2.</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>