summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-05-12 13:51:11 -0700
committerEric Anholt <eric@anholt.net>2008-05-28 11:27:06 -0700
commit3a967b8359bd6c05a10111076cdb02df15cbf2e8 (patch)
tree2d2f8bb8e36e1243eba14a715c45da56f41494f2
parentced4b4bb0c44b55feb5e32ddb860f1c1dc3bbde5 (diff)
[gem] Note if pinning a buffer fails.
-rw-r--r--src/i830_memory.c6
1 files changed, 5 insertions, 1 deletions
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;