summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-05-24 12:03:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-05-24 12:05:00 +0100
commitdbe2b5896ec2cd00a456236467b221c9fafdd2f7 (patch)
tree13d36317dde51fcebac20c18de9bc4678e662687 /src/sna/sna_accel.c
parent2005b273e10f2b946f79c602b55a7bf585c936de (diff)
sna: Correct assertion for reusing COW
Reported-by: Jiri Slaby <jirislaby@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-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 ef950493..64981a43 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4637,7 +4637,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
/* XXX hack for firefox -- subsequent uses of src will be corrupt! */
if (src_priv && src_priv->cow && src_priv->gpu_bo == dst_priv->gpu_bo) {
- assert(DAMAGE_IS_ALL(src_priv->gpu_damage));
+ assert(src_priv->cpu_damage == NULL);
bo = dst_priv->gpu_bo;
damage = NULL;
} else