<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Corruption in Firefox 30 or later"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79517#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - 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>Idea:
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 2513b8b..18195d8 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4564,7 +4564,8 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region,
DBG(("%s: discarding dirty pixmap\n", __FUNCTION__));
sna_pixmap_free_gpu(sna, priv);
}
- replaces = true; /* Mark it all GPU damaged afterwards */
+ replaces = (priv->cpu_damage == NULL ||
+ region_subsumes_damage(region, priv->cpu_damage));
}
if (priv->gpu_bo == NULL &&</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>