summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-21 11:16:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-21 11:16:02 +0100
commite1027ad7c60b9fd229ed196646c88ba7bb72a282 (patch)
tree0aa8e7bbe41e9e5931d09674157a9a42654c1a6a
parent0b87b0c49a5208383e7472b58d36d3a558144496 (diff)
sna: Fix typo inside an assertion
Use the right dst_priv variable instead of priv! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index b886e8db..0676a6d6 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1793,7 +1793,7 @@ sna_pixmap_make_cow(struct sna *sna,
sna_pixmap_unmap(dst_priv->pixmap, dst_priv);
kgem_bo_destroy(&sna->kgem, dst_priv->gpu_bo);
}
- assert(!priv->mapped);
+ assert(!dst_priv->mapped);
dst_priv->gpu_bo = kgem_bo_reference(cow->bo);
dst_priv->cow = cow;
list_add(&dst_priv->cow_list, &cow->list);