xf86-video-intel: src/uxa/intel_uxa.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Jun 16 02:27:46 PDT 2014


 src/uxa/intel_uxa.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 8f0fc2ed4cc19c90dd2f519080915ca0c54e1baf
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Jun 16 10:27:16 2014 +0100

    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 at chris-wilson.co.uk>

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


More information about the xorg-commit mailing list