diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-01 17:37:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-01 17:37:33 +0100 |
commit | e4a3cd3d16447b5d83d1c8c63c342f1240935267 (patch) | |
tree | a9f77de10d8e160ca10c3a2a71a5f484de23188e | |
parent | eaeda34bef711cc566f51dee092a19a3c4ac1a16 (diff) |
sna: Add validation of the clear flag to pixmap debugging
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index a4287f75..8760f915 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -314,6 +314,11 @@ static void assert_pixmap_damage(PixmapPtr p) if (priv == NULL) return; + if (priv->clear) { + assert(DAMAGE_IS_ALL(priv->gpu_damage)); + assert(priv->cpu_damage == NULL); + } + if (DAMAGE_IS_ALL(priv->gpu_damage) && DAMAGE_IS_ALL(priv->cpu_damage)) { /* special upload buffer */ assert(priv->gpu_bo && priv->gpu_bo->proxy); |