From: Daniel Vetter Date: Wed, 18 Jun 2014 12:46:49 +0000 (+0200) Subject: drm/i915: Print obj->frontbuffer_bits in debugfs output X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d5a81ef187043eac6642d7f7584f896a33b68c7c;p=linux-beck.git drm/i915: Print obj->frontbuffer_bits in debugfs output Can be useful to figure out imbalances and bugs in the frontbuffer tracking. Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 76c2572872f6..6b7b32baefb1 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -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)