sna: compile fixes for debugging

Update the DBG messages to reflect changes in function parameters.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-19 12:48:38 +01:00
parent 7f0cba3a25
commit 0390105bc2
3 changed files with 5 additions and 4 deletions

View File

@ -1974,7 +1974,7 @@ struct kgem_bo *kgem_upload_source_image(struct kgem *kgem,
void *dst;
DBG(("%s : (%d, %d), (%d, %d), stride=%d, bpp=%d\n",
__FUNCTION__, x, y, width, height, stride, bpp));
__FUNCTION__, box->x1, box->y1, box->x2, box->y2, stride, bpp));
bo = kgem_create_buffer(kgem, size, KGEM_BUFFER_WRITE, &dst);
if (bo == NULL)

View File

@ -310,8 +310,8 @@ static struct kgem_bo *upload(struct sna *sna,
{
struct kgem_bo *bo;
DBG(("%s: origin=(%d, %d), box=(%d, %d), (%d, %d), pixmap=%dx%d\n",
__FUNCTION__, x, y, box->x1, box->y1, box->x2, box->y2, pixmap->drawable.width, pixmap->drawable.height));
DBG(("%s: box=(%d, %d), (%d, %d), pixmap=%dx%d\n",
__FUNCTION__, box->x1, box->y1, box->x2, box->y2, pixmap->drawable.width, pixmap->drawable.height));
assert(box->x1 >= 0);
assert(box->y1 >= 0);
assert(box->x2 <= pixmap->drawable.width);

View File

@ -228,7 +228,8 @@ sna_tiling_composite(uint32_t op,
struct sna_pixmap *priv;
DBG(("%s size=(%d, %d), tile=%d\n",
__FUNCTION__, width, height, sna->render.max_3d_size));
__FUNCTION__, width, height,
to_sna_from_drawable(dst->pDrawable)->render.max_3d_size));
priv = sna_pixmap(get_drawable_pixmap(dst->pDrawable));
if (priv == NULL || priv->gpu_bo == NULL)