diff options
author | Adam Jackson <ajax@redhat.com> | 2010-04-23 11:17:39 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-07 13:59:29 -0700 |
commit | ee5382aedf669127bf672a3fc5313247fc288e26 (patch) | |
tree | be918143748c8b08cdcf88486c1ce09b22af2ab0 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 1637ef413b9a5d1c14eb370f7029a5558f3bb3d3 (diff) | |
download | lwn-ee5382aedf669127bf672a3fc5313247fc288e26.tar.gz lwn-ee5382aedf669127bf672a3fc5313247fc288e26.zip |
drm/i915: Make fbc control wrapper functions
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 213aa3f67314..322070c0c631 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -566,23 +566,14 @@ static int i915_fbc_status(struct seq_file *m, void *unused) { struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_device *dev = node->minor->dev; - struct drm_crtc *crtc; drm_i915_private_t *dev_priv = dev->dev_private; - bool fbc_enabled = false; - if (!dev_priv->display.fbc_enabled) { + if (!I915_HAS_FBC(dev)) { seq_printf(m, "FBC unsupported on this chipset\n"); return 0; } - list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { - if (!crtc->enabled) - continue; - if (dev_priv->display.fbc_enabled(crtc)) - fbc_enabled = true; - } - - if (fbc_enabled) { + if (intel_fbc_enabled(dev)) { seq_printf(m, "FBC enabled\n"); } else { seq_printf(m, "FBC disabled: "); |