xf86-video-intel: Branch 'drm-gem' - src/i830_memory.c
Eric Anholt
anholt at kemper.freedesktop.org
Wed May 28 11:27:17 PDT 2008
src/i830_memory.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 3a967b8359bd6c05a10111076cdb02df15cbf2e8
Author: Eric Anholt <eric at anholt.net>
Date: Mon May 12 13:51:11 2008 -0700
[gem] Note if pinning a buffer fails.
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 16ae23d..2596e45 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;
More information about the xorg-commit
mailing list