diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-16 10:27:16 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-16 10:27:16 +0100 |
commit | 8f0fc2ed4cc19c90dd2f519080915ca0c54e1baf (patch) | |
tree | 8af47145e80795ac647e8e8706974944acce76f9 | |
parent | 6b82962e58c0959c94f2df1f0ebd9a478b15cb6b (diff) |
uxa: Add some explanation to why bo were rejected
References: https://bugs.freedesktop.org/show_bug.cgi?id=80088
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/uxa/intel_uxa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uxa/intel_uxa.c b/src/uxa/intel_uxa.c index 3bc1d23b..81c59d2c 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; } |