drm/i915: Fix reason for per-chip disabling of FBC

When running on my snb machine, recent kernels display successively:

[drm:intel_update_fbc], fbc set to per-chip default
[drm:intel_update_fbc], fbc disabled per module param

But no module param is set. This happens because the check for the
module parameter uses a variable that has been overridden inside the
"per-chip default" code.

Fix up the logic and add another reason for the FBC to the be disabled.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Damien Lespiau
2013-06-24 16:22:02 +01:00
committed by Daniel Vetter
parent b63fb44c65
commit 8a5729a373
3 changed files with 10 additions and 8 deletions

View File

@@ -1518,6 +1518,9 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
case FBC_MODULE_PARAM:
seq_printf(m, "disabled per module param (default off)");
break;
case FBC_CHIP_DEFAULT:
seq_printf(m, "disabled per chip default");
break;
default:
seq_printf(m, "unknown reason");
}