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>
This commit is contained in:
Chris Wilson 2014-06-16 10:27:16 +01:00
parent 6b82962e58
commit 8f0fc2ed4c
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}