aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-18 02:53:41 -0500
committerEric Anholt <eric@anholt.net>2009-03-27 18:12:04 -0400
commitf4ceda89895b56e2c03dd327f13d0256838a20ab (patch)
tree710899415d78d2e59e6fcf925434ee38e7125f66 /drivers/gpu
parent433e12f78b68a8069f54956edf766bb21394c197 (diff)
drm/i915: Add information on pinning and fencing to the i915 list debug.
This was inspired by a patch by Chris Wilson, though none of it applied in any way due to the debugfs work and I decided to change the formatting of the new information anyway. Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_debugfs.c31
1 files changed, 20 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_debugfs.c b/drivers/gpu/drm/i915/i915_gem_debugfs.c
index 4fc845cee804..f7e7d3750f8f 100644
--- a/drivers/gpu/drm/i915/i915_gem_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c
@@ -70,18 +70,27 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data)
70 70
71 list_for_each_entry(obj_priv, head, list) 71 list_for_each_entry(obj_priv, head, list)
72 { 72 {
73 char *pin_description;
73 struct drm_gem_object *obj = obj_priv->obj; 74 struct drm_gem_object *obj = obj_priv->obj;
74 if (obj->name) { 75
75 seq_printf(m, " %p(%d): %08x %08x %d\n", 76 if (obj_priv->user_pin_count > 0)
76 obj, obj->name, 77 pin_description = "P";
77 obj->read_domains, obj->write_domain, 78 else if (obj_priv->pin_count > 0)
78 obj_priv->last_rendering_seqno); 79 pin_description = "p";
79 } else { 80 else
80 seq_printf(m, " %p: %08x %08x %d\n", 81 pin_description = " ";
81 obj, 82
82 obj->read_domains, obj->write_domain, 83 seq_printf(m, " %p: %s %08x %08x %d",
83 obj_priv->last_rendering_seqno); 84 obj,
84 } 85 pin_description,
86 obj->read_domains, obj->write_domain,
87 obj_priv->last_rendering_seqno);
88
89 if (obj->name)
90 seq_printf(m, " (name: %d)", obj->name);
91 if (obj_priv->fence_reg != I915_FENCE_REG_NONE)
92 seq_printf(m, " (fence: %d\n", obj_priv->fence_reg);
93 seq_printf(m, "\n");
85 } 94 }
86 return 0; 95 return 0;
87} 96}