Commit 97d479e7 authored by Eric Anholt's avatar Eric Anholt Committed by Dave Airlie

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: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 30106f97
...@@ -70,18 +70,27 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data) ...@@ -70,18 +70,27 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data)
list_for_each_entry(obj_priv, head, list) list_for_each_entry(obj_priv, head, list)
{ {
char *pin_description;
struct drm_gem_object *obj = obj_priv->obj; struct drm_gem_object *obj = obj_priv->obj;
if (obj->name) {
seq_printf(m, " %p(%d): %08x %08x %d\n", if (obj_priv->user_pin_count > 0)
obj, obj->name, pin_description = "P";
obj->read_domains, obj->write_domain, else if (obj_priv->pin_count > 0)
obj_priv->last_rendering_seqno); pin_description = "p";
} else { else
seq_printf(m, " %p: %08x %08x %d\n", pin_description = " ";
seq_printf(m, " %p: %s %08x %08x %d",
obj, obj,
pin_description,
obj->read_domains, obj->write_domain, obj->read_domains, obj->write_domain,
obj_priv->last_rendering_seqno); obj_priv->last_rendering_seqno);
}
if (obj->name)
seq_printf(m, " (name: %d)", obj->name);
if (obj_priv->fence_reg != I915_FENCE_REG_NONE)
seq_printf(m, " (fence: %d\n", obj_priv->fence_reg);
seq_printf(m, "\n");
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment