From 8f0fc2ed4cc19c90dd2f519080915ca0c54e1baf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 16 Jun 2014 10:27:16 +0100 Subject: [PATCH] uxa: Add some explanation to why bo were rejected References: https://bugs.freedesktop.org/show_bug.cgi?id=80088 Signed-off-by: Chris Wilson --- src/uxa/intel_uxa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/uxa/intel_uxa.c b/src/uxa/intel_uxa.c index 3bc1d23..81c59d2 100644 --- a/src/uxa/intel_uxa.c +++ b/src/uxa/intel_uxa.c @@ -703,6 +703,9 @@ free_priv: if (priv->stride < stride || priv->stride & (tile_width - 1) || priv->stride >= KB(32)) { + xf86DrvMsg(scrn->scrnIndex, X_ERROR, + "%s: stride on buffer object does not match constraints: stride=%d, must be greater than %d, but less than %d, and have alignment at least %d\n", + __FUNCTION__, priv->stride, stride, KB(32), tile_width); bo = NULL; goto free_priv; } @@ -723,6 +726,9 @@ free_priv: size = priv->stride * pixmap->drawable.height; if (bo->size < size || bo->size > intel->max_bo_size) { + xf86DrvMsg(scrn->scrnIndex, X_ERROR, + "%s: size of buffer object does not match constraints: size=%ld, must be greater than %d, but less than %d\n", + __FUNCTION__, (long)bo->size, size, intel->max_bo_size); bo = NULL; goto free_priv; } -- 2.7.4