sna: Leave more Pixmap breadcrumbs in DBG
Add the Pixmap id to various DBG messages to make it easier to track rendering. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
407817ebb9
commit
84333f6213
|
|
@ -1640,9 +1640,9 @@ gen2_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -3211,9 +3211,9 @@ gen3_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -1683,9 +1683,9 @@ gen4_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -1637,9 +1637,9 @@ gen5_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -1907,9 +1907,9 @@ gen6_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -2159,9 +2159,9 @@ gen7_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -1977,9 +1977,9 @@ gen8_composite_set_target(struct sna *sna,
|
|||
get_drawable_deltas(dst->pDrawable, op->dst.pixmap,
|
||||
&op->dst.x, &op->dst.y);
|
||||
|
||||
DBG(("%s: pixmap=%p, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
DBG(("%s: pixmap=%ld, format=%08x, size=%dx%d, pitch=%d, delta=(%d,%d),damage=%p\n",
|
||||
__FUNCTION__,
|
||||
op->dst.pixmap, (int)op->dst.format,
|
||||
op->dst.pixmap->drawable.serialNumber, (int)op->dst.format,
|
||||
op->dst.width, op->dst.height,
|
||||
op->dst.bo->pitch,
|
||||
op->dst.x, op->dst.y,
|
||||
|
|
|
|||
|
|
@ -715,7 +715,7 @@ static inline struct sna_pixmap *
|
|||
sna_pixmap_force_to_gpu(PixmapPtr pixmap, unsigned flags)
|
||||
{
|
||||
/* Unlike move-to-gpu, we ignore wedged and always create the GPU bo */
|
||||
DBG(("%s(pixmap=%p, flags=%x)\n", __FUNCTION__, pixmap, flags));
|
||||
DBG(("%s(pixmap=%ld, flags=%x)\n", __FUNCTION__, pixmap->drawable.serialNumber, flags));
|
||||
return sna_pixmap_move_to_gpu(pixmap, flags | __MOVE_FORCE);
|
||||
}
|
||||
bool must_check _sna_pixmap_move_to_cpu(PixmapPtr pixmap, unsigned flags);
|
||||
|
|
|
|||
|
|
@ -643,11 +643,12 @@ sna_composite(CARD8 op,
|
|||
RegionRec region;
|
||||
int dx, dy;
|
||||
|
||||
DBG(("%s(%d src=(%d, %d), mask=(%d, %d), dst=(%d, %d)+(%d, %d), size=(%d, %d)\n",
|
||||
DBG(("%s(%d src=%ld+(%d, %d), mask=%ld+(%d, %d), dst=%ld+(%d, %d)+(%d, %d), size=(%d, %d)\n",
|
||||
__FUNCTION__, op,
|
||||
src_x, src_y,
|
||||
mask_x, mask_y,
|
||||
dst_x, dst_y, dst->pDrawable->x, dst->pDrawable->y,
|
||||
get_picture_id(src), src_x, src_y,
|
||||
get_picture_id(mask), mask_x, mask_y,
|
||||
get_picture_id(dst), dst_x, dst_y,
|
||||
dst->pDrawable->x, dst->pDrawable->y,
|
||||
width, height));
|
||||
|
||||
if (region_is_empty(dst->pCompositeClip)) {
|
||||
|
|
|
|||
|
|
@ -358,4 +358,9 @@ overlaps(struct sna *sna,
|
|||
extents->y1 + src_dy < extents->y2 + dst_dy);
|
||||
}
|
||||
|
||||
static inline long get_picture_id(PicturePtr picture)
|
||||
{
|
||||
return picture && picture->pDrawable ? get_drawable_pixmap(picture->pDrawable)->drawable.serialNumber : 0;
|
||||
}
|
||||
|
||||
#endif /* SNA_RENDER_INLINE_H */
|
||||
|
|
|
|||
Loading…
Reference in New Issue