intel-gem: Give a better error message if the kernel rejects the tiling mode.

This commit is contained in:
Eric Anholt 2008-07-26 16:10:05 -07:00
parent 286ff63f83
commit d77d42e543
1 changed files with 2 additions and 1 deletions

View File

@ -914,7 +914,8 @@ i830_allocate_memory_tiled(ScrnInfoPtr pScrn, const char *name,
if (ret != 0 || set_tiling.tiling_mode == I915_TILING_NONE) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Failed to set tiling on %s: %s\n",
mem->name, strerror(errno));
mem->name,
ret == 0 ? "rejected by kernel" : strerror(errno));
i830_free_memory(pScrn, mem);
return i830_allocate_memory(pScrn, name, size, alignment,
flags);