sna: Fix debug message for read-boxes

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-28 22:52:44 +00:00
parent 698bd43e0f
commit f9ee02be26
1 changed files with 2 additions and 1 deletions

View File

@ -106,9 +106,10 @@ void sna_read_boxes(struct sna *sna,
(box[n].x2 + src_dx) * dst->drawable.bitsPerPixel/8 > src_bo->pitch ||
(box[n].y2 + src_dy) * src_bo->pitch > src_bo->size)
{
FatalError("source out-of-bounds box[%d]=(%d, %d), (%d, %d) + (%d, %d), pitch=%d, size=%d\n",
FatalError("source out-of-bounds box[%d]=(%d, %d), (%d, %d) + (%d, %d), pitch=%d, size=%d\n", n,
box[n].x1, box[n].y1,
box[n].x2, box[n].y2,
src_dx, src_dy,
src_bo->pitch, src_bo->size);
}
}