diff options
author | Eric Anholt <eric@anholt.net> | 2008-07-26 16:10:05 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-07-26 16:10:05 -0700 |
commit | d77d42e543ee82e801a8563a911826521c0ba557 (patch) | |
tree | cff1d3a8aca3d2949286dd9f1349f5e08e99f442 /src/i830_memory.c | |
parent | 286ff63f83db8ea16514512385e6f8c6875871ef (diff) |
intel-gem: Give a better error message if the kernel rejects the tiling mode.
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r-- | src/i830_memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index 222882cd..2e238e25 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -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); |