Commit bc4ec7c8 authored by Nagaraju, Vathsala's avatar Nagaraju, Vathsala Committed by Paulo Zanoni

drm/i915: don't report compression when fbc is disabled

When i915_fbc_status is read while fbc is disabled,
it reports compressing to be true, which is confusing.
Report compressing only when fbc is enabled.

v2 (from Paulo): commit message capitalization.
Signed-off-by: default avatarvathsala nagaraju <vathsala.nagaraju@intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1474534193-9527-1-git-send-email-vathsala.nagaraju@intel.com
parent 86a462bc
...@@ -1658,7 +1658,8 @@ static int i915_fbc_status(struct seq_file *m, void *unused) ...@@ -1658,7 +1658,8 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
seq_printf(m, "FBC disabled: %s\n", seq_printf(m, "FBC disabled: %s\n",
dev_priv->fbc.no_fbc_reason); dev_priv->fbc.no_fbc_reason);
if (INTEL_GEN(dev_priv) >= 7) if (intel_fbc_is_active(dev_priv) &&
INTEL_GEN(dev_priv) >= 7)
seq_printf(m, "Compressing: %s\n", seq_printf(m, "Compressing: %s\n",
yesno(I915_READ(FBC_STATUS2) & yesno(I915_READ(FBC_STATUS2) &
FBC_COMPRESSION_MASK)); FBC_COMPRESSION_MASK));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment