diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-04-12 09:49:47 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-04-12 09:56:33 +0100 |
commit | aff14a23f98b1230a9053a1b8434f5cc9f766d14 (patch) | |
tree | 1e9916c2f1206c92c10791d9fe5507afdd96330e /src/sna/sna_accel.c | |
parent | afe61281d8f92d6eb841e2522ab18e0d2fe73773 (diff) |
sna: Refine assertion about the existence of CPU damage when GPU damaged
One particular buffer type is quite cunning and simultaneously sets both
CPU/GPU as all damaged (the upload buffer) so be aware when making bold
assertions.
Reported-by: Jiri Slaby <jirislaby@gmail.com>
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 6aef041e..c363a3c5 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1623,6 +1623,7 @@ skip_inplace_map: if (DAMAGE_IS_ALL(priv->cpu_damage)) { DBG(("%s: CPU all-damaged\n", __FUNCTION__)); + assert(priv->gpu_damage == NULL || DAMAGE_IS_ALL(priv->gpu_damage)); goto done; } @@ -1792,7 +1793,6 @@ mark_damage: } done: - assert(priv->gpu_damage == NULL); if (flags & MOVE_WRITE) { assert(DAMAGE_IS_ALL(priv->cpu_damage)); priv->source_count = SOURCE_BIAS; |