diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-11 15:41:02 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-08-21 14:34:35 +0200 |
commit | c110a6d728d0243a755973d34e363952b74af984 (patch) | |
tree | 73f03e2a666bd15a03dc705994c9379ad8d129f4 /drivers/gpu/drm | |
parent | b7abb7144356536c41a81eda2bbfd46027e529f6 (diff) | |
download | blackbird-op-linux-c110a6d728d0243a755973d34e363952b74af984.tar.gz blackbird-op-linux-c110a6d728d0243a755973d34e363952b74af984.zip |
drm/i915: Show pin count in debugfs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 5548b02f40bb..204c19a49969 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -118,6 +118,8 @@ describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj) obj->madv == I915_MADV_DONTNEED ? " purgeable" : ""); if (obj->base.name) seq_printf(m, " (name: %d)", obj->base.name); + if (obj->pin_count) + seq_printf(m, " (pinned x %d)", obj->pin_count); if (obj->fence_reg != I915_FENCE_REG_NONE) seq_printf(m, " (fence: %d)", obj->fence_reg); if (obj->gtt_space != NULL) |