From 6861391ff34eff423974a73c46cf0b186a6cb335 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 13 Oct 2015 12:22:46 +0100 Subject: [PATCH] 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 --- src/sna/sna_render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 89267a3e..d8b77566 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -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); } }