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>
This commit is contained in:
Chris Wilson 2013-01-30 21:17:42 +00:00
parent 8867aa6a46
commit c2d06c407e
1 changed files with 5 additions and 1 deletions

View File

@ -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(&region, -dirty->x, -dirty->y);
DamageRegionAppend(&dirty->slave_dst->drawable, &region);
DBG(("%s: slave: ((%d, %d), (%d, %d))x%d\n", __FUNCTION__,
region.extents.x1, region.extents.y1,
region.extents.x2, region.extents.y2,
RegionNumRects(&region.extents)));
box = REGION_RECTS(&region);
n = REGION_NUM_RECTS(&region);
if (wedged(sna)) {