sna: Make sure that cached upload proxies are marked as all-damaged

It should only be the case that we create the upload proxy in this case,
but it ensures that the code remains self-consistent if we force the
all-damage reduction.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-10-13 12:22:46 +01:00
parent 6224814b85
commit 6861391ff3
1 changed files with 2 additions and 0 deletions

View File

@ -553,6 +553,7 @@ static struct kgem_bo *upload(struct sna *sna,
assert(priv->gpu_damage == NULL);
assert(priv->gpu_bo == NULL);
assert(bo->proxy != NULL);
sna_damage_all(&priv->cpu_damage, pixmap);
kgem_proxy_bo_attach(bo, &priv->gpu_bo);
}
}
@ -1261,6 +1262,7 @@ sna_render_picture_extract(struct sna *sna,
assert(priv->gpu_damage == NULL);
assert(priv->gpu_bo == NULL);
assert(bo->proxy != NULL);
sna_damage_all(&priv->cpu_damage, pixmap);
kgem_proxy_bo_attach(bo, &priv->gpu_bo);
}
}