sna: Recheck source bo after migrating dst (in case of src == dst)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-11 14:08:31 +01:00
parent 21c150a873
commit b879de6246
1 changed files with 7 additions and 2 deletions

View File

@ -2789,8 +2789,13 @@ fill:
tmp->dst.bo = sna_drawable_use_bo(dst->pDrawable, hint,
&dst_box, &tmp->damage);
if (tmp->dst.bo && hint & REPLACES)
kgem_bo_undo(&sna->kgem, tmp->dst.bo);
if (tmp->dst.bo && hint & REPLACES) {
struct sna_pixmap *priv = sna_pixmap(tmp->dst.pixmap);
kgem_bo_pair_undo(&sna->kgem, priv->gpu_bo, priv->cpu_bo);
}
if (tmp->dst.pixmap == src_pixmap)
bo = __sna_render_pixmap_bo(sna, src_pixmap, &src_box, true);
ret = false;
if (bo) {