aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2009-07-01 15:01:35 -0400
committerEric Anholt <eric@anholt.net>2009-07-07 14:52:48 -0400
commita01c75b338d7c743a8982011f01a4714ad2956de (patch)
treee3a69bd5c91e6609825cb9753b5e85797da640ff
parentb5323599af68caa2da08b7041400b62049afb91e (diff)
drm/i915: Add gtt_offset to gem object list debugfs output
This is quite useful for verifying that objects are actually mapped when they need to be. Signed-off-by: Ben Gamari <bgamari.foss@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--drivers/gpu/drm/i915/i915_gem_debugfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_debugfs.c b/drivers/gpu/drm/i915/i915_gem_debugfs.c
index cacae945338b..a61d656cfd21 100644
--- a/drivers/gpu/drm/i915/i915_gem_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c
@@ -104,7 +104,10 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data)
104 if (obj->name) 104 if (obj->name)
105 seq_printf(m, " (name: %d)", obj->name); 105 seq_printf(m, " (name: %d)", obj->name);
106 if (obj_priv->fence_reg != I915_FENCE_REG_NONE) 106 if (obj_priv->fence_reg != I915_FENCE_REG_NONE)
107 seq_printf(m, " (fence: %d)\n", obj_priv->fence_reg); 107 seq_printf(m, " (fence: %d)", obj_priv->fence_reg);
108 if (obj_priv->gtt_space != NULL)
109 seq_printf(m, " (gtt_offset: %08x)", obj_priv->gtt_offset);
110
108 seq_printf(m, "\n"); 111 seq_printf(m, "\n");
109 } 112 }
110 113