summaryrefslogtreecommitdiff
path: root/src/i830_memory.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-08-16 11:34:02 -0700
committerEric Anholt <eric@anholt.net>2007-08-16 11:34:02 -0700
commitc3438356d6b7b63ad9d0086efb084be8e048980e (patch)
treef70bddb42617387991f7ce1a374424117618955a /src/i830_memory.c
parent0c9e4aeea84e20a18e3b76d8cf8e802af004df57 (diff)
Add tiling information to BO layout description.
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r--src/i830_memory.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 23288588..902ca2dd 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -926,15 +926,22 @@ i830_describe_allocations(ScrnInfoPtr pScrn, int verbosity, const char *prefix)
"%s0x%08lx: start of memory manager\n",
prefix, pI830->memory_manager->offset);
for (mem = pI830->bo_list; mem != NULL; mem = mem->next) {
+ char *tile_suffix = "";
+
+ if (mem->tiling == TILE_XMAJOR)
+ tile_suffix = " X tiled";
+ else if (mem->tiling == TILE_YMAJOR)
+ tile_suffix = " Y tiled";
+
if (mem->bound) {
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, verbosity,
- "%s0x%08lx-0x%08lx: %s (%ld kB)\n", prefix,
+ "%s0x%08lx-0x%08lx: %s (%ld kB)%s\n", prefix,
mem->offset, mem->end - 1, mem->name,
- mem->size / 1024);
+ mem->size / 1024, tile_suffix);
} else {
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, verbosity,
- "%sunpinned : %s (%ld kB)\n", prefix,
- mem->name, mem->size / 1024);
+ "%sunpinned : %s (%ld kB)%s\n", prefix,
+ mem->name, mem->size / 1024, tile_suffix);
}
}
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, verbosity,