<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><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> changed
              <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - Corruption in Firefox 30 or later"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79517">bug 79517</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>NEEDINFO
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - Corruption in Firefox 30 or later"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79517#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - Corruption in Firefox 30 or later"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79517">bug 79517</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>Ah. Should be fixed by:

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index f77b4c6..70211eb 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4602,6 +4602,10 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region,
                             kgem_bo_can_map__cpu(&sna->kgem, priv->gpu_bo,
true)));
                        sna_pixmap_free_gpu(sna, priv);
                        ignore_cpu = priv->cpu_damage == NULL;
+                       if (priv->ptr)
+                               sna_damage_all(&priv->cpu_damage,
+                                               pixmap->drawable.width,
+                                               pixmap->drawable.height);
                }
        }</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>