drm/i915: Report purgeable status in buffer lists.
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 16:48:57 +0000 (16:48 +0000)
committerEric Anholt <eric@anholt.net>
Mon, 7 Dec 2009 23:39:32 +0000 (15:39 -0800)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_debugfs.c

index eeed4e34c757c3807ae2831090b3be0e296a45c3..18476bf0b5805add492f00178baa2a96829d7ecc 100644 (file)
@@ -97,13 +97,14 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data)
        {
                struct drm_gem_object *obj = obj_priv->obj;
 
-               seq_printf(m, "    %p: %s %8zd %08x %08x %d %s",
+               seq_printf(m, "    %p: %s %8zd %08x %08x %d%s%s",
                           obj,
                           get_pin_flag(obj_priv),
                           obj->size,
                           obj->read_domains, obj->write_domain,
                           obj_priv->last_rendering_seqno,
-                          obj_priv->dirty ? "dirty" : "");
+                          obj_priv->dirty ? " dirty" : "",
+                          obj_priv->madv == I915_MADV_DONTNEED ? " purgeable" : "");
 
                if (obj->name)
                        seq_printf(m, " (name: %d)", obj->name);