diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-30 21:17:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-30 21:17:42 +0000 |
commit | c2d06c407e1c2cbbf3f7f6c4989710a799cd43d0 (patch) | |
tree | c5f2ba0c17bd76f4e27d415ae0d5265029d5d0f0 /src | |
parent | 8867aa6a46c33fd2abf3b3f0b1d6115bad6c8017 (diff) |
sna: Improve DBG output for damaged slave outputs
After computing the intersection of the damage with the slave, give the
region extents.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 58d8c191..d34a4f92 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1019,7 +1019,6 @@ sna_share_pixmap_backing(PixmapPtr pixmap, ScreenPtr slave, void **fd_handle) assert((priv->gpu_bo->pitch & 255) == 0); /* And export the bo->pitch via pixmap->devKind */ - assert(!priv->mapped); pixmap->devPrivate.ptr = kgem_bo_map__async(&sna->kgem, priv->gpu_bo); if (pixmap->devPrivate.ptr == NULL) return FALSE; @@ -13819,6 +13818,11 @@ static void sna_accel_post_damage(struct sna *sna) RegionTranslate(®ion, -dirty->x, -dirty->y); DamageRegionAppend(&dirty->slave_dst->drawable, ®ion); + DBG(("%s: slave: ((%d, %d), (%d, %d))x%d\n", __FUNCTION__, + region.extents.x1, region.extents.y1, + region.extents.x2, region.extents.y2, + RegionNumRects(®ion.extents))); + box = REGION_RECTS(®ion); n = REGION_NUM_RECTS(®ion); if (wedged(sna)) { |