drm/i915: Print obj->frontbuffer_bits in debugfs output
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Jun 2014 12:46:49 +0000 (14:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Jun 2014 08:05:04 +0000 (10:05 +0200)
Can be useful to figure out imbalances and bugs in the frontbuffer
tracking.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index 76c2572872f65cff0047b0e06319db8cc59a1505..6b7b32baefb16e7c1300ddadcdabae682f6877c0 100644 (file)
@@ -170,6 +170,8 @@ describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj)
        }
        if (obj->ring != NULL)
                seq_printf(m, " (%s)", obj->ring->name);
+       if (obj->frontbuffer_bits)
+               seq_printf(m, " (frontbuffer: 0x%03x)", obj->frontbuffer_bits);
 }
 
 static void describe_ctx(struct seq_file *m, struct intel_context *ctx)