summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-17 12:58:43 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-17 12:58:43 +0000
commita9b705f9a7bbd37a0543ce5fbd4c60c912d1017d (patch)
tree08439f47b96f403ff14edf738c5d447895512c44
parent9d631e26d758eb4c2032a502604f07c5403b25ff (diff)
sna: Mark GPU as all-damaged discarding the CPU bo to prevent stalls
If we discard the CPU bo, we lose knowledge of whatever regions had been initialised but no longer dirty on the GPU, but instead must assume that the entirety of the GPU bo is dirty. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 80c21dd2..7aa5578b 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2280,6 +2280,9 @@ sna_put_zpixmap_blt(DrawablePtr drawable, GCPtr gc, RegionPtr region,
list_del(&priv->list);
}
}
+ sna_damage_all(&priv->gpu_damage,
+ pixmap->drawable.width,
+ pixmap->drawable.height);
sna_pixmap_free_cpu(sna, priv);
}
}