drm/i915: Update meaning of debugfs object's pin_flag
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Apr 2015 15:42:46 +0000 (16:42 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Apr 2015 09:20:30 +0000 (11:20 +0200)
Since the pin_ioctl is defunct, we only care about whether an object is
pinned into the display for debug purposes.

Signed-off-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 07a71c0ff7756cefc3183bd93b4f899404af6262..1bd2ec5a5a57087598de378aedaa330c6e86aba1 100644 (file)
@@ -96,7 +96,7 @@ static int i915_capabilities(struct seq_file *m, void *data)
 
 static const char *get_pin_flag(struct drm_i915_gem_object *obj)
 {
-       if (i915_gem_obj_is_pinned(obj))
+       if (obj->pin_display)
                return "p";
        else
                return " ";