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:
parent
8867aa6a46
commit
c2d06c407e
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue