From 13e20c7f61d8b21b33c02d8b737cf9c06bf50f17 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 22 Jul 2014 08:52:10 +0100 Subject: [PATCH] sna: Assert that we do not overwrite an earlier COW entry Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 97bcdcf..dd37396 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) { -- 2.7.4