diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-22 08:52:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-22 09:00:46 +0100 |
commit | 13e20c7f61d8b21b33c02d8b737cf9c06bf50f17 (patch) | |
tree | 7823849c2594974e48da8153fd8d9a1b0bfc99d3 /src/sna | |
parent | d8b0a8fa033848543e0b39566b531fdfdd078087 (diff) |
sna: Assert that we do not overwrite an earlier COW entry
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_accel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 97bcdcfc..dd373962 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) { |