From 3a967b8359bd6c05a10111076cdb02df15cbf2e8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 12 May 2008 13:51:11 -0700 Subject: [PATCH] [gem] Note if pinning a buffer fails. --- src/i830_memory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/i830_memory.c b/src/i830_memory.c index 16ae23d2..2596e45d 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -174,8 +174,12 @@ i830_bind_memory(ScrnInfoPtr pScrn, i830_memory *mem) pin.alignment = mem->alignment; ret = ioctl(pI830->drmSubFD, DRM_IOCTL_I915_GEM_PIN, &pin); - if (ret != 0) + if (ret != 0) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, + "Failed to pin %s: %s\n", + mem->name, strerror(errno)); return FALSE; + } mem->bound = TRUE; mem->offset = pin.offset;