summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-22 08:52:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-22 09:00:46 +0100
commit13e20c7f61d8b21b33c02d8b737cf9c06bf50f17 (patch)
tree7823849c2594974e48da8153fd8d9a1b0bfc99d3
parentd8b0a8fa033848543e0b39566b531fdfdd078087 (diff)
downloadxf86-video-intel-13e20c7f61d8b21b33c02d8b737cf9c06bf50f17.tar.gz
xf86-video-intel-13e20c7f61d8b21b33c02d8b737cf9c06bf50f17.tar.bz2
xf86-video-intel-13e20c7f61d8b21b33c02d8b737cf9c06bf50f17.zip
sna: Assert that we do not overwrite an earlier COW entry
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 97bcdcfc4..dd373962c 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1979,6 +1979,7 @@ sna_pixmap_make_cow(struct sna *sna,
assert(dst_priv->move_to_gpu == NULL);
assert(!dst_priv->flush);
+ assert(list_is_empty(&dst_priv->cow_list));
cow = COW(src_priv->cow);
if (cow == NULL) {